I am having trouble getting the Belchertown skin MQTT websocket real-time
updates to work correctly on my website wetter.affolter.familyds.net.
I have already spent a lot of time troubleshooting over the last few weeks
I have WeeWx with Mosquitto Broker on a Rasperry 3+ the database MariaDB
and the webserver on a Synology
I know that the weewx-mqtt extension is installed correctly enough that I
can see that the data arrives every 2.5 seconds in the broker on one side
with "mosquitto_sub -h 192.168.56.51 -t weather/#" and on my desktop
station with the program MQTT.fx
But on the web page nothing does only the message Connection (orange) but
no Connect (green). For testing I didn't want to use SSL certificate.
Here are my current configs:
*weewx.conf*
[[MQTT]]
server_url = mqtt://user:[email protected]:1883/
topic = wetter
unit_system = METRIC
binding = archive, loop
aggregation = aggregate
#--- MQTT Websockets (for Real Time Streaming) Options ---
mqtt_websockets_enabled = 1
mqtt_websockets_host = mqtt://192.168.56.51
mqtt_websockets_port = 9001
mqtt_websockets_ssl = 0
mqtt_websockets_topic = wetter/loop
mqtt_websockets_username = user
mqtt_websockets_password = password
disconnect_live_website_visitor = 1800000
*/etc/mosquitto/conf.d/myconfig.conf*
persistence false
allow_anonymous true
password_file /etc/mosquitto/passwd
acl_file /etc/mosquitto/acl
# Insecure mqtt to localhost only, and secure mqtt
listener 1883
protocol mqtt
# websockets
listener 9001
protocol websockets
Thanks in advance for anything I may be overlooking, advice or possible
solutions.
--
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/0607896b-b6db-41e2-a862-7b5e7408c25en%40googlegroups.com.