trying to connect mqtt

87 views
Skip to first unread message

Δημήτρης Βήχος

unread,
Jan 14, 2021, 1:59:15 PM1/14/21
to weewx-user
i try in my experemental website to connect and upload data .
using weewx 4.3 and belchertown skin. using the mqtt-weewx extension for that my settings in weewx.conf

[[MQTT]]
        server_url = mqtt://hobbyl...@gmail.com:b9a8...@mqtt.dioty.co:1883

and the skin.conf 

# MQTT Websockets defaults
    mqtt_websockets_enabled = 1
    mqtt_websockets_host = "mqtt.dioty.co"
    mqtt_websockets_port = 8080
    mqtt_websockets_ssl = 0
    mqtt_websockets_topic = "/hobbyl...@gmail.com/"
    disconnect_live_website_visitor = 1800000

after restarting of weewx dont upload data to mqtt. 

Karen K

unread,
Jan 15, 2021, 3:24:32 AM1/15/21
to weewx-user
Maybe the authentication is missing. See https://github.com/poblabs/weewx-belchertown/issues/499

I would suggest to try an open MQTT broker like test.mosquitto.org (Port 8081) or mqtt.eclipseprojects.io/mqtt (Port 443) first. There is no authentication required, so you can test, if that's the problem.

Additionally, I am not sure that the topic can include @ character. That is _not_ the username field. It should be something like "weather/loop". Especially the word "loop" at the end is essential.

Karen K

unread,
Jan 15, 2021, 3:31:21 AM1/15/21
to weewx-user
Additional comment: In section [[MQTT]] the the line "topic = weather" (or something) and in skin.conf "mqtt_websockets_topic = ..." must correspond. The latter is always the former with "/loop" at the end. 

Example:
[[MQTT]]
    topic = "blabla"

skin.conf
   mqtt_websockets_topic = "blabla/loop"

Δημήτρης Βήχος

unread,
Jan 15, 2021, 8:50:44 AM1/15/21
to weewx-user
it works with your advice and the broker.hivemq.com  broker.thankyou!!!

Δημήτρης Βήχος

unread,
Jan 15, 2021, 1:26:18 PM1/15/21
to weewx-user
update:  works only with simulator setting . in my weatherstation with fineoffset usb dont work with same settings. 
Reply all
Reply to author
Forward
0 new messages