My websockets_host is just my hostname without the protocol. So instead of 
"mqtt://foo.bar.com" or "ws://foo.bar.com" it is just "foo.bar.com"

On Friday, March 25, 2022 at 5:43:41 AM UTC-4 Geni wrote:

> I am having trouble getting the Belchertown skin MQTT websocket real-time 
> updates to work correctly on my website wetter.affolter.familyds.net.
> I have already spent a lot of time troubleshooting over the last few weeks
> I have WeeWx with Mosquitto Broker on a Rasperry 3+ the database MariaDB 
> and the webserver on a Synology
> I know that the weewx-mqtt extension is installed correctly enough that I 
> can see that the data arrives every 2.5 seconds in the broker on one side 
> with "mosquitto_sub -h 192.168.56.51 -t weather/#" and on my desktop 
> station with the program MQTT.fx
>
> But on the web page nothing does only the message Connection (orange) but 
> no Connect (green). For testing I didn't want to use SSL certificate.
>
> Here are my current configs:
>
> *weewx.conf*
>     [[MQTT]]
>         server_url = mqtt://user:pass...@192.168.56.51:1883/ 
> <http://user:password@192.168.56.51:1883/>
>         topic = wetter
>         unit_system = METRIC
>         binding = archive, loop
>         aggregation = aggregate
>                 
>                 
>             #--- MQTT Websockets (for Real Time Streaming) Options ---
>             mqtt_websockets_enabled = 1
>             mqtt_websockets_host = mqtt://192.168.56.51
>             mqtt_websockets_port = 9001
>             mqtt_websockets_ssl = 0
>             mqtt_websockets_topic = wetter/loop
>             mqtt_websockets_username = user
>             mqtt_websockets_password = password
>             disconnect_live_website_visitor = 1800000
>
>
>
> */etc/mosquitto/conf.d/myconfig.conf*
> persistence false
> allow_anonymous true
> password_file /etc/mosquitto/passwd
> acl_file /etc/mosquitto/acl
>
> # Insecure mqtt to localhost only, and secure mqtt
> listener 1883
> protocol mqtt
>
> # websockets
> listener 9001
> protocol websockets
>
> Thanks in advance for anything I may be overlooking, advice or possible 
> solutions.
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/af0fb5e4-cd5b-4890-9cf9-b6e7dfb8683dn%40googlegroups.com.

Reply via email to