Thank you, a really dumb mistake on my part. System updating. Issue Resolved
Duncan On Monday, March 22, 2021 at 3:25:06 AM UTC+11 ln77 wrote: > There's a typo in server_url: the port should be 1883, not 1833. > > -Les > > > On Saturday, March 20, 2021 at 11:30:35 PM UTC-7 Dun Mac wrote: > >> I have been trying for a week to get the live updates to work for Weewx. >> But I am not having any luck at all, so can someone please help if they can >> see where my setup is wrong. For background info: Weewx is running on an >> RPi 4B 192.168.8.155. I have set up an RPi 3A as the MQTT Broker >> 192.168.8.158. The "service weewx status" shows the following: >> >> *Mar 21 12:40:23 RPi-weather python3[2185]: weewx[2185] ERROR >> weewx.restx: MQTT: Failed to publish record 2021-03-21 11* >> >> The Belchertown page shows: >> >> *"Connected. Waiting for data. Last Updated 21 March 2021 yada yada"* >> >> My Weewx.conf setup is as follows: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> *188 [[MQTT]] 189 server_url = >> mqtt://vantagepro:[email protected]:1833/ >> <http://vantagepro:[email protected]:1833/> 190 topic = >> weather 191 unit_system = METRIC 192 binding = archive,loop >> 193 aggregation = aggregate 248 [[Belchertown]] 249 >> skin = Belchertown 250 HTML_ROOT = /var/www/html 251 >> [[Services]] 669 674 restful_services = >> weewx.restx.StdStationRegistry,......, user.mqtt.MQTT* >> >> >> >> I have not set up SSL on the Broker, hence it is disabled. >> /etc/weewx/skins/Belchertown/skin.conf >> is as follows: >> >> >> >> >> >> >> >> >> *35 # MQTT Websockets 36 mqtt_websockets_enabled = 1 37 >> mqtt_websockets_host = 192.168.8.158 38 mqtt_websockets_port = 9001 >> 39 mqtt_websockets_ssl = 0 40 mqtt_websockets_topic = weather/loop >> 41 disconnect_live_website_visitor = 1800000* >> >> >> >> The MQTT (192.168.8.158) broker.conf is: >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> * 6 pid_file /run/mosquitto/mosquitto.pid 7 8 persistence true 9 >> persistence_location /var/lib/mosquitto/ 10 11 log_dest file >> /var/log/mosquitto/mosquitto.log 12 13 log_type all 14 log_facility 5 15 >> log_type error 16 log_type warning 17 log_type notice 18 log_type >> information 19 20 connection_messages true 21 log_timestamp true 22 23 >> include_dir /etc/mosquitto/conf.d* >> >> and the Broker/conf.d/myconfig.conf >> >> >> >> >> >> >> >> >> >> >> >> >> *# mqtt listener 1883 protocol mqtt # websockets listener 9001 protocol >> websockets #Allow anonymous to read only and others need to be set in >> passwd,acl allow_anonymous true password_file /etc/mosquitto/passwd >> acl_file /etc/mosquitto/acl* >> >> >> >> The Broker Pub/Sub is working with and without passwords, using terminals >> in Weewx RPi (192.168.8.155). >> >> The Mosquitto client on the Weewx machine (192.168.8.155) has no >> configuration file >> >> >> >> I know I have something wrong but I just have no idea. >> >> >> >> -- 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/1db3be70-7147-4d7e-95f5-fe5928d1016dn%40googlegroups.com.
