The answer to that question is no. I've attached a file with sanitized
excerpts of my weewx.conf file showing the stanzas related to:
1. MQTT (publishing) - which specifies a username and password but not
websocket (port 8883 - SSL not websocket)
2. Belchertown Highcharts
3. Belchertown (subscribing) - which specifies websockets but no
username/password (port 9001 - SSL and websocket)
You'll need to check with Pat, but I expect he saw no reason to lock down
the subscriptions with username/password when programming his skin, only
locking down the publishing (which is done by MWall's MQTT extension). I
think the rationale is you don't care who sees the output (after all, it's
being published on an open web site), but you don't want any unauthorized
uploading of data which you'll be outputting and displaying to others.
So, if the MQTT broker requires a username/password for subscribing over
websockets, I don't know if the skin provides for that. I assume you've
tried to prepend <username>:<password>@ to the host name in the Belchertown
Extras stanza without success.
Hopefully Pat can weigh in here.
phil
On Monday, October 8, 2018 at 4:54:41 PM UTC-4, G Hammer wrote:
>
> Do you connect the client (skin) via websockets or any other way using a
> username and password?
>
> That is the question.
>
>
>
> *From:* [email protected] <javascript:> <[email protected]
> <javascript:>> *On Behalf Of *Philip Kutzenco
> *Sent:* Monday, October 8, 2018 3:32 PM
> *To:* weewx-user <[email protected] <javascript:>>
> *Subject:* [weewx-user] Re: Belchertown Skin and MQTT With Username Not
> Working
>
>
>
> I have it working on my own externally hosted Mosquitto server (on Digital
> Ocean). My Mosquiutto MQTT broker is set up requiring a username and
> password for publishing. Additionally it has TLS/SSL implemented (with
> Let's Encrypt certificates). It allows subscribing anonymously and also
> runs Websockets so that it can feedthe Belchertown skin. I used Pat's MQTT
> "tutorial" <https://obrienlabs.net/how-to-setup-your-own-mqtt-broker/> to
> do this. My website is https://wx.kutzenco.com.
>
>
>
> phil
>
>
> On Monday, October 8, 2018 at 10:21:50 AM UTC-4, G Hammer wrote:
>
>
>
> Does anyone have the Belchertown skin working with MQTT using a server
> that requires a username and password such as CloudMQTT?
>
>
>
> I have tried several different ways of configuring the skin and it fails
> to connect or it shows 'Connecting to weather station real time data'
> forever without connecting.
>
> The data is being sent to the server fine and I have subscribed to it
> using client software (see below).
>
>
>
> Thanks for any input, I'm at a loss here.
>
>
>
> [image: Image removed by sender. wxmqtt.png]
>
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/5Qn_6oZjLP4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
--
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].
For more options, visit https://groups.google.com/d/optout.
[[MQTT]]
server_url = mqtt://<username>:<password>@kutzenco.com:8883/
topic = weather
unit_system = US
binding = archive, loop
aggregation = aggregate
log_success = False
log_failure = True
[[[tls]]]
tls_version = tlsv1
ca_certs = /etc/ssl/certs/ca-certificates.crt
[[Highcharts_Belchertown]]
HTML_ROOT = public_html/belchertown
skin = Highcharts_Belchertown
[[Belchertown]]
HTML_ROOT = public_html/belchertown
skin = Belchertown
[[[Extras]]]
logo_image =
"https://wx.kutzenco.com/images/content/header-logo-slim.png"
footer_copyright_text = kutzenco.com
forecast_enabled = 1
darksky_secret_key = <secret key>
earthquake_enabled = 1
mqtt_enabled = 1
mqtt_host = kutzenco.com
mqtt_port = 9001
mqtt_ssl = 1
mqtt_topic = "weather/#"
disconnect_live_website_visitor = 0