Re: [weewx-user] Watchdog example to warn when station is not reporting for any reason

2019-05-03 Thread pliggen . is
Hi Leon, Ok I will stick with 720 watchdogsecs, and today I have stopped weewx service several times just to see if the script starts the service again, and it did everytime! One time it did a reboot and that was because it directly stopped weewx after a restart of weewx before it had reached

Re: [weewx-user] Watchdog example to warn when station is not reporting for any reason

2019-05-02 Thread pliggen . is
Hi Leon, Ok, good to hear that it was a left-over and that you updated it! I did a reboot of the system and found that it took aprox. 2min to get the first "added" message from weewx, so I set the watchdogsecs to 720. Would that be ok? What could happen if the time is set to early och to late?

Re: [weewx-user] Watchdog example to warn when station is not reporting for any reason

2019-05-02 Thread pliggen . is
Hi Leon, Just installed the updated script now. Seems to be running fine dispite on thing that occured, see part of log here: May 2 16:21:08 raspberrypi weewx[2209]: cheetahgenerator: Generated 10 files for report Sofaskin-FW2205-master in 6.93 seconds May 2 16:21:10 raspberrypi weewx[2209]:

Re: [weewx-user] Watchdog example to warn when station is not reporting for any reason

2019-05-01 Thread pliggen . is
Hi, I now have this script running. Indeed this shouldn't be necessary but I've had both issues (Weewx crash and USB issue) so I think these scripts are nice to have in case something goes wrong until these issue are ironed out. Of course we should provide TF with logs from these events. I st

[weewx-user] Watchdog example to warn when station is not reporting for any reason

2019-05-01 Thread pliggen . is
Hi Leon, could this be used as a complement to Constantine Samaklis script you helped me with yesterday? Sometimes the wh1080 freezes USB-connection to my raspberry pi but the weewx service is still running so Constantines script wont have any effect in this case? I think this issue with whxxx

Re: [weewx-user] Re: Small Python 'daemon' script to check if weewx is running

2019-05-01 Thread pliggen . is
Ok, thanks, now everything works perfect! Hope that the script never has to start weewx but occasionally the service has stopped and now it will start unattended again! And thanks to the author for a great script! BR Mikael -- You received this message because you are subscribed to the Googl

Re: [weewx-user] Re: Small Python 'daemon' script to check if weewx is running

2019-04-30 Thread pliggen . is
Hi Leon, and thanks for the help! I was running my own non-root crontab. So I tried to put the command in sudo crontab -e. Stopped the service and tried it and now the service started as expected. Great! And it worked with /etc/init.d/weewx start as startcommand. I'm not sure I understood ever

[weewx-user] Re: Small Python 'daemon' script to check if weewx is running

2019-04-30 Thread pliggen . is
I got this running as a cronjob, and I get a mail when weewx is not running when the cronjob is executed. But I don't get the script to start weewx again. This is the last part of checkweewx.config: [weewx] #how many times to try and restart the weewx process restarts=3 flagLogDir=/home/pliggen

[weewx-user] Re: Weewx crashing with error associated with ScalarStats.addHiLo

2019-04-29 Thread pliggen . is
Den lördag 27 april 2019 kl. 02:14:15 UTC+2 skrev mwall: > > On Friday, April 26, 2019 at 6:34:50 PM UTC-4, pliggen.is wrote: >> >> I also got the issue two days ago. Strange because I've been running for >> quite some time now and just the other day was my first crash. >> > > what kind of weat

[weewx-user] Re: Weewx crashing with error associated with ScalarStats.addHiLo

2019-04-26 Thread pliggen . is
I also got the issue two days ago. Strange because I've been running for quite some time now and just the other day was my first crash. Here's my part of the log when it happened: Apr 25 07:31:07 raspberrypi weewx[25759]: engine: Main loop exiting. Shutting engine down. Apr 25 07:31:07 raspber