>From the comments in the top of the code:
       "Use the inputs map to customize name, format, or unit for any 
observation."
So it's not defining what is published.  It's customizing 'some' of what is 
published.

And also in the comments:
    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

So yes. Set debug=1 in weewx.conf and try it.  You can't break anything.

On Saturday, February 18, 2023 at 10:26:47 AM UTC-8 [email protected] wrote:

> In the process of debugging a non-weewx problem, I realized that weewx is 
> publishing all observations, even those there's a list to be published 
> defined in weewx.conf:
> [StdRESTful]
>     [[StationRegistry]]
>         register_this_station = false
>     [[MQTT]]
>         server_url = mqtt://router1.csrhome.home:1883
>         topic = weather
>         unit_system = US
>         qos = 2        # options are 0, 1, 2
>         retain = true  # options are true or false
>         aggregation = individual
>         binding = archive
>         [[[inputs]]]
>             [[[[dateTime]]]]
>                 name   = weewx_time
>                 format = %d
>                 units  = unix_epoch
>             [[[[inTemp]]]]
>                 name   = inside_temperature
>                 format = %.2f
>                 units  = degree_F
>             [[[[outTemp]]]]
>                 name   = outside_temperature
>                 format = %.2f
>                 units  = degree_F
>             [[[[windchill]]]]
>                 name   = outside_wc_temp
>                 format = %.2f
>                 units  = degree_F
>             [[[[windGust]]]]
>                 name   = windGust
>                 format = %.1f
>                 units  = mile_per_hour
>
> Reading the mqtt,py code (class MQTT), I found the description 
> for obs_to_upload.  To  publish just the items in the input list, just add 
> 'obs_to_upload = None' under [[MQTT]],
> say after the aggregation = individual?
> Thx, Chris
>

-- 
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 on the web visit 
https://groups.google.com/d/msgid/weewx-user/6ead4c77-3f92-43bf-89c7-741d4eef51fcn%40googlegroups.com.

Reply via email to