Re: [weewx-user] Raddy L7 Weather Station: XML of Current Conditions-How to Feed WeeWx?

2024-03-06 Thread Graham Eddy
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  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 
> mailto:weewx-user@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: -
>> 
>> JSONPath Finder and Evaluator
>> site24x7.com
>> 
>>  JSONPath 
>> Finder and Evaluator 
>> 
>> site24x7.com  
>>  
>> 
>> 
>>> On 6 Mar 2024, at 21:59, Rich Bell >> > wrote:
>>> 
>>> I have not tried parsing this via MQTTSubscribe, but I have my doubts that 
>>> it currently handles it.
>>> rich
>>> 
>>> On Wed, Mar 6, 2024 at 3:33 PM vince >> > wrote:
 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
 
 {
 
   "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" ]
   }
 }
 
 
 On Wednesday, March 6, 2024 at 11:59:36 AM UTC-8 Michael wrote:
> I have officially given up on getting interceptor to work in sniffing 
> mode on Phython3.  
> 
> On Wednesday, March 6, 2024 at 11:17:39 AM UTC-7 matthew wall wrote:
>> 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
 
 
 -- 
 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/421d1ce1-9dcf-4148-827d-b97c92a4495cn%40googlegroups.com
  
 .
>>> 
>>> 
>> 
>>> -- 
>>> You received 

Re: [weewx-user] Raddy L7 Weather Station: XML of Current Conditions-How to Feed WeeWx?

2024-03-06 Thread Rich Bell
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-user@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: -
>
> JSONPath Finder and Evaluator
> 
> site24x7.com
> 
> [image: site24x7-fav.ico]
> 
> 
>
>
> On 6 Mar 2024, at 21:59, Rich Bell  wrote:
>
> I have not tried parsing this via MQTTSubscribe, but I have my doubts that
> it currently handles it.
> rich
>
> On Wed, Mar 6, 2024 at 3:33 PM vince  wrote:
>
>> 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
>>
>> {
>>
>>   "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" ]
>>   }
>> }
>>
>>
>> On Wednesday, March 6, 2024 at 11:59:36 AM UTC-8 Michael wrote:
>>
>>> I have officially given up on getting interceptor to work in sniffing
>>> mode on Phython3.
>>>
>>> On Wednesday, March 6, 2024 at 11:17:39 AM UTC-7 matthew wall wrote:
>>>
 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

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

Re: [weewx-user] Raddy L7 Weather Station: XML of Current Conditions-How to Feed WeeWx?

2024-03-06 Thread 'Ian Millard' via weewx-user
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: -

https://www.site24x7.com/tools/jsonpath-finder-validator.html

> On 6 Mar 2024, at 21:59, Rich Bell  wrote:
> 
> I have not tried parsing this via MQTTSubscribe, but I have my doubts that it 
> currently handles it.
> rich
> 
> On Wed, Mar 6, 2024 at 3:33 PM vince  > wrote:
>> 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
>> 
>> {
>> 
>>   "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" ]
>>   }
>> }
>> 
>> 
>> On Wednesday, March 6, 2024 at 11:59:36 AM UTC-8 Michael wrote:
>>> I have officially given up on getting interceptor to work in sniffing mode 
>>> on Phython3.  
>>> 
>>> On Wednesday, March 6, 2024 at 11:17:39 AM UTC-7 matthew wall wrote:
 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
>> 
>> 
>> -- 
>> 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/421d1ce1-9dcf-4148-827d-b97c92a4495cn%40googlegroups.com
>>  
>> .
> 
> 
> -- 
> 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/CAG4CQqyqTkcda9a5EWe6DVbz2oPJtnqf_9Q2kbG%3DWCksxKgsvw%40mail.gmail.com
>  
> .

-- 
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/4AC3D106-F4E4-479A-804D-C374DCEB94EA%40btinternet.com.


[weewx-user] Raddy L7 Weather Station: XML of Current Conditions-How to Feed WeeWx?

2024-03-06 Thread Michael
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"]}}

-- 
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/fd92564e-8dee-4042-b6c3-938d82b0n%40googlegroups.com.