Hi Kalju, First change your mqtt_websockets_topic = "weather/#" to weather/loop. (Just curious, did you follow a tutorial of mine somewhere? I see a lot of folks using # when it shouldn't be used. Wondering if I need to clean that up somewhere)
Second, mosquitto is very, very picky. Double check your mosquitto.conf file that there's no whitespace at the end of each line, make sure every empty line doesn't contain a blank space, etc. Third, "when in doubt, reboot". You'll be surprised at how often a reboot fixes many mosquitto problems. 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/0e86432c-55db-4b08-b7b3-2dca65348689%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
