Is archive data adequate for your needs? (Typically updates every five 
minutes, although you can set the archive period to something else.) Or do 
you need to use loop data, which is nearly real-time?

If archive data will work, the simplest (not necessarily best) way to do 
what you ask is to add a simple template for a plain text file to the 
active skin, specifying the data you want. Then your Bash script simply 
reads the file after every archive period, like so:

newdata=$(cat <filename>)

If you need loop data, it's a bit more complicated.


On Thursday, October 3, 2019 at 10:01:58 AM UTC-4, Ramesh Rasappan wrote:
>
> My current setup pulls weather data from Offset console using weewx-wh23xx 
> driver. I want to run a bash script that can get the current weather and 
> send me a notification if it meets the criteria.
>
>
> I could probably get the weather data directly from PWS console 
> using weewx-wh23xx driver but I can't figure out this!! Of course one could 
> use sqlite3 to pull the data from either weewx database 
> (/var/lib/weewx/weewx.sdb) but it looks complicated for me that I have to 
> run some complex script to retrieve the current data!
>
>
> Can you share some script that can pull the current data from either weewx 
> database or from the console? thank you
>
>
>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/01a9a733-cecd-4ab0-9dc6-ba48bebe367b%40googlegroups.com.

Reply via email to