[weewx-user] Re: Which fields/values does WeeWX publish via MQTT?

2018-10-12 Thread Max G
Thanks Vince; the FWIW contained the hint I needed.
I then understood how to investigate further...

subscribing to what weewx actually sends:
mosquitto_sub -v -t weewx_weather/#

(showing a subset)
weewx_weather/altimeter_mbar 1023.68869064
weewx_weather/windchill_C 14.8
weewx_weather/appTemp_C 16.0114023019
weewx_weather/outTemp_C 14.8
weewx_weather/windGustDir 202.5

then made it clear what I had actually query.

Thank you! :)


On Saturday, October 13, 2018 at 2:48:27 AM UTC+10, vince wrote:
>
> 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
>
> ...
>
 

> 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.


[weewx-user] Re: Which fields/values does WeeWX publish via MQTT?

2018-10-12 Thread vince
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.