On Friday, October 12, 2018 at 5:34:48 AM UTC-7, Max G wrote: > > After being unable to find an answer, I am posting here... > > Which fields/values does WeeWX publish via MQTT? > Where can I configure this? > > It publishes everything it has by default. In weewx.conf as always
If you look at the mqtt.py code, it seems like you can limit the observations it sends by explicitly setting them as desired: class MQTT(weewx.restx.StdRESTbase): def __init__(self, engine, config_dict): """This service recognizes standard restful options plus the following: Required parameters: server_url: URL of the broker, e.g., something of the form mqtt://username:password@localhost:1883/ Default is None Optional parameters: unit_system: one of US, METRIC, or METRICWX Default is None; units will be those of data in the database topic: the MQTT topic under which to post Default is 'weather' append_units_label: should units label be appended to name Default is True obs_to_upload: Which observations to upload. Possible values are none or all. When none is specified, only items in the inputs list will be uploaded. When all is specified, all observations will be uploaded, subject to overrides in the inputs list. Default is all FWIW, I just let it publish everything and only subscribe to topics I care about (specifically, I just grab weather/loop and grab the pieces therein). I also set append_units_label to False so that 'if' I subscribe to a specific topic, I'll just get the data value. -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.