Trying to get SDR working with weewx.

54 views
Skip to first unread message

Gil Hutcheson

unread,
Mar 6, 2020, 10:21:28 AM3/6/20
to weewx-user
Weewx seems to be working in simulator works fine. It I run the rtl_433 command I am getting data from the sensors. When I use  sudo /etc/init.d/weewx start I get the error below. Any suggestions, please?

Thanks,
Gil






Mar  6 10:08:45 raspberrypi systemd[1]: Starting LSB: weewx weather system...
Mar  6 10:08:45 raspberrypi weewx[2215]: engine: Initializing weewx version 3.9.2
Mar  6 10:08:45 raspberrypi weewx[2215]: engine: Using Python 2.7.16 (default, Oct 10 2019, 22:02:15) #012[GCC 8.3.0]
Mar  6 10:08:45 raspberrypi weewx[2215]: engine: Platform Linux-4.19.97-v7l+-armv7l-with-debian-10.3
Mar  6 10:08:45 raspberrypi weewx[2215]: engine: Locale is 'en_US.UTF-8'
Mar  6 10:08:45 raspberrypi weewx[2215]: engine: pid file is /var/run/weewx.pid
Mar  6 10:08:45 raspberrypi weewx[2219]: engine: Using configuration file /etc/weewx/weewx.conf
Mar  6 10:08:45 raspberrypi weewx[2219]: engine: Debug is 1
Mar  6 10:08:45 raspberrypi weewx[2219]: engine: Initializing engine
Mar  6 10:08:45 raspberrypi weewx[2219]: engine: Loading station type SDR (user.sdr)
Mar  6 10:08:45 raspberrypi weewx[2204]: Starting weewx weather system: weewx.
Mar  6 10:08:45 raspberrypi systemd[1]: Started LSB: weewx weather system.
Mar  6 10:08:45 raspberrypi weewx[2219]: sdr: MainThread: driver version is 0.77
Mar  6 10:08:45 raspberrypi weewx[2219]: sdr: MainThread: sensor map is {}
Mar  6 10:08:45 raspberrypi weewx[2219]: sdr: MainThread: deltas is {'strikes': 'strikes_total', 'rain': 'rain_total'}
Mar  6 10:08:45 raspberrypi weewx[2219]: sdr: MainThread: startup process 'rtl_433 -M utc -F json'
Mar  6 10:08:45 raspberrypi weewx[2219]: engine: Import of driver failed: failed to start process 'rtl_433 -M utc -F json': [Errno 2] No such file or directory (<class 'weewx.WeeWxIOError'>)
Mar  6 10:08:45 raspberrypi weewx[2219]: engine: Unable to load driver: failed to start process 'rtl_433 -M utc -F json': [Errno 2] No such file or directory
Mar  6 10:08:45 raspberrypi weewx[2219]:     ****  Exiting...

mwall

unread,
Mar 6, 2020, 11:00:58 AM3/6/20
to weewx-user
On Friday, March 6, 2020 at 10:21:28 AM UTC-5, Gil Hutcheson wrote:
Weewx seems to be working in simulator works fine. It I run the rtl_433 command I am getting data from the sensors. When I use  sudo /etc/init.d/weewx start I get the error below. Any suggestions, please?

Mar  6 10:08:45 raspberrypi weewx[2219]: engine: Unable to load driver: failed to start process 'rtl_433 -M utc -F json': [Errno 2] No such file or directory

the environment in which you are invoking rtl_433 is different from the environment in which weewx is starting as a daemon

be sure that rtl_433 is in the path

you can do that one of these ways:
 - specify the full path to rtl_433 in the [SDR] section of your weewx configuration file
 - specify the path in the [SDR] section of your weewx configuration file
 - extend PATH in the weewx rc script

the weewx-sdr readme has details:


see the 'Environment' section

Gil Hutcheson

unread,
Mar 6, 2020, 11:52:26 AM3/6/20
to weewx-user
Thanks so much! I'll check it out.

Gil
Reply all
Reply to author
Forward
0 new messages