It’s in https://github.com/weewx/weewx/wiki/mqtt — put the username/password before the server name: server_url = mqtt://username:password@localhost:1883/
-Les > On Aug 29, 2019, at 4:08 AM, Rui Pinto <ruialexandrepinto1...@gmail.com> > wrote: > > Hello!! > > I'm trying to publish data to a topic in the Mosquitto broker through > authentication. > I succedd without authentication but i wanted to publish data with > authentication. > > I successfully changed the user and password in the mosquitto configurations, > but i don't know where do i put the username and password in the Weewx > configurations. > > I don't know if i have to put the username and password in the weew.conf > file... > Here's my configuration of MQTT in Weewx.conf: > > [StdRESTful] > [[MQTT]] > server_url = mqtt://localhost:1883/ > topic = weewx/default/default/VantagePro2 > unit_system = METRIC > -- > 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 weewx-user+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/63673c7b-da3a-4e5f-b865-ce802dd01c5f%40googlegroups.com. -- 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/B8AC4681-CE64-499B-9205-D8BA69915B2F%40gmail.com.