The mqtt publish portion has always worked and since I could see messages 
arriving in MQTT Explorer  there was no need to muddy the waters with that 
section.
Problem solved. 
Apparently the mqtt_websockets config should go under Extras not 
Belchertown.
I had it both places ¯\_(ツ)_/¯ and the topic in extras was weather/* not 
weather/loop 
The reason I was using the wildcard is a story too long for this thread but 
changing it to loop in the Extras section and removing mqtt_websockets... 
from the Belchertown section solved the problem.





On Saturday, November 25, 2023 at 7:37:47 PM UTC-7 Don Vawter wrote:

> I know that mqtt is working and publishing info because I can see it in 
> MQTT explorer:[image: exd.jpg][image: ex.jpg]
> here is my config file:
>     [[Belchertown]]
>         skin = Belchertown
>         HTML_ROOT = /var/www/html/weewx/belchertown
>         enable = true
>         mqtt_websockets_enabled = 1
>         mqtt_websockets_host = weather2.sangrephotography.com
>         mqtt_websockets_port = 9001
>         mqtt_websockets_topic = weather/loop
>         mqtt_websockets_ssl = 1
>         mqtt_websockets_username = donvawter
>         mqtt_websockets_password = xxxxxxxxx
>         [[[extras]]]
>             web_autorefresh = 0
>
> I see this on web page: preceded by a yellow dot.
>
> Connected. Waiting for data. Last Updated November 25, 2023, 7:10:00 PM
>
>
>
>
>
> w
>
>
>

-- 
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/fa3f0234-fc44-4528-aecd-5e6422a79e42n%40googlegroups.com.

Reply via email to