I think using something like alarm.py that is tied to WeeWX to 
monitor/report on WeeWX operation will be somewhat limiting. I use a bash 
script that checks the age of one or more files generated by WeeWX. It's 
run as a cron job every 15 minutes and if the file(s) is/are stale an email 
is sent.

Gary

On Saturday, 29 October 2022 at 10:22:57 UTC+10 meteo219 wrote:

> Hello Weewx Users,
>
> Is anyone out there using alarm.py to send an email during a weewx 
> shutdown or a weewx crash?  For example, I had the following weewx crash: 
>
> INFO user.sdr: shutdown process /usr/local/bin/rtl_433 -M utc -F json -R 40
> INFO user.sdr: shutdown complete
> CRITICAL __main__: Caught WeeWxIOError: rtl_433 process is not running
> CRITICAL __main__:     ****  Waiting 60 seconds then retrying...
> usb 1-1.4: new high-speed USB device number 8 using xhci_hcd
> Device not responding to setup address.
> usb 1-1.4: Device not responding to setup address.
> [460827.904059] usb 1-1.4: device not accepting address 8, error -71
>
> I am currently troubleshooting the USB port / SDR extension cable 
> connecting to my rpi, but I went a few days without data because I didn't 
> know weewx crashed.
>
> In other words, is there something we can use in the expression = " " 
> statement to send an email during a weewx shutdown?
>
> Thanks in advance!
>
> Jeff
>

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/958360d3-b2ea-4357-a97b-d3ab263be5acn%40googlegroups.com.

Reply via email to