Reduce logging in the MQTT publisher

125 views
Skip to first unread message

RonV42

unread,
Dec 24, 2021, 5:04:50 PM12/24/21
to weewx-user
Hi,

I just install MQTT publishing of my loop events on my Raspberry Pi.  Every time a MQTT write is done there are log entries every couple of seconds which is bad for my SD card.

Dec 24 15:23:43 pi1 weewx[9988] INFO weewx.restx: MQTT: Published record 2021-12-24 15:23:41 CST (1640381021)
Dec 24 15:23:46 pi1 weewx[9988] INFO weewx.restx: MQTT: Published record 2021-12-24 15:23:44 CST (1640381024)

I have been looking in the documentation and I can't seem to find where I can control the logging of the messages.   It looks like the native logging of weewx and not part of the  extension of MQTT. I am using MQTT from this project:

https://github.com/weewx/weewx/wiki/mqtt

Any thoughts?

Tom Keffer

unread,
Dec 24, 2021, 5:10:17 PM12/24/21
to weewx-user
If the mqtt extension obeys the rules like other RESTful extensions, a simple

[[MQTT]]
  log_success = False

should do 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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/56b63004-9c7d-461d-bc02-cdcc85dfa315n%40googlegroups.com.

RonV42

unread,
Dec 24, 2021, 6:58:04 PM12/24/21
to weewx-user
Worked great thank you!

Doug Jenkins

unread,
Dec 26, 2021, 9:22:45 AM12/26/21
to weewx...@googlegroups.com
FYI, I confirmed this setting to work with my station. I am running MQTT logging every 18 seconds with Acurite.



--
Reply all
Reply to author
Forward
0 new messages