This didn't end as well as I thought it would. After running OK for a few weeks, things went wonky again. I do not have a good idea of why, I did upgrade to 4.2.0 but don't think that really had anything to do with it, in fact, I was hoping it would fix the ip-read errors I'm seeing.
The scenario is pretty much the same, the system chugs along well for a few hours then I see either the ip-read error or a broken pipe error message and the software doesn't recover nor does it finish its loops and publish data.
But, I have another work around that is working fine for the last 24 hours. While trouble shooting this, I noticed weewx will collect any old interval data and store it in the db, this is normal behaviour. The ip-read error or broken pipe error occurs later in the cycle.
So, if I run weewx_reports /etc/weewx/weewx.conf, that will pick up all the data and format the output then FTP it to my website.
I added a few lines to the crontab to do this for me:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
0,15,30,45 * * * * root /etc/init.d/weewx restart
10,25,40,55 * * * * root wee_reports /etc/weewx/weewx.conf > /dev/null
Now, I get an update pushed to web by the wee_reports containing the archive interval data at 15 minutes.
Let me know if you see any issues with this method.
Also, I have been using "nmap -p 22222 192.168.42.66" to test if the Davis VP2 is alive and have rarely found it offline. Statistics returned by nmap are interesting, sometimes the query takes a milliseconds longer than other times, but seldom is it down. I'm not sure why the weewx vantage driver 3.2.1 fails on this new router, but at least there is a workaround.
Also, I've upgraded to Ubuntu 20.04 Focal hoping for help but no cigar.
Cheers,
John