HP1000 and MQTT

75 views
Skip to first unread message

ried...@gmail.com

unread,
Dec 19, 2020, 10:45:47 AM12/19/20
to weewx-user
Hi there I run Weewx with an HP1000 weather station. Is it possible to receive sensors that send data via MQTT in Weewx at the same time as the HP1000. I would like to add additional data. greetings André  

Susan Mackay

unread,
Jan 1, 2021, 9:24:02 PM1/1/21
to weewx-user
At the HP1000 driver level, you could get the Python source and add in the MQTT code yourself. The Python MQTT libraries are fairly straight forward (in my experience) but I suspect there will be issues with coordinating the timing of the two data sources. You could have a thread that subscribes to the MQTT topics you are interested in and buffer the last received value that can be picked up by the HP1000 driver and added to the packet passed on to the WeeWx main thread.
Of course you will also need to make sure that the WeeWx main thread and database know about the additional variables but you would face that issue anyway.
Susan (author of the HP1000 driver)

bell...@gmail.com

unread,
Jan 2, 2021, 3:10:56 PM1/2/21
to weewx-user
Sounds like you might be interested in my MQTTSubscribeService extension.
rich

Reply all
Reply to author
Forward
0 new messages