Getting data from weewx

87 views
Skip to first unread message

Per Weisteen

unread,
Aug 26, 2023, 10:18:06 AM8/26/23
to weewx-user
Hi, I'm running weewx on Raspberry Pi at my summer cabin and would like to know how to extract data on temperature, pressure, etc for use in another system. Is there a command I could run for extracting data for the last 5 minutes? The RPi has sshd enabled and I can ssh into it and run commands. Could I extract data using wee utilities or should I use SQLite command directly? 

I'm planning to display the data as text in one corner of short videos I'm getting from my weather camera (Link to camera on Windy) using ffmpeg to add text to the video. 

Any suggestions would be most welcome.

Graham Eddy

unread,
Aug 26, 2023, 11:05:11 AM8/26/23
to WeeWX User
not quite what is being asked re ‘extract data for the last 5 minutes’…
given weewx usually generates data reports each 5 mins, presumably you just want a file generated with the data you specifically want.
i create a json file with basic wx info each 5 mins as a javascript-friendly api - it is just a template in a skin
⊣GE⊢

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/23526fa7-48cb-4f3c-b28a-0090dc41eefbn%40googlegroups.com.

Greg from Oz

unread,
Aug 26, 2023, 7:13:19 PM8/26/23
to weewx-user
I just get my data directly from mysql to overlay my webcam.

Greg from Oz

unread,
Aug 26, 2023, 7:18:12 PM8/26/23
to weewx-user
The link for the animation directly is here:
I make a webm time lapse so if you are using an iphone it may not work. Android and desktop browsers seem to work Ok I think.
I use webm so the file size is small.
I do a snapshot every 30 seconds as a jpg.
Reply all
Reply to author
Forward
0 new messages