Unfortunately, no, you can't do that. The expression can only involve the
current packet or archive record.

If a shutdown is a possibility, some sort of process monitoring strategy is
probably a better bet. However, I would much rather get to the root cause
of the shutdown. There have been instances of weewxd going literally years
without a failure.

Can we see farther up in the log?

-tk

On Fri, Oct 28, 2022 at 5:23 PM meteo219 <[email protected]> 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/996ca78d-1613-44c4-8460-98de3a74adf5n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/996ca78d-1613-44c4-8460-98de3a74adf5n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAPq0zEDztfFvyatALYOx7gE07-mx%2BNVD-tjz_szUBP3nap5grw%40mail.gmail.com.

Reply via email to