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/9c0ac153-b6bf-433d-9598-eded851cda51%40googlegroups.com.

Reply via email to