Thanks to all who suggested various solutions or approaches. I perhaps was
overly-specific in the original question, saying I wanted to run a script,
when all along the solution was under my nose: there is an example provided
in the standard distro that does, I think, just what I want -
/usr/share/doc/weewx/examples/lowBattery.py
I will dink around with that and report back here if I find anything
significant.
Thanks again,
rob
On Monday, June 7, 2021 at 9:27:41 AM UTC-7 Rob Cranfill wrote:
> Apologies if this has been asked - I searched without luck - let me know
> where to look.....
>
> I would like to have WeeWX tell me when my weather station's battery is
> low - perhaps running a script once a day that can check the battery status
> and send me mail if it's low. (All kinds of weirdness happens when it gets
> that way, which I always forget about and freak out thinking the whole
> system is boofed, when it's really only a low battery.)
>
> Currently I have a cron job that "screen scrapes" the main page, where the
> Sensor Status / Battery Status / Transmitter Battery field has the info I
> want ("OK", or "LOW", I think). But that's kinda clunky.
>
> The best I can come up with so far is to configure the system to also
> output a simple HTML page - or maybe just a text file? - with that one
> value in it, that will simplify the parsing/scraping, but that's still not
> very elegant.
>
> Or is this just beyond the scope of WeeWX?
>
> Thanks for any suggestions,
> Rob in Seattle
>
>
--
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/40fbf93f-7bf1-4c80-8ebc-e2cbe0558d27n%40googlegroups.com.