Hi Pat, As I mentioned the broker does support SSL websockets. I can subscribe to the data using another client. I do have SSL websockets working with the test.mosquitto.org broker. What does not work for me is to use a broker that requires a username and password. Here's what I get when I try: jQuery.Deferred exception: An invalid or illegal string was specified Paho. MQTT</k.prototype._doConnect@https://cdnjs.cloudflare.com/ajax/libs/paho- mqtt/1.0.1/mqttws31.min.js:36:453 Paho.MQTT</k.prototype.connect@https://cdnjs.cloudflare.com/ajax/libs/paho- mqtt/1.0.1/mqttws31.min.js:31:476 I/this.connect@https: //cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.min.js:65:80 connect@https://ghammer.net/weather/:431:13 @https://ghammer.net/weather/:90:13 j@https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:29997 g/</k<@https: //ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js:2:30313 undefined jquery.min.js:2:31569 SyntaxError: An invalid or illegal string was specified
If you find the time could you attempt a SSL websockets using username and password to see where this is failing? I have my config for the skin in skin.conf vs weewx.conf but that ought not make a difference. The subscribe look exactly as yours with the exception of the username:password@ before the server. And that I use the # vs loop in the topic. On Friday, September 28, 2018 at 9:57:28 AM UTC-4, Pat wrote: > > Hi everyone. Sorry for the delay. I'm very behind on real-life work > matters and deadlines - which has meant this skin has taken a bit of a > break. > > The skin MQTT is not tied to the 1 broker mentioned. It can, and does work > with, WSS and SSL. I run my own broker which is SSL MQTT and SSL > websockets. > > The key is that the MQTT broker needs to support SSL websockets for the > website to connect to. All instructions on how to setup and define SSL are > in the GitHub readme options > <https://github.com/poblabs/weewx-belchertown#mqtt-for-real-time-streaming-options>. > > Make sure you set mqtt_ssl = 1. This should probably be changed to > websockets_ssl but it is what it is today, and probably won't change it at > risk of breaking other installs. Maybe just need to update the readme. > > Try using a public websocket test tool like this one > http://www.lazyengineers.com/mqtt-websocket/ > > > On Friday, September 28, 2018 at 9:50:14 AM UTC-4, G Hammer wrote: > > Is this skin's MQTT websocket functionality somehow tied to the > test.mosquitto.org broker? > I have setup a different broker on find that while weewx publishes data to > it, the B > > ... -- 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.
