MQTT username and password in new Belchertown skin

81 views
Skip to first unread message

didier....@gmail.com

unread,
Oct 30, 2021, 8:49:26 AM10/30/21
to weewx-user
Hi all

My question is about Belchertown skin last update with new parameters; mqtt_websockets_username and mqtt_websockets_password

In weewx.conf I have a paragraph (from mqtt github):
[StdRESTful]
    [[MQTT]]
        server_url = mqtt://xxxxxxxxxxx:yyyyyyyyyyyy@localhost:1883/
        topic = weather

and 2 new lines (from skin.conf):
            mqtt_websockets_username = "xxxxxxxxxxxx"
            mqtt_websockets_password = "yyyyyyyyyyyyy"

Why I am obliged to duplicate username and password in the same file?

Many thanks

Have a good week-end


Karen K

unread,
Oct 30, 2021, 2:32:25 PM10/30/21
to weewx-user
Oh, that are very different things.

In Section [StdRestful][[MQTT]] that's the username and password, the WeeWX MQTT extension needs to send data to the MQTT broker.

In Section [StdREport][[Belchertown]] or skin.conf that's the username and password, the user's browser (that displays the website, may be at the other end of the world) needs to receive data from the MQTT broker. If the broker does not require a username and/or password to receive data (i.e. allows anonymous read access), the parameters remain empty here.

Didier Decoodt

unread,
Oct 30, 2021, 2:50:32 PM10/30/21
to weewx...@googlegroups.com
Many thanks for this explanation.
I thought there was a duplicate...


--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/833aea25-e467-4cc3-87c0-b8a576f27d7en%40googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages