Hi,
I have done some more research and it looks like there was a change in 
RTL_433 at tag 19.08 (August 2019) that changed the naming convention for a 
significant number of wind related fields for lots of sensors. I guess 
sdr.py needs to be updated to take this into account. I would offer but my 
main programming was over 20 years ago and have never programmed in Python 
so I would probably do more harm than good.

https://github.com/merbanan/rtl_433/commit/6d21cad0f158fbc6064d66ddd1abf96d6ba4867b#diff-06935eba6ba3c8d3e4b0d4d59d294ac8

see also:

https://github.com/merbanan/rtl_433/blob/6d75c7db86793072f854a33efa0a88a83e06e796/src/devices/oregon_scientific.c#L637-L654

On Wednesday, 20 May 2020 14:00:38 UTC+1, Rob Series wrote:
>
> Hi,
>
> Please could anyone help. I'm having problems using an Oregon wind speed 
> sensor using instructions on /weewx/weewx/wiki/sdr-rpi-recipe.
> This was working, but following an upgrade from an old WGR800 to the newer 
> WGR800X it seems to have broken. 
>  
> Output from sdr.py shows its getting the correct wind speed, but the parse 
> is breaking. The crazy thin is it works with my older WGR800 unit where the 
> input appears to be the same format. Is it possibly related to the \n
>
> WEEWX SDR FILTER OUTPUT
> =======================
> * pi@raspberrypi:~ $ sudo PYTHONPATH=/usr/share/weewx python 
> /usr/share/weewx/user/sdr.py --cmd="rtl_433 -M utc -F json" --debug*
>
> out:[u'{"time" : "2020-05-20 12:24:03", "brand" : "OS", "model" : 
> "Oregon-WGR800", "id" : 100, "channel" : 0, "battery_ok" : 1, 
> "wind_max_m_s" : 1.700, "wind_avg_m_s" : 0.600, "wind_dir_deg" : 202.500
> }\n']
>
> parsed: {'battery.0:100.OSWGR800Packet': 1, 
> 'wind_dir.0:100.OSWGR800Packet': None, 'dateTime': 1589977443, 
> 'wind_speed.0:100.OSWGR800Packet': None, 
> 'wind_gust.0:100.OSWGR800Packet': None, 'usUnits': 17}
>
>
> *weewx.conf*
>
> ...
>   [SDR]
>     # This section is for the software-defined radio driver.
>     
>     # The driver to use
>     driver = user.sdr
>     cmd = rtl_433 -M utc -F json
>     path=/usr/local/bin/
>     log_unknown_sensors = True
>     log_unmapped_sensors = True
>     
>     [[sensor_map]]  
>         # Wind sensor
>         windSpeed = wind_speed.0:100.OSWGR800Packet
>         windGust = wind_gust.0:100.OSWGR800Packet
>         windDir = wind_dir.0:100.OSWGR800Packet
>         windBatteryStatus = battery.0:100.OSWGR800Packet
>
>
> Other info
> ==========
> pi@raspberrypi:~ $ sudo PYTHONPATH=/usr/share/weewx python 
> /usr/share/weewx/user/sdr.py --version
> sdr driver version 0.77
>
> pi@raspberrypi:~ $ rtl_433 -V
> rtl_433 version 20.02-55-gc1d1f9f branch master at 202005162227 inputs 
> file rtl_tcp RTL-SDR
>
>
>
> ALSO
> ====
> If anyone has access to edit the sdr-rpi-recepie page, could the add 
> appropriate 'cmd' and 'path' lines to the conf file (or should thhs have 
> been added automativally by weewx_conf and the install script?
> It took me some time to figure it out.
>
> Many thanks for a great product.
>
>
>
>

-- 
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/f314cf81-9a25-404f-9b49-e17a50535a4d%40googlegroups.com.

Reply via email to