As Greg said, make sure your MQTT infrastructure is up and running correctly. Since you installed your own broker, a first check is to use mosquitto_sub and mosquitto_pub to a test topic. Once that is working, use mosquitto_sub to subscribe to the broker and topic(s) that you want MQTTSubscribe to subscribe to. This will also provide you with the MQTT message. The actual message will be useful as you configure WeeWX/MQTTSubscribe.
Next read https://github.com/bellrichm/WeeWX-MQTTSubscribe/wiki. This will outline the install steps and point you to https://github.com/bellrichm/WeeWX-MQTTSubscribe/wiki/Configuring, which has the information on configuring WeeWX/MQTTSubscribe. This page will also provide you with links to configuration examples by payload ‘type’. rich On Wednesday, 12 May 2021 at 12:24:37 UTC-4 Greg Troxel wrote: > > Eric Koester <[email protected]> writes: > > > I see I mistyped mosquitto in at least one place above. > > The /etc/mosquitto directory is spelled correctly in my Ubuntu 20 > machine. > > > > Ok, on the pid file. > > The version of mosquitto in the Ubuntu 20 deb repo still has provision > for > > pid files, so its confusing. > > mosquitto has support for pid files, and many systems use them. Whether > they are normal and the right thing, or last year's plan depends on how > your system deals with init things. However this is unlikely to make > things work or not work, just ma make the init system unhappy about > statusing and stopping mosquitto. > > > It appears that the mosquitto install is properly starting as a daemon > (I > > see it in the process table in TOP) and running without errors in the > > /var/log/mosquitto/mosquitto.log, so I think I'm ready to move on to > > configuring MQTTSubscribe. > > No, you are ready to use mosquitto_sub on the machine you want to run > MQTTSubscribe and see if you are seeing the data from the command-line > client. Pause to reconfigure mosquitto to listen beyond localhost if > you need to, to figure out what you are doing about 1883 vs 8883/tls, > and acls. Any time you can test at an intermedidate point, you make > things simpler to figure out. > > You can also use mosquitto_pub on the machine that is supposed to inject > mqtt messsages. > > Note that mosquitto silently drops topic writes that are not allowed by > the acl. > -- 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/a69a9065-53f7-4d3b-9aed-46c5b7281c4cn%40googlegroups.com.
