Lukas - what you want, as Tom has already said, is a Linux watchdog process 
to monitor if weewx is still running.  If weewx is running the modules it 
calls will function as expected - or there will be a log error message.  
Log error messages can be detected by standard Linux processes also.

Weewx is designed to retry things in the event of most recoverable errors, 
and to log messages when problems are found.  These messages are detectable.

The time of the last archive record can always be determnined by a simple 
sql program, and appropriate action taken - even rebooting the rpi if 
necessary

The weewx alarm process is for something which HAS happened, rather than 
something which has not!!

The most likely cause of problems will be the weather station itself or the 
rpi itself - and it is unlikely there will be a bug in weewx - it is very 
robustly designed.

The standard webpages also include the time of generation - so receiving 
systems have a means of checking the 'newness' of pages.



On Wednesday, 26 October 2016 16:44:35 UTC+3, Lukas Myska wrote:

> Not so quite...
> I would prefer if the module can watch, if e.g. ftp export module don't 
> send any data for a long time or something else... I understand that no 
> running weewx = no running module.
> The fault can be made e.g. with some error of weather station, company 
> network etc.
> Anyway, thank you Tom! :-)
>
> Dne středa 26. října 2016 14:48:14 UTC+2 Tom Keffer napsal(a):
>>
>> Weewx must be running for the alarm module alarm.py to work.
>>
>> By definition, you are looking for something that will send an email if 
>> weewx is *not* running. This will require an operating system monitoring 
>> program. There are several threads about this subject.
>>
>> However, not even that will work if the RPi itself fails to run.
>>
>> Have you had problems?
>>
>> -tk
>>
>>

-- 
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