I have a new setup and working on adding MQTT to the mix. I went with 
hivemq to start. What is occurring is the MQTT realtime refreshes appear to 
be a celcius value and not my expected/configured fahrenheit value. Am I 
missing a config setting/section?

Below is a snippet of debug console output and what I notice is the first 
message in the snippet shows temp in F which is what is expected. The 3rd 
message shows everything in C which is unexpected. When I first load my web 
page, it shows the temp, etc in F but after the first MQTT adjustment, a 
couple of the values switch to C, though the label stays F. 

belchertown.js?1609531535:37 MQTT: {"dateTime": "1609532099.0", "usUnits": 
"1.0", "rainRate_inch_per_hour": "0.0", "hourRain_in": "0.0", "rain24_in": 
"0.0", "dayRain_in": "0.0", "outTemp_F": "36.248", "outHumidity": "63.68", 
"pressure_inHg": "30.143325340375", "outTempBatteryStatus": "2.559", "UV": 
"0.15", "rain_in": "0.0", "windBatteryStatus": "2.559", "radiation_Wpm2": 
"27.0", "altimeter_inHg": "30.451898910400498", "barometer_inHg": 
"30.46410551847069", "cloudbase_foot": "2805.165679377027", "dewpoint_F": 
"25.137271010741078", "heatindex_F": "36.248", "humidex_F": "36.248"}

belchertown.js?1609531535:37 MQTT: {"dateTime": "1609532102.0", 
"windSpeed_mph": "0.0", "usUnits": "1.0", "rainRate_inch_per_hour": "0.0", 
"hourRain_in": "0.0", "rain24_in": "0.0", "dayRain_in": "0.0"}

belchertown.js?1609531535:37 MQTT: {"dateTime": "1609532103.0", 
"pressure_mbar": "1013.7152953417267", "outHumidity": "85.0", "inHumidity": 
"97.0", "outTemp_C": "2.7777777777777777", "inTemp_C": "5.222222222222221", 
"windSpeed_kph": "1.8024652800000003", "windGust_kph": 
"1.8024652800000003", "windDir": "227.0", "radiation_Wpm2": "0.0", 
"rain_cm": "0.0", "rainRate_mm_per_hour": "0.0", "UV": "0.0", 
"extraTemp1_C": "7.8999999999999995", "extraTemp2_C": "6.900000000000001", 
"extraHumid1": "85.0", "extraHumid2": "85.0", "rainBatteryStatus": "1.6", 
"windBatteryStatus": "1.66", "barometer_mbar": "1013.7152953417267", 
"altimeter_mbar": "1021.4013952324038", "windchill_C": 
"2.7777777777777777", "heatindex_C": "2.7777777777777777", "dewpoint_C": 
"0.5099126991358697", "inDewpoint_C": "4.785153750721902", 
"maxSolarRad_Wpm2": "0.0", "cloudbase_meter": "345.781455500638", 
"beaufort_count": "0.0", "appTemp_C": "0.5178210591074577", "humidex_C": 
"2.7777777777777777", "hourRain_cm": "0.0", "rain24_cm": "0.02032", 
"dayRain_mm": "0.20320000000000002", "usUnits": "16.0"}

The first message looks correct and the 3rd message not so much. 

Here's my MQTT config and what I added to the Belchertown/Extras section of 
weewx.conf:

    [[MQTT]]
        server_url = mqtt://broker.hivemq.com:1883/
        topic = weather
        unit_system = US
        binding = archive, loop
        aggregation = aggregate
        log_success = False
        log_failure = True
        
    [[Belchertown]]    
         [[[Extras]]]    
            # MQTT Websockets defaults
            mqtt_websockets_enabled = 1
            mqtt_websockets_host = broker.hivemq.com
            mqtt_websockets_port = 8000
            mqtt_websockets_ssl = 0
            mqtt_websockets_topic = weather/loop

Thanks!
David

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/26c5d1bc-2f59-4b43-ab69-b102c7b4c83dn%40googlegroups.com.

Reply via email to