Finally, working locally (after too much tweaking time...)

The trick, as pointed by someone in different Forum, is NOT to use 
"localhost" in Websockets, as it may have a conflict with IPv6 in 
RaspberryPi. *Instead of "localhost", use IP of WeeWX device.*


My MQTT weewx.conf (for local MQTT):

    [[MQTT]]
        server_url = mqtt://[user:password]@localhost:1883/
        topic = weather
        unit_system = US
        binding = loop
        aggregation = aggregate

My Belchertown skin.conf (for local MQTT):

    # MQTT Websockets defaults
    mqtt_websockets_enabled = 1
    mqtt_websockets_host =* [your WeeWX IP]   #(NOT "localhost")*
    mqtt_websockets_port = 9001
    mqtt_websockets_ssl = 0
    mqtt_websockets_topic = "weather/loop"   #(or "weather/#")
    disconnect_live_website_visitor = 1800000

Open port 9001 in router.

Best,
Xant

-- 
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/5b425f00-cd1c-40f2-8bf9-71828fa9934e%40googlegroups.com.

Reply via email to