Limit MQTT topics

94 views
Skip to first unread message

CKnutson

unread,
Jan 21, 2020, 9:29:14 PM1/21/20
to weewx-user
Hi, I am wondering if there is a way to define which topics from WeeWx tthat is published in MQTT.  There are so many topics that I do not uses.  Now I have binding=loop.

Thanks,
Chris

gjr80

unread,
Jan 22, 2020, 2:41:20 AM1/22/20
to weewx-user
Hi,

I presume you are referring to the MQTT uploader in the wiki? If so have you specified an [[[inputs]]] stanza under [StdRESTful] [[MQTT]] with the WeeWX fields you wish to publish? I suspect you also need to include the config item obs_to_upload = none as well, something like this (untested):

[StdRESTful]
   
[[MQTT]]
       
....
        obs_to_upload
= none
       
[[[inputs]]]
           
[[[[outTemp]]]]
           
[[[[windSpeed]]]]

The [[[inputs]]] stanza is covered in the MQTT instructions in the wiki entry, but the need for obs_to_upload is not so clear.

Gary

CKnutson

unread,
Jan 22, 2020, 1:12:01 PM1/22/20
to weewx-user
Thank you Gary, That was exactly what I was looking for.  I use WeeWX MQTT to feed my home automation.  Calming down the MQTT traffic really helps.
Chris
Reply all
Reply to author
Forward
0 new messages