-
-
Notifications
You must be signed in to change notification settings - Fork 14
Support for weewx mqtt
gary-hammer edited this page Apr 1, 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 WdcReport section of the weewx.conf to your brokers data:
[[WdcReport]]
skin = weewx-wdc
enable = true
lang = en
[[[Extras]]]
[[[[mqtt]]]]
mqtt_websockets_enabled = 1
mqtt_websockets_host = example.host.lan
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.