Is your database being updated?

On Tuesday, February 6, 2024 at 12:23:35 PM UTC-7 Philip Wolff wrote:

> Thanks for that tip - it got me off the ground. All is now well except 
> that /var/www/html/weewx hasn't been updated since just before I did the 
> upgrade to 5.0.1. Anyone else seeing this?
>
> On Tuesday, February 6, 2024 at 8:09:36 AM UTC-8 Tom Hogland wrote:
>
>> 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/872b0b73-d942-487d-bbe3-61883e3d00aen%40googlegroups.com.

Reply via email to