If it helps, here are my weewx.conf options for the Belchertown skin to 
connect to my secure mqtt/websockets server:

    [[Belchertown]]
        [[[Extras]]]
            mqtt_enabled = 1
            mqtt_host = my.private.mqtt.server
            mqtt_port = 9001
            mqtt_ssl = 1
            mqtt_topic = weather/weewx/loop



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 Belchertown skin will connect but never get data.
>> I've tried different topic strings /weather/data/# or weather/data/#
>> I've tried different host and port strings wss://
>> username:[email protected]:33219  or mqtt:/server info 
>> This is for SSL websockets and the broker requires a username and 
>> password.
>>
>> Any suggestion on how to configure the skin for secure websockets with 
>> username and password?
>>
>>

-- 
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.

Reply via email to