I use a nooelec rtl-sdr. On a fresh install of bookworm 64bit in a
Raspberry pi 4 and weewx v5 i solved the error like this:
i run *lsusb*
and i saw a line similar to this
Bus 001 Device 008: ID 0bda:2838 Realtek Semiconductor Corp.
** "0bda" is the vendor id and "2838" is the product id (maybe yours are
different)**
then i made a new file as root in /etc/udev/rules.d/rtl-sdr.rules
next i modifyed this: *sudo nano /etc/udev/rules.d/rtl-sdr.rules*
and i added this line :
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838",
GROUP="adm", MODE="0666", SYMLINK+="rtl_sdr"
hope this will help you
On Tuesday, February 6, 2024 at 6:38:24 PM UTC+2 Pierre-Yves wrote:
> @ Matthew,
>
> Thanks a lot for the feedback.
>
> It seems to be a problem of rules change. In fact, I first upgraded from
> 4.10.2 to 5.0.0 and weewx worked perfectly. Then I went from 5.0.0 to 5.0.1
> an weewx failed to start.
>
> For Weewx,, I did a deb/rpm install and, as far I remember, I installed
> rtl-sdr following your Git (https://github.com/matthewwall/weewx-sdr).
>
> I tried the command you proposed (sudo usermod -aG plugdev weewx) but that
> doesn't solve the problem.
>
> Regarding the rtl-sdr rules, I have a doubt. I installed the file in
> /etc/weewx/udev/rules.d. Maybe it is a wrong place... I read in another
> thread that it should be in /usr/lib/udev/rules.d... What about ?
>
> Pierre-Yves
>
>
>
> Le mardi 6 février 2024 à 17:09:36 UTC+1, Tom Hogland a écrit :
>
>> In case anyone else runs into this - my Ubuntu server/Davis VP2 and
>> serial datalogger had ownership set to root:dialout, so I had to add the
>> weewx user to the dialout group for things to work.
>>
>> On Tuesday, February 6, 2024 at 6:23:15 AM UTC-9 matthew wall wrote:
>>
>>> when you install rtl-sdr, it typically, but not always, installs udev
>>> rules for *many* sdr devices. the udev rules that it installs make it
>>> possible for anyone in the 'plugdev' group to read/write to the sdr
>>> device. (this is true when you install rtl-sdr from source - if you
>>> install rtl-sdr from a deb/rpm package, it might be different - anyone with
>>> this configuration please let us know)
>>>
>>> weewx v4 runs as root:root, so it has access to the sdr device no matter
>>> what the udev rules might be
>>>
>>> weewx v5 runs as weewx:weewx (for a deb/rpm install) or as a regular
>>> non-root user (for pip installs). so udev rules are required.
>>>
>>> btw, weewx 5.0.1 *always* converts to weewx:weewx, whereas 5.0.0 did not
>>> (it would continue to run as root - we changed in 5.0.1 because overall
>>> security and best practice)
>>>
>>> the udev rules installed by rtl-sdr will not help for a deb/rpm install,
>>> since the user 'weewx' is not in the plugdev group. you can either added
>>> the user weewx to the plugdev group, or modify the udev rules to use
>>> 'weewx' instead of 'plugdev' as the group. this is how to do the former:
>>>
>>> sudo usermod -aG plugdev weewx
>>>
>>> for a pip install, be sure that the user running weewx is in the
>>> 'plugdev' group.
>>>
>>> restart of the weewxd daemon is almost certainly required so that the
>>> daemon process has the right group. reboot is not necessary.
>>>
>>> m
>>>
>>
--
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/b009ccff-87bc-4c60-b003-23389a098724n%40googlegroups.com.