ok, so if I run RTL_433 directly it works. 
If i run it from sdr.py it crashes:

pi@raspberrypi:/usr/share/weewx/weewx $ sudo PYTHONPATH=/usr/share/weewx 
python /usr/share/weewx/user/sdr.py --cmd="rtl_433  -M utc -F json  -f 
914880000"err: rtl_433 version unknown inputs file rtl_tcp RTL-SDR

err: Trying conf file at "rtl_433.conf"...

err: Trying conf file at "/root/.config/rtl_433/rtl_433.conf"...

err: Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...

err: Trying conf file at "/etc/rtl_433/rtl_433.conf"...

err: 

err: Consider using "-M newmodel" to transition to new model keys. This 
will become the default someday.

err: A table of changes and discussion is at 
https://github.com/merbanan/rtl_433/pull/986.

err: 

err: Registered 97 out of 123 device decoding protocols [ 1-4 8 11-12 15-17 
19-21 23 25-26 29-36 38-60 62-64 67-71 73-100 102-103 108-116 119 121 ]

pi@raspberrypi:/usr/share/weewx/weewx $ rtl_433  -M utc -F json  -f 
914880000rtl_433 version unknown inputs file rtl_tcp RTL-SDR
Trying conf file at "rtl_433.conf"...
Trying conf file at "/home/pi/.config/rtl_433/rtl_433.conf"...
Trying conf file at "/usr/local/etc/rtl_433/rtl_433.conf"...
Trying conf file at "/etc/rtl_433/rtl_433.conf"...

Consider using "-M newmodel" to transition to new model keys. This will 
become the default someday.
A table of changes and discussion is at 
https://github.com/merbanan/rtl_433/pull/986.

Registered 97 out of 123 device decoding protocols [ 1-4 8 11-12 15-17 
19-21 23 25-26 29-36 38-60 62-64 67-71 73-100 102-103 108-116 119 121 ]
Detached kernel driver
Found Rafael Micro R820T tuner
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
Sample rate set to 250000 S/s.
Tuner gain set to Auto.
Tuned to 914.880MHz.
{"time" : "2019-03-31 13:45:59", "model" : "Fine Offset WH65B", "id" : 10, 
"temperature_C" : 15.400, "humidity" : 73, "wind_dir_deg" : 281, 
"wind_speed_ms" : 0.956, "gust_speed_ms" : 1.020, "rainfall_mm" : 328.422, 
"uv" : 139, "uvi" : 0, "light_lux" : 13733.000, "battery" : "OK", "mic" : 
"CRC"}
^CSignal caught, exiting!
Reattached kernel driver


So it has to be a bad install of weewx sdr? 

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

Reply via email to