Belchertown added ssl - mqtt stuck "connecting"

126 views
Skip to first unread message

DaveStLou

unread,
Feb 15, 2021, 8:43:57 AM2/15/21
to weewx-user

I recently added ssl to my website oakvillewx.com. Now my mqtt data feed is stuck saying "Connecting to weather station real time data" in all browser types.

I found references on the forum to using debugger in the browser. I can get that but I don't know how to use it to figure out what's happening. 

Appreciate help on troubleshooting this. Thanks!

DaveStLou

unread,
Feb 16, 2021, 8:27:49 AM2/16/21
to weewx-user
To explain further, I added a certificate on the host to oakvillewx.com so it's showing https now without a security warning.

I am not getting the "Failed to connect to weather station" error message. It just perpetually shows the "Connecting to weather station real time data". So I wonder, could it be connected to the mqtt stream but just not displaying the data?

BTW, I tried changing "mqtt_websockets_ssl" to 1 in the skin.conf but that DOES cause it to display the failed to connect error so that's a no go.

If this is covered elsewhere, please point me to the thread. Thanks in advance!

vince

unread,
Feb 16, 2021, 11:37:43 AM2/16/21
to weewx-user
We'd have to see the Belchertown portion of weewx.conf (with usernames/passwords obfuscated), but the documentation seems to show that you need to add a [[[tls]]] section to tell the skin which version and cert to use and I'd "guess" that the cert has to be valid on both computers. 

DaveStLou

unread,
Feb 19, 2021, 6:04:57 AM2/19/21
to weewx-user
That makes sense but I'm such a novice on certs, I'll have to do some research on how to get the cert to be valid on both servers.
For the time being, I've disabled the mqtt portion of my website.

DaveStLou

unread,
Mar 16, 2021, 12:32:58 PM3/16/21
to weewx-user
Posting the resolution in case anyone finds this in a search. I had to
  1. Set up and enable SSL on my mqtt server per Pat's instructions here: https://obrienlabs.net/how-to-setup-your-own-mqtt-broker/
  2. Added SSL cert to MQTT config (from same page above)
  3. Set option "mqtt_websockets_ssl = 1" in skin.conf
All is well now: https://oakvillewx.com/
Reply all
Reply to author
Forward
0 new messages