MQTT on Belchertown no longer connecting

91 views
Skip to first unread message

bmb...@gmail.com

unread,
Sep 2, 2020, 10:29:22 AM9/2/20
to weewx-user
Hey All, 
I had my Belchertown skin working fine, until about a week ago when I rebooted my router and was assigned a new IP - I changed the DNS setting for my domain and everything still works except my MQTT server, well, I think that works, but its not connecting anymore 

my config is : 
weewx.conf 
[[MQTT]]
        server_url = mqtt://pi:password@localhost:1883/
        topic = weather
        unit_system = US
        binding = archive, loop
        aggregation = aggregate
Belchertown skin.conf
 # MQTT Websockets defaults
    mqtt_websockets_enabled = 1
    mqtt_websockets_host = "http://imagingphototech.com/weewx/belchertown/"
    mqtt_websockets_port = 9001
    mqtt_websockets_ssl = 0
    mqtt_websockets_topic = "weather/loop"
    disconnect_live_website_visitor = 0

myconfig.conf
persistence false

# mqtt
listener 1883
protocol mqtt
 
# websockets
listener 9001
protocol websockets

allow_anonymous true
password_file /etc/mosquitto/passwd
 
acl_file /etc/mosquitto/acl

running mosquito -v
1599056516: mosquitto version 1.4.10 (build date Wed, 13 Feb 2019 00:45:38 +0000) starting
1599056516: Using default config.
1599056516: Opening ipv4 listen socket on port 1883.
1599056516: Error: Address already in use

and weewx is publishing data.. 
restx: MQTT: Published record 2020-09-02 10:26:08 EDT (1599056768)

I did update to Belchertown 1.01 recently to see if that fixes it but no change, both locally and remotely I get waiting for data then Failed connecting to the weather station. Please try again later!
Chrome and Safari give same results. 

bmb...@gmail.com

unread,
Sep 3, 2020, 1:02:56 PM9/3/20
to weewx-user
Apparently, Cloudflare doesn't proxy the Websockets for free accounts or at least to port 9001 for free accounts, so I disabled the proxied DNS server and poof, working again. 
Reply all
Reply to author
Forward
0 new messages