Any ideas on solving this issue (from the browser's explorer)? paho-mqtt.min.js:37 Mixed Content: The page at 'https://dreamwoodinternational.com/weewx/belchertown/?debug=true' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://mqtt.dreamwoodestate.net:9011/mqtt'. This request has been blocked; this endpoint must be available over WSS. (anonymous) @ paho-mqtt.min.js:37 On Tuesday, 5 August 2025 at 22:22:35 UTC+10 Peter Schmelitschek wrote:
> This seems to be the issue (from using ?debug=true in browser): > > MQTT: Connecting to MQTT Websockets: mqtt.dreamwoodestate.net 9011 (SSL > Enabled) > belchertown.js?1754396118:1579 MQTT: 2025-08-05T22:19:59+10:00: Cannot > connect to MQTT broker > > On Tuesday, 5 August 2025 at 21:44:06 UTC+10 Peter Schmelitschek wrote: > >> Replies are getting out of order. >> myconfig.conf - running without comments: >> persistence false >> >> >> allow_anonymous false >> password_file /etc/mosquitto/passwd >> acl_file /etc/mosquitto/acl >> >> listener 1883 >> listener 8883 >> cafile /etc/letsencrypt/live/mqtt.dreamwoodestate.net/chain.pem >> certfile /etc/letsencrypt/live/mqtt.dreamwoodestate.net/cert.pem >> keyfile /etc/letsencrypt/live/mqtt.dreamwoodestate.net/privkey.pem >> protocol mqtt >> >> listener 9011 >> protocol websockets >> >> On Tuesday, 5 August 2025 at 18:37:56 UTC+10 Jacques Terrettaz wrote: >> >>> You have possibly a comment line (starting with "#") in the first line >>> of myconfig.conf. Try to remove it and any other comment line. >>> >>> Here is for exemple the content of my own myconfig.conf file : >>> listener 1883 >>> listener 8083 >>> protocol websockets >>> allow_anonymous false >>> password_file /etc/mosquitto/passwd >>> acl_file /etc/mosquitto/acl >>> >>> >>> Le 5 août 2025 à 10:14, Peter Schmelitschek <[email protected]> a >>> écrit : >>> >>> I have recreated both ACL and myconfig.conf files from scratch using >>> NANO because Mosquitto complains of unexpected character at the start of >>> files. >>> However, with that done, I still get this at Mosquitto restart: >>> Loading config file /etc/mosquitto/conf.d/myconfig.conf >>> Error: Unknown configuration variable "#" >>> Error found at /etc/mosquitto/conf.d/myconfig.conf:1 >>> Error found at /etc/mosquitto/mosquitto.conf:18 >>> >>> This is possibly the root cause of my MQTT problems - I have been >>> commenting out the ACL file previously to get WeeWx to appear at this stage. >>> Right now I'm seeing "Failed connecting to the weather station" >>> >>> >>> -- 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 visit https://groups.google.com/d/msgid/weewx-user/8e9656f2-23b7-47ec-8b1d-cbfe1083ae39n%40googlegroups.com.
