Patrick: - Whether you are using 'pip' or 'dpkg' does not matter at all. Weewx v5 runs as the user who the venv runs under (pip) or it runs as a generic user weewx (dpkg), neither of which is root. You have to ensure that whatever directory you want to log to is writable by that user.
- If you want to use rsyslogd (which I use, FWIW), then if you install the unaltered util/rsyslog.d/weewx file in to /etc/rsyslog.d (and restart rsyslogd), the default will log all your weewx log entries to /var/log/weewx/weewxd.log and it will all be in one place. You'll need to add yourself to group 'adm' to be able to read those files without using sudo. Also remember to also install the provided util/logrotate.d/weewx file to /etc/logrotate.d so that the logs rotate automatically. - If you want to log via rsyslog to someplace else, you'll need to edit those config files to point to wherever you want, and set permissions correctly so rsyslogd (which runs as user=root group=adm) has permissions to write, and so that logrotate also has permissions to rotate the logs automatically. If you move things around, the onus is on you to make it all work as the system integrator. If you take the defaults you don't need to worry that stuff. There is 'nothing' special or even remotely weewx related in the permission issues you are seeing. This is all very basic how *nix permissions work. On Friday, December 5, 2025 at 1:57:39 PM UTC-8 salinois wrote: > Yes, I understand, > > but I'd really like to try the other solution! > > patrick > Le 05/12/2025 à 21:08, '[email protected]' via weewx-user a écrit : > > It works and everything is contained in the config. No external configs, > no symlinking, nothing else to do. That's why I'm using this ever since I > stumbled across it. > > -- 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 visit https://groups.google.com/d/msgid/weewx-user/e64b14f6-280c-40e1-89a2-b8bbf47c8eaen%40googlegroups.com.
