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/scripts
flagFile=weewxNotRunning.txt
startCommand=sudo /etc/init.d/weewx start

If I run /etc/init.d/weewx start in terminal it starts.
Any tips where to check to get this working?

Den söndag 11 oktober 2015 kl. 02:45:50 UTC+2 skrev Constantine Samaklis:
>
> The script file and configuration file can be anywhere you want.
>
> You can launch the script by typing: python <path>/checkWeewx.py 
> <path>/checkWeewx.config
>
> There are no changes required in the weewx.conf. You will need to just 
> fill the pertinent information for your setup in checkWeewx.config as it is 
> the configuration file that drives the python script.
>
> On Saturday, October 10, 2015 at 5:22:12 PM UTC-4, Arild Halvorsen wrote:
>>
>> This looks exciting. How do I implement this solution in weewx? Where do 
>> I put the files. Which information is nødvenidig in weewx.conf?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to