I am still on b15, but found out about the udev rules for ws23xx just 
shortly after you added them (see 
https://groups.google.com/g/weewx-user/c/kol0udZNuyc/m/1WhtZF0kBAAJ). My 
ws28xx rules are different to the ones  
in 
https://github.com/weewx/weewx/blob/V5/src/weewx_data/util/udev/rules.d/ws28xx.rules

Here is mine:

$ cat /etc/udev/rules.d/99-ws28xx.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="6666", ATTR{idProduct}=="5555", 
MODE="666"

There are weewx':
SUBSYSTEM=="usb", ATTRS{idVendor}=="6666", ATTRS{idProduct}=="5555", 
MODE="0666"

Note the Differences: ATTR vs ATTRS "666" vs. "0666"

Since I can access the device as a non-root user this way, ATTR should be 
sufficient, but I can't tell if there are downsides on also match for 
parent devices when using ATTRS.

What I don't know: do I have to delete my udev rules for ws28xx, when 
installing b17?


Vince Skahan schrieb am Freitag, 15. Dezember 2023 um 18:27:55 UTC+1:

> 5.0b17 looks like it takes a fine approach already to me.
>
>    - systemd systems can always use journalctl to read the logs.  Add the 
>    '-u weewx' flag to see just weewx entries.
>
>
>    - if you 'also' have rsyslogd installed and enabled, you can 'also' 
>    use /var/log/weewx/weewx.log to view the same entries as of 5.0b17
>
>
>    - if you do 'not' have rsyslogd installed+enabled it's no harm that 
>    weewx drops config files into place for rsyslogd.  They are tiny and wound 
>    not be used.
>
> So it looks perfect to me.  Other than systemd.  I am not on 'team 
> systemd' to say the least although I have to accept that borg won :-)
>
> Users of any and all systemd-laden operating systems just have to accept 
> that if they see references to /var/log/syslog or /var/log/messages that 
> 'in general' they need to either use journalctl to view logs 'the systemd 
> way', or they alternately need to 'add' rsyslogd to use legacy logging that 
> has worked for over 40 years before the systemd borg attacked and won.
>
> FWIW - the official debian12 vagrant box has rsyslog installed, 
> configured, and running with a very normal looking rsyslog.conf, so that's 
> already done for that setup.  logrotate is also present and normally 
> configured with typical entries under /etc/rsyslog.d
>
> If you do official debian12 under 'docker' you get a very minimal setup 
> where neither logrotate nor rsyslogd are installed.  Neither make a lot of 
> sense in docker anyway, but in any event if weewx writes config files for 
> things that don't exist in the os, it's tiny and benign at worst.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/22b3f0bd-226a-469b-89d4-b1069f5df590n%40googlegroups.com.

Reply via email to