Raddy L7 Weather Station: XML of Current Conditions-How to Feed WeeWx?

188 views
Skip to first unread message

Michael

unread,
Mar 6, 2024, 12:02:47 PM3/6/24
to weewx-user
Hello,

First I am not a developer, so pardon my ignorance. 

I have a Raddy L7 LoRa WX station.  I found that on the local configuration screen of the device, you can enter /client?command=record and get an XML output of current conditions.  Just wondering what getting this data to feed into WeeWx would entail?  

{"sensor":[ {"title":"Indoor","list":[["Temperature","68.9","°F"],["Humidity","38","%"]]},{"title":"Outdoor","list":[["Temperature","61.7","°F"],["Humidity","29","%"]]},{"title":"Pressure","list":[["Absolute","26.76","inhg"],["Relative","29.84","inhg"]]},{"title":"Wind Speed","list":[["Max Daily Gust","5.1","mph"],["Wind","1.1","mph"],["Gust","1.6","mph"],["Direction","123","°"],["Wind Average 2 Minute","0.4","mph"],["Direction Average 2 Minute","111","°"],["Wind Average 10 Minute","1.3","mph"],["Direction Average 10 Minute","134","°"]]},{"title":"Rainfall","list":[["Rate","0.0","inch/hr"],["Hour","0.0","inch","43"],["Day","0.0","inch","44"],["Week","0.0","inch","45"],["Month","0.0","inch","46"],["Year","5.72","inch","47"],["Total","10.65","inch","48"]],"range":"Range: 0inch to 393.7inch."},{"title":"Solar","list":[["Light","261.36","w/m²"],["UVI","1.2",""]]}],"battery":{"title":"Battery","list":["All battery are ok"]}}

michael.k...@gmx.at

unread,
Mar 6, 2024, 12:31:06 PM3/6/24
to weewx-user
Fwiw, it is JSON, not XML. If you can get your device to emit these values as MQTT messages, you probably can get along with https://github.com/bellrichm/WeeWX-MQTTSubscribe and some configs.

matthew wall

unread,
Mar 6, 2024, 1:17:39 PM3/6/24
to weewx-user
it looks like the raddy L7 can upload to wundgerground, so if you are using the raddy's wifi, you should be able to use the interceptor driver to capture or directly receive the wunderground output.  setting up the interceptor is not trivial, but there are many examples.

it would be nice if there were a generic json driver, analogous to the fileparse driver.  but the json structure varies a lot from one device to another, and the mechanism for obtaining that json output also varies.  for example, the tempest broadcasts json data, whereas the ruddy emits json as a response to http request.  so i understand why no one has written one yet.

m

vince

unread,
Mar 6, 2024, 1:34:26 PM3/6/24
to weewx-user
Something like the purpleair or davis airlink extensions could perhaps be modified. Query the endpoint and map it to weewx db elements. Or query periodically and feed MQTT.  SHOULD BE DOABLE.

Michael

unread,
Mar 6, 2024, 2:59:36 PM3/6/24
to weewx-user
I have officially given up on getting interceptor to work in sniffing mode on Phython3.  

vince

unread,
Mar 6, 2024, 3:33:14 PM3/6/24
to weewx-user
You have some pretty hideously formatted JSON to parse, but here's what it looks like in a more readable format after piping it through 'jq' and doing a little hand editing for readability....

{

Rich Bell

unread,
Mar 6, 2024, 4:59:56 PM3/6/24
to weewx...@googlegroups.com
I have not tried parsing this via MQTTSubscribe, but I have my doubts that it currently handles it.
rich

--
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/421d1ce1-9dcf-4148-827d-b97c92a4495cn%40googlegroups.com.

bell...@gmail.com

unread,
Mar 6, 2024, 5:03:05 PM3/6/24
to weewx-user

Considering the format could be any valid json, it is a bit of a challenge. I haven’t had a chance to see if MQTTSubscribe could handle this, but when I get some time I plan to
rich

Ian Millard

unread,
Mar 6, 2024, 6:33:29 PM3/6/24
to weewx...@googlegroups.com
FWIW here you can find a very good online json path finder and validator which is very useful in helping to work out a parsing scheme which can be adapted for various computer languages: -

Rich Bell

unread,
Mar 6, 2024, 7:05:37 PM3/6/24
to weewx...@googlegroups.com
Cool. I’ll check it out. 
Thanks for the link!

site24x7-fav.ico

Graham Eddy

unread,
Mar 6, 2024, 8:51:21 PM3/6/24
to WeeWX User
Jsonpath is good for plucking specific values on the subscribe/inward side, but it doesn’t help with the publish/outward side (or at least i couldn’t think of one). i am still using the eval(expr, weewx-packet or json-message) approach in my mqtt implementation
⊣GE⊢

On 7 Mar 2024, at 11:05 am, Rich Bell <bell...@gmail.com> wrote:

Cool. I’ll check it out. 
Thanks for the link!
On Wed, Mar 6, 2024 at 6:33 PM 'Ian Millard' via weewx-user <weewx...@googlegroups.com> wrote:
FWIW here you can find a very good online json path finder and validator which is very useful in helping to work out a parsing scheme which can be adapted for various computer languages: -

Reply all
Reply to author
Forward
0 new messages