What happens if you change it to  aggregation = aggregate ?

On Thursday, March 7, 2019 at 2:21:21 PM UTC-5, bdf0506 wrote:
>
> I'm having an issue getting the MQTT extension to output the correct 
> information when aggregation is set to individual. See below config.
>
>    [[MQTT]]
>       server_url = mqtt://user:pass@server:1883/
>       topic = weewx
>       aggregation = individual
>       binding = loop
>
> When I look at my broker (using mosquitto), it is showing the following:
>
> [root@server ~]$ mosquitto_sub -v -t weewx/#
> weewx/hourRain_in 0.0
> weewx/rain24_in 0.0
> weewx/hourRain_in 0.0
> weewx/hourRain_in 0.0
> weewx/BatteryStatus 0.0
> weewx/BatteryStatus 0.0
> weewx/BatteryStatus 0.0
>
> Now, if I comment out the aggregation item in the config, then it shows 
> the following:
>
> [root@server ~]$ mosquitto_sub -v -t weewx/#
> weewx/loop {"rain24_in": "0.0", "hourRain_in": "0.0", "LivingRoomTemp_F": 
> "69.44", "rainRate_inch_per_hour": "0.0", "dateTime": "1551985428.0", 
> "dayRain_in": "0.0", "usUnits": "1.0", "LivingRoomHumidity": "34.0"}
> weewx/loop {"hourRain_in": "0.0", "rain24_in": "0.0", 
> "rainRate_inch_per_hour": "0.0", "dateTime": "1551985436.0", "dayRain_in": 
> "0.0", "CrawlSpaceHumidity": "41.0", "CrawlSpaceTemp_F": "62.6", "usUnits": 
> "1.0"}
> weewx/loop {"BatteryStatus": "0.0", "hourRain_in": "0.0", "windSpeed_mph": 
> "0.0", "rain24_in": "0.0", "rainRate_inch_per_hour": "0.0", "dateTime": 
> "1551985441.0", "dayRain_in": "0.0", "rain_in": "0.0", "rain_total": 
> "114.27", "usUnits": "1.0"}
> weewx/loop {"BatteryStatus": "0.0", "hourRain_in": "0.0", "windSpeed_mph": 
> "0.0", "rain24_in": "0.0", "rainRate_inch_per_hour": "0.0", "dateTime": 
> "1551985441.0", "dayRain_in": "0.0", "rain_in": "0.0", "rain_total": 
> "114.27", "usUnits": "1.0"}
> weewx/loop {"BatteryStatus": "0.0", "hourRain_in": "0.0", "windSpeed_mph": 
> "0.0", "rain24_in": "0.0", "rainRate_inch_per_hour": "0.0", "dateTime": 
> "1551985441.0", "dayRain_in": "0.0", "rain_in": "0.0", "rain_total": 
> "114.27", "usUnits": "1.0"}
>
> So it would appear that the "individual" aggregation is only grabbing the 
> first measurement from the full json string, and not all individual 
> measurements. Is there something that I am doing wrong in the configuration 
> that is causing this to happen? Or is this maybe a bug in the extension?
>
> Thanks
>

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to