Page 1 of 1

Realtime.txt FTP

Posted: Sat 02 Nov 2013 5:52 pm
by Adrian Hudson
I run my own webserver server, separate from my weather PC where Cumulus runs. I use FTP to send the realtime.txt file to the server just like if it were a remote web server.

Occasionally I reboot the web server machine and cumulus simply logs FTP errors until it the webserver machine comes back up. Perfect. Except for realtime.txt. This seems to be sent using a permanent ftp connection (?), which means that whereas all the other files cumulus sends start being received when the server comes back up, realtime.txt is not until cumulus is ended and restarted.

Is there any way of getting Cumulus to periodically drop the permanent ftp connection that it uses for realtime.txt?

I know this is not big problem and I could make a share and copy the files across (would Cumulus get upset if the share "went away" temporarily?) but sometimes the server gets rebooted and I know I am going to forget to restart Cumulus.

Re: Realtime.txt FTP

Posted: Sat 02 Nov 2013 6:09 pm
by steve
Stop Cumulus and edit cumulus.ini. In the [Station] section, add a line like:

RTdisconnectcount=50

Where 50 is an example; Cumulus will then disconnect and reconnect the realtime ftp connection after every 50 uploads.
I could make a share and copy the files across (would Cumulus get upset if the share "went away" temporarily?)
I don't know, to be honest. It just uses the standard Windows CopyFile function, so it depends on how that would handle it.

Re: Realtime.txt FTP

Posted: Sat 02 Nov 2013 7:09 pm
by Adrian Hudson
Brilliant, thank you very much Steve