I just migrated my install to a new machine and was pulling my hair out trying to figure this out until I saw this today, thanks @gary for figuring this out. I've edited the weewx wiki to direct new setups to install the v1.6.1 paho-mqtt until the original mqtt extension is updated.
On Sunday, February 11, 2024 at 5:04:01 PM UTC-8 bell...@gmail.com wrote: > FWIW > Successfully ran integration tests on Ubuntu 22, python 3.12 with > paho-mqtt v2.0.0 and v1.6.1. > > On Sunday 11 February 2024 at 16:49:25 UTC-5 bell...@gmail.com wrote: > >> I've pretty much settled on this approach. Minimally tested >> >> try: >> callback_api_version = mqtt.CallbackAPIVersion.VERSION1 >> self.client = >> mqtt.Client(callback_api_version=callback_api_version, >> client_id=mqtt_options['clientid'], >> userdata=self.userdata, >> >> clean_session=mqtt_options['clean_session']) >> except AttributeError: >> self.client = mqtt.Client(client_id=mqtt_options['clientid'], >> userdata=self.userdata, >> >> clean_session=mqtt_options['clean_session']) >> >> rich >> On Sunday 11 February 2024 at 15:21:58 UTC-5 matthew wall wrote: >> >>> On Sunday, February 11, 2024 at 1:37:20 PM UTC-5 bell...@gmail.com >>> wrote: >>> >>> It currently will not work with paho mqtt 2.0.0 or higher. >>> >>> >>> rich, i too am interested in what you learn, as i will probably have to >>> update weewx-mqtt as well. m >>> >> -- 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/12548e6a-ba98-4d59-9b57-8ed9bb1f860en%40googlegroups.com.