[weewx-user] sdr.py not parsing Oregon WGR800X output correctly.

2020-05-20 Thread 'Rob Series' via weewx-user
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.


[weewx-user] sdr.py Fine Offset WH32B sensor

2019-04-07 Thread steepleian
RTL_433 was updated today to include the Fine Offset WH32B sensor on the -R 
78 switch.

I have updated accordingly and now able to see the data stream when running 
from the command line.

However, thus far, I have not been able to map the packets correctly with 
the sdr.py driver. Has anybody else had a chance to look at this yet and 
come to any conclusions?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] sdr.py

2016-10-30 Thread Brad Tucker
Trying to install weewx. I have installed rtlsdr rtl433 along with weewx.

I have tested rtf-433 by issuing rtl-433 -G and get lots of data passed 
back.

Once I try and use the actual sdr.py driver directly using the command:
sudo PYTHONPATH=bin python bin/user/sdr.py

I get this:
Traceback (most recent call last):
  File "bin/user/sdr.py", line 699, in 
[--path=PATH] [--ld_library_path=LD_LIBRARY_PATH]""" % DEFAULT_CMD
ValueError: unsupported format character 'p' (0x70) at index 1

Not quite sure where to go from here. Seems maybe I need to call a path out 
to the driver.

I have tried things like this:
export PATH=/usr/local/bin:${PATH}

export LD_LIBRARY_PATH=/usr/local/lib


from the shell and then issuing the command. Im a bit of a newbie here so any 
help would be greatly appreciated.


Thanks,

Brad

-- 
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.
For more options, visit https://groups.google.com/d/optout.