weewx runs, but produces lots of logging errors

158 views
Skip to first unread message

Stefano Vittorio Porta

unread,
Jun 16, 2022, 4:19:28 PM6/16/22
to weewx-user
Hi everyone,
I am new to weewx, however today I managed to get it to work (kind of) in an Alpine docker image that I'm preparing to use as an addon in Home Assistant.

Right now with a Simulator station (as I'm waiting for mine to arrive) I get in the logs all the data that the station produces, however the issue is that when I start and terminate weewx I get a long error that concerns logging, and I'm not sure what is the cause.

Here you can find the log, while here's my configuration, which should be pretty standard.
Finally, for anyone interested (if can be of any help), here's my dockerfile.

The errors aren't exactly a big deal, however I'd love to get rid of them. Does anybody know a way to do so?

Thanks!

vince

unread,
Jun 16, 2022, 5:37:34 PM6/16/22
to weewx-user
I think you need a syslog daemon running.  I've run into that previously in Docker with debian(ish) os.
Message has been deleted

Tom Keffer

unread,
Jun 24, 2022, 7:36:12 AM6/24/22
to weewx-user
Yes. See the wiki article WeeWX v4 and logging.

It should be as simple as adding this to weewx.conf (NOT TESTED):
[Logging]
  [[root]]
    handlers = console,

On Thu, Jun 23, 2022 at 11:31 PM Stefano Vittorio Porta <stef...@hotmail.it> wrote:
Yup, it looks like it is indeed syslog which was missing.
Unfortunately I will have to run it in homeassistant which uses s6 as base image and it doesn't support syslog. Is there any way to disable syslog logging and redirect it to the console?
--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/d0f48b2b-7c37-4f4e-8a44-d364eeb56bccn%40googlegroups.com.

vince

unread,
Jun 24, 2022, 2:02:58 PM6/24/22
to weewx-user
Thanks Tom - FWIW, I can confirm that if you cut+paste the whole 'Defaults' section from that wiki page into weewx.conf, the result is that weewx just emits the loop messages when you run weewxd interactively, and everything else quiets down.  Tested on 4.8.0 and debian10 in Docker.

Tom Keffer

unread,
Jun 24, 2022, 4:44:41 PM6/24/22
to weewx-user
Unfortunately, that wiki example is also wrong. The default is to log to syslog, not to rotating log files.

Corrected.

-tk

Message has been deleted

Tom Keffer

unread,
Jun 25, 2022, 8:39:39 PM6/25/22
to weewx-user
The User's Guide has gotten big and bloated, so a lot of these things are in the Wiki now. It's worth looking around.

On Sat, Jun 25, 2022 at 5:24 PM Stefano Vittorio Porta <stef...@hotmail.it> wrote:
Thanks Tom and Vince, I really appreciate your help in suggesting and testing this solution, which works great also with s6.
I'm just wondering why it isn't (at least from looking around) in the User's guide... I believe it is something that more people could need!
Anyway, I'm happy for a solution way simpler than I imagined.

Have a great weekend!
~ Stefano
Reply all
Reply to author
Forward
0 new messages