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/ On Friday, February 19, 2021 at 5:04:57 AM UTC-6 DaveStLou wrote: > 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. > > On Tuesday, February 16, 2021 at 10:37:43 AM UTC-6 vince wrote: > >> We'd have to see the Belchertown portion of weewx.conf (with >> usernames/passwords obfuscated), but the documentation >> <https://github.com/poblabs/weewx-belchertown#mqtt-and-mqtt-websockets-optional> >> 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. >> >> On Tuesday, February 16, 2021 at 5:27:49 AM UTC-8 DaveStLou wrote: >> >>> 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! >>> >>> >>> >>> On Monday, February 15, 2021 at 7:43:57 AM UTC-6 DaveStLou wrote: >>> >>>> >>>> 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! >>>> >>> -- 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 on the web visit https://groups.google.com/d/msgid/weewx-user/5afd4ff9-e986-4f52-9c4b-e8658b64296cn%40googlegroups.com.
