Looking for some guidance....

I'm thinking of writing an extension that emits a JSON broadcast of weather 
station data in a format that matches the WeatherFlow UDP API.   The reason 
I'm asking is that there's a very nice project called PiConsole that uses a 
pi3 or pi4 to drive a pretty slick looking console. (link to screenshot) 
<https://global.discourse-cdn.com/business7/uploads/sws/original/2X/2/25c6fa1d496d5a0fb4504392188e5f2112762ed9.png>

The new beta of PiConsole supports listening to the WeatherFlow UDP 
broadcasts, so I was thinking that if there was a generic weewx service 
that emitted compliant JSON broadcasts, then weewx could drive that slick 
looking display for any of the dozens of station types weewx supports....

Looking for suggestions re: what approach to take and if there are other 
services/extensions to use as starting points.  CSV and MQTT certainly came 
to mind as two things to look at in more detail.  Are there others ? 
 Perhaps ones that tweet or the like ?

Some nuances about the UDP API if that matters...

   - station observations are emitted as one type of message once a minute
   - 'rapid wind' is emitted every 3 seconds in another type of message
   - lightning and rain start events are emitted as they're detected
   - there are a couple other messages for device status that I can 
   probably skip
   - each message type has a nicely documented API

The kind of things I'm wondering include...

   - given 4-5 types of messages with different periods, do I just do them 
   in one service/extension ?
   - for rapid_wind (3 sec period) and events (when they appear) would I 
   grab that from LOOP ?
   - for a 60-sec observation would I grab that from LOOP too ? Or would it 
   be easier to just grab archive packets and it would only update those 
   things every 5 minutes ?
   - oh - the UDP API is in metric and my station runs US units.   I'd like 
   weewx to do the heavy lifting for unit conversions back to metric for me if 
   possible.

Consider my station to be a VP2 at 5-minute interval if that helps any, but 
what I'm trying to do is consider a more general approach for broadcasting 
station data that would work for any vendor gear, making the PiConsole 
display nice and generic regardless of hardware vendor for the actual 
station.

Suggestions appreciated...

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/a44992b2-905b-4ee0-baf6-39200fc86e44n%40googlegroups.com.

Reply via email to