Hello,

I followed directions 
at https://obrienlabs.net/how-to-setup-your-own-mqtt-broker/ up until the 
SSL config which I'm not using.

Software: 

- Debian buster
- nginx
- Weewx 3.9.1 with MQTT extension
- Belchertown skin
- Mosquitto MQTT broker
- NO firewall

Weather station is a Davis Vantage Pro2 wireless

Everything runs on one server and is only accessed on the local network.  
Everything appears to work up until trying to access the websocket payload 
on the weather site itself.

------

*The issue*:

The site itself simply shows "Connected. Waiting for data" and the web 
console in firefox/chrome shows "MQTT Connected.  Subscribing." but nothing 
further.  As noted below, the issue appears to be too much data in the 
payload.

Screenshot https://i.imgur.com/YwdzGti.png

How do I prevent some of the data being sent in the MQTT payload?    Things 
like the soilLeafAlarms, extraAlarms, etc that are not used.

------

*Troubleshooting:*


Using

 'mosquitto_sub -h localhost -t weather/#'

I can see the data flow at the console, example:

 '{"windSpeed10_kph": "0.0", "monthET": "0.0", "cloudbase_meter": 
"452.423770415", "outHumidity": "80.0", "pressure_mbar": "1004.09156258", 
"rain_cm": "0.0", "dayET": "0.0", "barometer_mbar": "1013.20733712", 
"yearRain_cm": "0.0", "consBatteryVoltage_volt": "1.23", "dewpoint_C": 
"-2.38237113153", "insideAlarm": "0.0", "inHumidity": "27.0", "sunrise": 
"1554924300.0", "windGust_kph": "0.0", "heatindex_C": "0.666666666667", 
"dayRain_cm": "0.0", "outsideAlarm1": "0.0", "forecastIcon": "6.0", 
"outsideAlarm2": "0.0", "windSpeed_kph": "0.0", "forecastRule": "75.0", 
"rainAlarm": "0.0", "altimeter_mbar": "1012.43745361", "windchill_C": 
"0.666666666667", "appTemp_C": "-1.64185505303", "outTemp_C": 
"0.666666666667", "extraAlarm1": "0.0", "extraAlarm2": "0.0", 
"extraAlarm3": "0.0", "extraAlarm4": "0.0", "extraAlarm5": "0.0", 
"extraAlarm6": "0.0", "extraAlarm7": "0.0", "extraAlarm8": "0.0", 
"humidex_C": "0.666666666667", "rain24_cm": "0.0", "hourRain_cm": "0.0", 
"inTemp_C": "23.2777777778", "soilLeafAlarm4": "0.0", "trendIcon": "20.0", 
"soilLeafAlarm2": "0.0", "soilLeafAlarm3": "0.0", "usUnits": "16.0", 
"soilLeafAlarm1": "0.0", "leafWet4": "0.0", "txBatteryStatus": "1.0", 
"yearET": "0.0", "monthRain_cm": "0.0", "rainRate_cm_per_hour": "0.0", 
"dateTime": "1554909838.0", "stormRain_cm": "0.0", "sunset": 
"1554885600.0", "inDewpoint_C": "3.22331384096"}'

------

I installed mqtt-admin https://github.com/hobbyquaker/mqtt-admin and I am 
able to see the data being accessed in the browser but it does show a max 
payload size exceeded error here

Screenshot here:  https://i.imgur.com/skL3x35.png

------


Back to the console and submit fake data, less than what  weewx is 
submitting

  'mosquitto_pub -h localhost -t "weather" -m '{"UV": "0.68", 
"barometer_inHg": "30.4306066431", "outHumidity": "45.8", "maxSolarRad": 
"399.067737313", "dewpoint_F": "17.6078693897", "cloudbase_foot": 
"4723.66604779", "heatindex_F": "36.5", "altimeter_inHg": "30.3995019668", 
"dayRain_in": "0.0", "outTemp_F": "36.5", "appTemp_F": "31.2879264251", 
"windchill_F": "36.5", "hourRain_in": "0.0", "humidex_F": "36.5", 
"rainRate_inch_per_hour": "0.0", "pressure_inHg": "29.9401590264", 
"usUnits": "1.0", "txBatteryStatus": "0.0", "windSpeed_mph": "1.0", 
"rain24_in": "0.0", "dateTime": "1542561977", "radiation_Wpm2": 
"124.813456"}' -u weewx -P weewx'



Success!    https://i.imgur.com/lnVyexP.png


------

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