I recently had to rebuild my weewx raspberry pi. I can no longer get weewx 
to run using sdr/rtl_433 as a service or on boot. But it works when I run 
weewx manually. I am trying to use weewx 4.5.1 but was using 4.2 without 
issue.

when I run

sudo weewxd 

this is what I see in log (it works!)

May 10 04:52:29 raspberrypi weewx[2016] INFO __main__: Initializing weewx 
version 4.5.1

May 10 04:52:29 raspberrypi weewx[2016] INFO __main__: Using Python 2.7.16 
(default, Oct 10 2019, 22:02:15) #012[GCC 8.3.0]

May 10 04:52:29 raspberrypi weewx[2016] INFO __main__: Platform 
Linux-5.10.17-v7+-armv7l-with-debian-10.8

May 10 04:52:29 raspberrypi weewx[2016] INFO __main__: Locale is 
'en_GB.UTF-8'

May 10 04:52:29 raspberrypi weewx[2016] INFO __main__: Using configuration 
file /etc/weewx/weewx.conf

May 10 04:52:29 raspberrypi weewx[2016] INFO __main__: Debug is 0

May 10 04:52:29 raspberrypi weewx[2016] INFO weewx.engine: Loading station 
type SDR (user.sdr)

May 10 04:52:29 raspberrypi weewx[2016] INFO user.sdr: driver version is 
0.78

May 10 04:52:29 raspberrypi weewx[2016] INFO user.sdr: sensor map is {}

May 10 04:52:29 raspberrypi weewx[2016] INFO user.sdr: deltas is 
{'strikes': 'strikes_total', 'rain': 'rain_total'}

May 10 04:52:29 raspberrypi weewx[2016] INFO user.sdr: startup process 
'rtl_433 -M utc -F json'

May 10 04:52:29 raspberrypi weewx[2016] INFO weewx.engine: StdConvert 
target unit is 0x1

May 10 04:52:29 raspberrypi weewx[2016] INFO weewx.engine: Archive will use 
data binding wx_binding

May 10 04:52:29 raspberrypi weewx[2016] INFO weewx.engine: Record 
generation will be attempted in 'hardware'

May 10 04:52:29 raspberrypi weewx[2016] INFO weewx.engine: Using archive 
interval of 300 seconds (specified in weewx configuration)

May 10 04:52:29 raspberrypi weewx[2016] INFO weewx.restx: StationRegistry: 
Registration not requested.

May 10 04:52:29 raspberrypi weewx[2016] INFO weewx.restx: Wunderground: 
Posting not enabled.

May 10 04:52:29 raspberrypi weewx[2016] INFO weewx.restx: PWSweather: 
Posting not enabled.

May 10 04:52:29 raspberrypi weewx[2016] INFO weewx.restx: CWOP: Posting not 
enabled.

May 10 04:52:29 raspberrypi weewx[2016] INFO weewx.restx: WOW: Posting not 
enabled.

May 10 04:52:29 raspberrypi weewx[2016] INFO weewx.restx: AWEKAS: Posting 
not enabled.

May 10 04:52:29 raspberrypi weewx[2016] INFO __main__: Starting up weewx 
version 4.5.1

May 10 04:52:29 raspberrypi weewx[2016] INFO weewx.engine: Using binding 
'wx_binding' to database 'weewx.sdb'

May 10 04:52:29 raspberrypi weewx[2016] INFO weewx.manager: Starting 
backfill of daily summaries

May 10 04:52:29 raspberrypi weewx[2016] INFO weewx.manager: Empty database

May 10 04:52:29 raspberrypi weewx[2016] INFO weewx.engine: Starting main 
packet loop.

May 10 04:52:29 raspberrypi kernel: [ 1072.337730] r820t 12-001a: 
destroying instance

May 10 04:52:29 raspberrypi kernel: [ 1072.338432] dvb_usb_v2: 'Realtek 
RTL2832U reference design:1-1.4.3' successfully deinitialized and 
disconnected

When I run it as a service ...

sudo /etc/init.d/weewx start

This is what I see in the log (it fails)

May 10 04:55:12 raspberrypi weewx[2065] INFO __main__: Initializing weewx 
version 4.5.1

May 10 04:55:12 raspberrypi weewx[2065] INFO __main__: Using Python 2.7.16 
(default, Oct 10 2019, 22:02:15) #012[GCC 8.3.0]

May 10 04:55:12 raspberrypi weewx[2065] INFO __main__: Platform 
Linux-5.10.17-v7+-armv7l-with-debian-10.8

May 10 04:55:12 raspberrypi weewx[2065] INFO __main__: Locale is 
'en_GB.UTF-8'

May 10 04:55:12 raspberrypi weewx[2065] INFO __main__: PID file is 
/var/run/weewx.pid

May 10 04:55:12 raspberrypi weewx[2069] INFO __main__: Using configuration 
file /etc/weewx/weewx.conf

May 10 04:55:12 raspberrypi weewx[2069] INFO __main__: Debug is 0

May 10 04:55:12 raspberrypi weewx[2054]: Starting weewx weather system: 
weewx.

May 10 04:55:12 raspberrypi systemd[1]: Started LSB: weewx weather system.

May 10 04:55:12 raspberrypi weewx[2069] INFO weewx.engine: Loading station 
type SDR (user.sdr)

May 10 04:55:12 raspberrypi weewx[2069] INFO user.sdr: driver version is 
0.78

May 10 04:55:12 raspberrypi weewx[2069] INFO user.sdr: sensor map is {}

May 10 04:55:12 raspberrypi weewx[2069] INFO user.sdr: deltas is 
{'strikes': 'strikes_total', 'rain': 'rain_total'}

May 10 04:55:12 raspberrypi weewx[2069] INFO user.sdr: startup process 
'rtl_433 -M utc -F json'

May 10 04:55:12 raspberrypi weewx[2069] ERROR weewx.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'>)

May 10 04:55:12 raspberrypi weewx[2069] CRITICAL weewx.engine:     ****  
Traceback 
(most recent call last):

May 10 04:55:12 raspberrypi weewx[2069] CRITICAL weewx.engine:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 119, in setupStation

May 10 04:55:12 raspberrypi weewx[2069] CRITICAL weewx.engine:     ****    
  self.console = loader_function(config_dict, self)

May 10 04:55:12 raspberrypi weewx[2069] CRITICAL weewx.engine:     ****    File 
"/usr/share/weewx/user/sdr.py", line 147, in loader

May 10 04:55:12 raspberrypi weewx[2069] CRITICAL weewx.engine:     ****    
  return SDRDriver(**config_dict[DRIVER_NAME])

May 10 04:55:12 raspberrypi weewx[2069] CRITICAL weewx.engine:     ****    File 
"/usr/share/weewx/user/sdr.py", line 2674, in __init__

May 10 04:55:12 raspberrypi weewx[2069] CRITICAL weewx.engine:     ****    
  self._mgr.startup(cmd, path, ld_library_path)

May 10 04:55:12 raspberrypi weewx[2069] CRITICAL weewx.engine:     ****    File 
"/usr/share/weewx/user/sdr.py", line 207, in startup

May 10 04:55:12 raspberrypi weewx[2069] CRITICAL weewx.engine:     ****    
  (cmd, e))

May 10 04:55:12 raspberrypi weewx[2069] CRITICAL weewx.engine:     ****  
WeeWxIOError: 
failed to start process 'rtl_433 -M utc -F json': [Errno 2] No such file or 
directory

May 10 04:55:12 raspberrypi weewx[2069] CRITICAL __main__: Unable to load 
driver: failed to start process 'rtl_433 -M utc -F json': [Errno 2] No such 
file or directory

May 10 04:55:12 raspberrypi weewx[2069] CRITICAL __main__:     ****  
Exiting...

I get the same result when I try to run weewx at boot. Running sudo rtl_433 
also 
works, so I think its installed correctly.

Any ideas? 

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/d3c44726-6169-4380-936c-7a6f6fe092c3n%40googlegroups.com.

Reply via email to