Do you have a MQTT Broker on your local network?

The easiest setup:

- MQTT Broker on your local network
- weewx-mqtt https://github.com/matthewwall/weewx-mqtt

In weewx.conf configure the MQTT xtension as you need it, mine looks like 
that, the broker is on the same machine as weewx:

    [[MQTT]]
        server_url = mqtt://localhost:1883/
        topic = weather
        binding = loop
        aggregation = aggregate

And on the weewx side, that should be it.

I use mosquitto and have configured it for websockets with no security 
whatsoever inthe local LAN:

/etc/mosquitto/mosquitto.conf
persistence true
persistence_location /var/lib/mosquitto/

log_dest file /var/log/mosquitto/mosquitto.log

include_dir /etc/mosquitto/conf.d

listener 1883 0.0.0.0
allow_anonymous true
protocol mqtt
listener 9001 0.0.0.0
protocol websockets


Alastair L schrieb am Montag, 16. Februar 2026 um 12:44:03 UTC+1:

> Hi
>
> I've been trying to get WeeWX talking to Home Assistant via MQTT with zero 
> success and can't find anything to point me in the right direction.  Hours 
> and hours of chats with ChatGPT have led me nowhere, well mostly round in 
> circles.  
>
> I'm running WeeWX version 5.1.0  (previously upgraded from V4.something) 
> on a RPI4 and Home Assistant OS on another RPi4, both on the same home 
> network.
>
> I believe that the WeeWX log should show MQTT log lines if it is working, 
> but no MQTT configurations that I have tried have worked.  
>
>  If anyone has successfully got the two to communicate I would be very 
> greatful if you could share the relevant MQTT entries in weewx.config.  
>
> thanks
>

-- 
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].
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/e0809cd2-7511-4225-9483-201fac7f7271n%40googlegroups.com.

Reply via email to