naofireblade / homebridge-weather-plus

A comprehensive weather plugin for homebridge.
MIT License
311 stars 61 forks source link

Added new MQTT API #222

Open warenext opened 2 years ago

warenext commented 2 years ago

I'm in the process of building my own custom weather station to integrate into my Homekit-based smart home, using Arduino and some sensors, and I plan to use MQTT to relay data back to a Raspberry Pi running Homebridge and the mosquitto MQTT broker. As homebridge-weather-plus didn't yet support MQTT, but did have ways of reading JSONs, I'd like to contribute a new API to support getting the JSON from an MQTT broker, as well as supporting two new observations (which unfortunately can't be displayed in Eve App) based on data from the Austrian Microsystems (AMS) AS3935 Lighting Sensor. (Your use of changing the name of the Homekit accessories to display new data is ingenious, by the way!) While I haven't tested my code yet, Github says it can be "automatically merged" (which sounds good 😉).

Thanks also to CHAMLEX, whose WeeWX API code I used as a template for how to do this.

warenext commented 2 years ago

O.K., I think I've got my code settled down now. Now I've got to build the other side of it on the Arduino to publish some test data...