Thanks, Vince, I will check out using a .tmpl file to create a text file, perhaps. - rob
On Monday, June 7, 2021 at 9:47:09 AM UTC-7 vince wrote: > On Monday, June 7, 2021 at 9:27:41 AM UTC-7 [email protected] wrote: > >> 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? >> >> > I dunno, seems pretty elegant and within scope to me. > > WeeWX will generate anything you want in any format you want, assuming you > create a .tmpl file that makes it happen when the reports are generated. > It would be pretty easy to have a cron job read that file in a script and > conditionally alert you somehow such as email. > > If you want a pure weewx way, look at > https://github.com/weewx/weewx/blob/master/examples/alarm.py for the > Alarm example as a starting point, but everything doesn't have to be done > purely in weewx. If it was me, I'd do it the external simple bash script > way essentially like you're doing, I'd just use weewx to make generating > the input data a bit easier. > > That said, if what you have already works fine, you're done :-) > -- 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/e0cac997-73ce-4afe-8332-207f4f41f122n%40googlegroups.com.
