Trouble with new weewx update

255 views
Skip to first unread message

Harley Welsh

unread,
Feb 11, 2024, 9:28:03 PM2/11/24
to weewx-user
I am using an acurite atlas 7 in 1 weather station and am following the instructions on Matthew walls sdr rpi recipe and similarly ChrisM510 on  Acurite Atlas on WeeWX RTL SDR RTL_433 RPi on GitHub. Before the weewx 5.0 update I had everything in these instructions working and was using the weewx-mqtt to send information to a broker. Now as i try to do the same as on this tutorial with weewx 5.0 I run into many errors. 
I followed these steps
 cd rtl_433
 mkdir build
 cd build
 cmake ..
 make
 sudo make install 
And when i enter rtl_433 to see what devices are broadcasting data I get the following message 
"rtl_433 version 23.11-54-gf88bf685 branch master at 202402112003 inputs file rtl_tcp RTL-SDR

Kernel driver is active, or device is claimed by second instance of librtlsdr.
In the first case, please either detach or blacklist the kernel module
(dvb_usb_rtl28xxu), or enable automatic detaching at compile time.

usb_claim_interface error -6
[sdr_open_rtl] Failed to open rtlsdr device #0.
[sdr_open_rtl] Unable to open a device"

I blacklisted the kernel module dvb_usb_rtl28xxu in  /etc/modprobe.d/blacklist using sudo nano  /etc/modprobe.d/blacklist and adding in blacklist dvb_usb_rtl28xxu but this didn't work.

On another Rspberry pi everything on ChrisM510 instructions installed and also installed weewx-mqtt but the only time the broker will get information from the raspberry pi is when I run weewx directly and not as a daemon.

Any help would be appreciated.
Thanks

matthew wall

unread,
Feb 11, 2024, 9:43:29 PM2/11/24
to weewx-user
hi!

> I blacklisted the kernel module dvb_usb_rtl28xxu in  /etc/modprobe.d/blacklist using sudo nano 
> /etc/modprobe.d/blacklist and adding in blacklist dvb_usb_rtl28xxu but this didn't work.

you might have to unplug then replug the device.  worst case you can reboot.  but be sure there is no other process using the SDR.

> On another Rspberry pi everything on ChrisM510 instructions installed and also installed weewx-mqtt but the only time 
> the broker will get information from the raspberry pi is when I run weewx directly and not as a daemon.

this sounds like the user running weewx does not have permission to read/write to the SDR.  when you install the rtl-sdr software, that adds *you* to whatever group can read/write to the SDR.  so if my guess is correct, you must add weewx to whatever group the rtl-sdr software created.

1) find the group by looking at the sdr udev rules:

more /etc/udev/rules.d/rtl-sdr.rules

you should see likes something like this:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2832", ENV{ID_SOF
TWARE_RADIO}="1", MODE="0660", GROUP="plugdev"

in this case, the group is "plugdev"

2) add the weewx user to that group:

sudo usermod -aG plugdev weewx

then when you run weewxd as 'weewx', it should be able to read the SDR

m
Reply all
Reply to author
Forward
0 new messages