I just have to say how much I like this design approach. Not too clever,
plan for failure. If the file is not there or is corrupt, blow it away and
recreate it since it is a cache. Just love this. It is a part of how mature
and fault-tolerant weewx is.
Thanks to all who work on this!
On Friday
Thanks for that, the #FTP.last file had got horrifically corrupted. In fact
it thought the local copy was a directory!!!
It also brought to light that I made a typo in the script I use to stop
WeeWX, backup, update and reboot the Pi. Meant the data files doubled in
size every Sunday morning. So
WeeWX stores the time each file was FTPd to your server in a file called
*#FTP.last*. This is in order to avoid unnecessary uploads. Somehow the
file got corrupted.
The fix is easy enough: delete the file. It will be regenerated at the next
reporting cycle. You can find it in your HTML directory (
WeeWX FTP upload has suddenly stopped working since the latest system
update (I have it setup to run apt-get update; apt-get upgrade at 4am every
Sunday). Everything else works fine, just no FTP upload. I hadn't changed
the settings, everything was working fine before Sunday morning.
- Orang