Also sidenote that using Chrome's developer tools, you won't be able to access any ws:// or wss:// endpoint directly. It's not like http. You can download this websocket test <https://github.com/hobbyquaker/mqtt-admin>website to your server's http folder and try it to see if it'll connect. This will take weewx and Belchertown out of it for testing
On Friday, June 14, 2019 at 2:35:28 PM UTC-4, Kalju wrote: > > Hi everybody, > > Here's my problem - and I have to admit I'm not a developer by any > means... :-) > I can not get mqtt working on my site > > Here are my settings - mind you, I'm not using SSL: > > weewx.conf > [[MQTT]] > server_url = mqtt://weewx:weather@localhost:1883/ > topic = weather > unit_system = US > binding = archive, loop > aggregation = aggregate > #log_success = False > log_failure = True > > > skin.conf > # MQTT Websockets defaults > mqtt_websockets_enabled = 1 > mqtt_websockets_host = "localhost" > mqtt_websockets_port = 9001 > mqtt_websockets_ssl = 0 > mqtt_websockets_topic = "weather/#" > disconnect_live_website_visitor = 1800000 > > mosquitto.conf > persistence false > > allow_anonymous true > > password_file /volume1/@appstore/mosquitto/var/passwd > > acl_file /volume1/@appstore/mosquitto/var/acl > > # Insecure mqtt to localhost only, and secure mqtt > listener 1883 > protocol mqtt > > # websockets > listener 9001 > protocol websockets > > websocket 9001 receives messages (mqtt-spy) > > [image: spy.png] > > mqtt 1883 receives messages (mqtt) > > [image: mqtt.png] > > > But there is no connection. From Chrome developer console I see that the > access to ws://localhost:9001/mqtt is declined... > > What I'm doing wrong? > -- 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/f2ab47c1-b7c1-4082-acd9-7b0c62bee189%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
