SDR driver with WeeWX 4.0.0b14

50 views
Skip to first unread message

steeple ian

unread,
Mar 8, 2020, 8:31:58 PM3/8/20
to weewx-development
Hi

Hit a problem with the SDR driver. Under WeeWX3.9.2 it work perfectly.

With WeeWX 4.0.0b14 I hit this problem.

ar 09 00:18:24 raspberrypi weewxd[8537]: weewx[8537] CRITICAL weewx.engine:     ****      self.console = loader_function(config_dict, self)
Mar 09 00:18:24 raspberrypi weewxd[8537]: weewx[8537] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/user/sdr.py", line 147, in loader
Mar 09 00:18:24 raspberrypi weewxd[8537]: weewx[8537] CRITICAL weewx.engine:     ****      return SDRDriver(**config_dict[DRIVER_NAME])
Mar 09 00:18:24 raspberrypi weewxd[8537]: weewx[8537] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/user/sdr.py", line 2667, in __init__
Mar 09 00:18:24 raspberrypi weewxd[8537]: weewx[8537] CRITICAL weewx.engine:     ****      self._mgr.startup(cmd, path, ld_library_path)
Mar 09 00:18:24 raspberrypi weewxd[8537]: weewx[8537] CRITICAL weewx.engine:     ****    File "/home/weewx/bin/user/sdr.py", line 207, in startup
Mar 09 00:18:24 raspberrypi weewxd[8537]: weewx[8537] CRITICAL weewx.engine:     ****      (cmd, e))
Mar 09 00:18:24 raspberrypi weewxd[8537]: weewx[8537] CRITICAL weewx.engine:     ****  WeeWxIOError: failed to start process 'rtl_433 -f 868M -s 1024k -M utc -F json -R 78': [Errno 13] Permission denied
Mar 09 00:18:24 raspberrypi weewxd[8537]: weewx[8537] CRITICAL __main__: Unable to load driver: failed to start process 'rtl_433 -f 868M -s 1024k -M utc -F json -R 78': [Errno 13] Permission denied
Mar 09 00:18:24 raspberrypi weewxd[8537]: weewx[8537] CRITICAL __main__:     ****  Exiting...

Raspbian Buster on a Pi4B with a standard install. If I revert to 3.9.3, the problem goes away.

Any ideas?


steeple ian

unread,
Mar 8, 2020, 8:37:46 PM3/8/20
to weewx-development
These are my weewx.conf settings.

[SDR]
    # This section is for the software-defined radio driver.
   
   
    driver = user.sdr
    path = /usr/local/bin
    cmd = rtl_433 -f 868M -s 1024k -M utc -F json -R 78
   
   
    [[sensor_map]]
       
        outTemp = temperature.71.FOWH65BPacket
        windSpeed = wind_speed.71.FOWH65BPacket
        UV = uv_index.71.FOWH65BPacket
        light = light.71.FOWH65BPacket
        outBatteryStatus = battery.71.FOWH65BPacket
        outHumidity = humidity.71.FOWH65BPacket
        windDir = wind_dir.71.FOWH65BPacket
        windGust = wind_gust.71.FOWH65BPacket
        rain_total = rain_total.71.FOWH65BPacket
        inTemp = temperature.233.FOWH32BPacket
        inHumidity = humidity.233.FOWH32BPacket
        barometer = pressure.233.FOWH32BPacket
        inTempBatteryStatus = battery.233.FOWH32BPacket

Vince Skahan

unread,
Mar 8, 2020, 8:52:14 PM3/8/20
to weewx-development
On Sunday, March 8, 2020 at 5:31:58 PM UTC-7, steeple ian wrote:
Mar 09 00:18:24 raspberrypi weewxd[8537]: weewx[8537] CRITICAL __main__: Unable to load driver: failed to start process 'rtl_433 -f 868M -s 1024k -M utc -F json -R 78': [Errno 13] Permission denied


I would suspect your rtl_433 program is set with a unix mode that doesn't include the 'x' bits to make them executable.
Try changing the permissions on that file.

Reply all
Reply to author
Forward
0 new messages