-
-
Notifications
You must be signed in to change notification settings - Fork 14
Support for weewx mqtt
David Baetge edited this page Mar 20, 2023
·
10 revisions
The skin supports live updates for the stat tiles of the alternative layout and the table of the classic layout on the front page. This is done via MQTT, a machine to machine protocoal used by your WeeWX installation to send LOOP data to a broker (eg. Mosquitto). The website will connect to that Message Broker (via a protocal called WebSockets) and will wait for new messages (LOOP data) to arrive.
To enable this on the website, modify the skin.conf secti0on to your brokers data:
[[mqtt]]
mqtt_websockets_enabled = 0
mqtt_websockets_host = "mqtt.host.com"
mqtt_websockets_port = 9001
mqtt_websockets_ssl = 0
mqtt_websockets_topic = "weather/loop"
For topic
, you should choose the topic where your loop data get published to, defaults to weather/loop
.
For weewx-mqtt, Iam using this configuration override:
[[MQTT]]
server_url = mqtt://...
topic = weather
unit_system = METRIC
binding = loop
[[[inputs]]]
[[[[windSpeed]]]]
format = %.0f
[[[[windGust]]]]
format = %.0f
Once connected, you should see this success message.