This is the guide used to install MQTT(Mosquitto)

[[MQTT]]
        server_url = mqtt://weewx:weewx@192.168.55.44:1883
        aggregation = aggregate
        topic = weather
        unit_system = US
        binding = loop, archive


#--- MQTT Websockets (for Real Time Streaming) Options ---
mqtt_websockets_enabled = 1
mqtt_websockets_host = "192.168.55.44"
mqtt_websockets_port = 1883
# mqtt_websockets_ssl = 0
mqtt_websockets_topic = "weather/loop"
disconnect_live_website_visitor = 300000 

weewx@wyse-weewx:~$ mosquitto_sub -h 192.168.55.44 -p 1883 -t "#" -u weewx 
-P weewx
{"dateTime": "1738184318.0", "usUnits": "1.0", "barometer_inHg": "29.845", 
"inTemp_F": "70.1", "inHumidity": "31.0", "outTemp_F": "41.6", 
"windSpeed_mph": "16.0", "windSpeed10_mph": "9.0", "windDir": "281.0",
 "outHumidity": "53.0", "rainRate_inch_per_hour": "0.0", "UV": "0.5", 
"radiation_Wpm2": "58.0", "stormRain_in": "0.0", "dayRain_in": "0.0", 
"monthRain_in": "0.31", "yearRain_in": "0.31", "dayET": "0.05", 
 "monthET": "0.79", "yearET": "0.79", "insideAlarm": "0.0", "rainAlarm": 
"0.0", "outsideAlarm1": "0.0", "outsideAlarm2": "0.0", "extraAlarm1": 
"0.0", "extraAlarm2": "0.0", "extraAlarm3": "0.0", "extraAlarm4": "0.0", 
 "extraAlarm5": "0.0", "extraAlarm6": "0.0", "extraAlarm7": "0.0", 
"extraAlarm8": "0.0", "soilLeafAlarm1": "0.0", "soilLeafAlarm2": "0.0", 
"soilLeafAlarm3": "0.0", "soilLeafAlarm4": "0.0", "txBatteryStatus": "0.0",
 "consBatteryVoltage_volt": "1.07", "forecastIcon": "6.0", "forecastRule": 
"75.0", "sunrise": "1738153860.0", "sunset": "1738190160.0", "rain_in": 
"0.0", "windGust_mph": "25.0", "windGustDir": "318.0", 
 "pressure_inHg": "28.539414411112883", "altimeter_inHg": 
"29.813184458617688", "appTemp_F": "28.19532868852326", "cloudbase_foot": 
"4801.604689157233", "dewpoint_F": "25.752939367708176", "heatindex_F": 
"37.951", 
 "humidex_F": "41.6", "inDewpoint_F": "38.053367861709035", 
"maxSolarRad_Wpm2": "161.69020383387328", "windchill_F": 
"33.59745832363892", "hourRain_in": "0.0", "rain24_in": "0.0"}
{"dateTime": "1738184320.0", "usUnits": "1.0", "barometer_inHg": "29.845", 
"inTemp_F": "70.1", "inHumidity": "31.0", "outTemp_F": "41.6", 
"windSpeed_mph": "13.0", "windSpeed10_mph": "8.9", "windDir": "279.0",
 "outHumidity": "53.0", "rainRate_inch_per_hour": "0.0", "UV": "0.5", 
"radiation_Wpm2": "58.0", "stormRain_in": "0.0", "dayRain_in": "0.0", 
"dayET": "0.05", "rain_in": "0.0", "windGust_mph": "25.0",
 "windGustDir": "318.0", "pressure_inHg": "28.54", "altimeter_inHg": 
"29.811", "appTemp_F": "29.885135688523263", "cloudbase_foot": 
"4801.604689157233", "dewpoint_F": "25.0", "heatindex_F": "41.0", 
 "humidex_F": "41.6", "inDewpoint_F": "38.053367861709035", 
"maxSolarRad_Wpm2": "161.59843512557353", "windchill_F": "36.0", 
"hourRain_in": "0.0", "rain24_in": "0.0", "trendIcon": "60.0", 
"windSpeed2": "15.4",
 "windGust10": "25.0", "windGustDir10": "315.0", "THSW_F": "35.0", 
"rain15": "0.0", "bar_reduction": "2.0", "bar_calibration": "0.073", 
"pressure_raw": "28.54"}
{"dateTime": "1738184323.0", "usUnits": "1.0", "barometer_inHg": "29.845", 
"inTemp_F": "70.1", "inHumidity": "31.0", "outTemp_F": "41.6", 
"windSpeed_mph": "14.0", "windSpeed10_mph": "9.0", "windDir": "289.0",
 "outHumidity": "53.0", "rainRate_inch_per_hour": "0.0", "UV": "0.5", 
"radiation_Wpm2": "58.0", "stormRain_in": "0.0", "dayRain_in": "0.0", 
"monthRain_in": "0.31", "yearRain_in": "0.31", "dayET": "0.05", 
 "monthET": "0.79", "yearET": "0.79", "insideAlarm": "0.0", "rainAlarm": 
"0.0", "outsideAlarm1": "0.0", "outsideAlarm2": "0.0", "extraAlarm1": 
"0.0", "extraAlarm2": "0.0", "extraAlarm3": "0.0", 
 "extraAlarm4": "0.0", "extraAlarm5": "0.0", "extraAlarm6": "0.0", 
"extraAlarm7": "0.0", "extraAlarm8": "0.0", "soilLeafAlarm1": "0.0", 
"soilLeafAlarm2": "0.0", "soilLeafAlarm3": "0.0", "soilLeafAlarm4": "0.0", 
 "txBatteryStatus": "0.0", "consBatteryVoltage_volt": "1.07", 
"forecastIcon": "6.0", "forecastRule": "75.0", "sunrise": "1738153860.0", 
"sunset": "1738190160.0", "rain_in": "0.0", "windGust_mph": "25.0",
 "windGustDir": "318.0", "pressure_inHg": "28.539414411112883", 
"altimeter_inHg": "29.813184458617688", "appTemp_F": "29.321866688523265", 
"cloudbase_foot": "4801.604689157233", "dewpoint_F": "25.752939367708176",
 "heatindex_F": "37.951", "humidex_F": "41.6", "inDewpoint_F": 
"38.053367861709035", "maxSolarRad_Wpm2": "161.46076704614183", 
"windchill_F": "34.18926908470395", "hourRain_in": "0.0", "rain24_in": 
"0.0"}
{"dateTime": "1738184324.0", "usUnits": "1.0", "barometer_inHg": "29.845", 
"inTemp_F": "70.1", "inHumidity": "31.0", "outTemp_F": "41.6", 
"windSpeed_mph": "14.0", "windSpeed10_mph": "8.9", "windDir": "289.0",
 "outHumidity": "53.0", "rainRate_inch_per_hour": "0.0", "UV": "0.5", 
"radiation_Wpm2": "58.0", "stormRain_in": "0.0", "dayRain_in": "0.0", 
"dayET": "0.05", "rain_in": "0.0", "windGust_mph": "25.0",
 "windGustDir": "318.0", "pressure_inHg": "28.54", "altimeter_inHg": 
"29.811", "appTemp_F": "29.321866688523265", "cloudbase_foot": 
"4801.604689157233", "dewpoint_F": "25.0", "heatindex_F": "41.0",
 "humidex_F": "41.6", "inDewpoint_F": "38.053367861709035", 
"maxSolarRad_Wpm2": "161.4148929902421", "windchill_F": "36.0", 
"hourRain_in": "0.0", "rain24_in": "0.0", "trendIcon": "60.0", 
"windSpeed2": "15.6"
 "windGust10": "25.0", "windGustDir10": "315.0", "THSW_F": "35.0", 
"rain15": "0.0", "bar_reduction": "2.0", "bar_calibration": "0.073", 
"pressure_raw": "28.54"}


journalctl -u weewx weewx@wyse-weewx:~$ journalctl -u weewx
Hint: You are currently not seeing messages from other users and the system.
      Users in groups 'adm', 'systemd-journal' can see all messages.
      Pass -q to turn off this notice.
Jan 29 16:29:36 wyse-weewx weewxd[2145]: INFO weewx.restx: MQTT: Published 
record 2025-01-29 16:29:36 EST (1738186176)
Jan 29 16:29:38 wyse-weewx weewxd[2145]: INFO weewx.restx: MQTT: Published 
record 2025-01-29 16:29:38 EST (1738186178)
Jan 29 16:29:40 wyse-weewx weewxd[2145]: INFO weewx.restx: MQTT: Published 
record 2025-01-29 16:29:40 EST (1738186180)
Jan 29 16:29:42 wyse-weewx weewxd[2145]: INFO weewx.restx: MQTT: Published 
record 2025-01-29 16:29:42 EST (1738186182)
Jan 29 16:29:44 wyse-weewx weewxd[2145]: INFO weewx.restx: MQTT: Published 
record 2025-01-29 16:29:44 EST (1738186184)
Jan 29 16:29:46 wyse-weewx weewxd[2145]: INFO weewx.restx: MQTT: Published 
record 2025-01-29 16:29:46 EST (1738186186)
Jan 29 16:29:48 wyse-weewx weewxd[2145]: INFO weewx.restx: MQTT: Published 
record 2025-01-29 16:29:48 EST (1738186188)
Jan 29 16:29:50 wyse-weewx weewxd[2145]: INFO weewx.restx: MQTT: Published 
record 2025-01-29 16:29:51 EST (1738186191)
Jan 29 16:29:52 wyse-weewx weewxd[2145]: INFO weewx.restx: MQTT: Published 
record 2025-01-29 16:29:52 EST (1738186192)
Jan 29 16:29:54 wyse-weewx weewxd[2145]: INFO weewx.restx: MQTT: Published 
record 2025-01-29 16:29:54 EST (1738186194)
Jan 29 16:29:56 wyse-weewx weewxd[2145]: INFO weewx.restx: MQTT: Published 
record 2025-01-29 16:29:56 EST (1738186196)

weewx@wyse-weewx:~$ sudo journalctl -u mosquitto -f
[sudo] password for weewx:
Jan 29 05:59:44 wyse-weewx systemd[1]: Stopped mosquitto.service - 
Mosquitto MQTT Broker.
Jan 29 05:59:53 wyse-weewx systemd[1]: Starting mosquitto.service - 
Mosquitto MQTT Broker...
Jan 29 05:59:53 wyse-weewx mosquitto[2100]: 1738148393: Loading config file 
/etc/mosquitto/conf.d/weewx.conf
Jan 29 05:59:53 wyse-weewx systemd[1]: Started mosquitto.service - 
Mosquitto MQTT Broker.
Jan 29 06:01:34 wyse-weewx systemd[1]: Stopping mosquitto.service - 
Mosquitto MQTT Broker...
Jan 29 06:01:34 wyse-weewx systemd[1]: mosquitto.service: Deactivated 
successfully.
Jan 29 06:01:34 wyse-weewx systemd[1]: Stopped mosquitto.service - 
Mosquitto MQTT Broker.
Jan 29 06:02:04 wyse-weewx systemd[1]: Starting mosquitto.service - 
Mosquitto MQTT Broker...
Jan 29 06:02:04 wyse-weewx mosquitto[2139]: 1738148524: Loading config file 
/etc/mosquitto/conf.d/weewx.conf
Jan 29 06:02:04 wyse-weewx systemd[1]: Started mosquitto.service - 
Mosquitto MQTT Broker.

root@wyse-weewx:/var/log/mosquitto# tail -f mosquitto.log
1738186308: Received PUBLISH from weewx_2b38984b (d0, q0, r0, m0, 
'weather/loop', ... (1431 bytes))
1738186310: Received PUBLISH from weewx_2b38984b (d0, q0, r0, m0, 
'weather/loop', ... (971 bytes))
1738186312: Received PUBLISH from weewx_2b38984b (d0, q0, r0, m0, 
'weather/loop', ... (1430 bytes))
1738186314: Received PUBLISH from weewx_2b38984b (d0, q0, r0, m0, 
'weather/loop', ... (971 bytes))
1738186316: Received PUBLISH from weewx_2b38984b (d0, q0, r0, m0, 
'weather/loop', ... (1429 bytes))
1738186318: Received PUBLISH from weewx_2b38984b (d0, q0, r0, m0, 
'weather/loop', ... (970 bytes))
1738186320: Received PUBLISH from weewx_2b38984b (d0, q0, r0, m0, 
'weather/loop', ... (1427 bytes))
1738186322: Received PUBLISH from weewx_2b38984b (d0, q0, r0, m0, 
'weather/loop', ... (968 bytes))
1738186324: Received PUBLISH from weewx_2b38984b (d0, q0, r0, m0, 
'weather/loop', ... (1426 bytes))
1738186326: Received PUBLISH from weewx_2b38984b (d0, q0, r0, m0, 
'weather/loop', ... (968 bytes))
1738186328: Received PUBLISH from weewx_2b38984b (d0, q0, r0, m0, 
'weather/loop', ... (1428 bytes))





-- 
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 visit 
https://groups.google.com/d/msgid/weewx-user/6ad7a3f6-41ee-4d8d-ae77-032489aab856n%40googlegroups.com.

Reply via email to