SWAT-engineering / kiwi-air-monitor

Kiwi monitor is an open source CO2/Humidity/Temperature sensor intended for monitoring the quality of the air in a room. Kiwi was created to support teachers with a notification to ventilate their classroom.
https://www.kiwimonitor.nl/
GNU General Public License v3.0
10 stars 2 forks source link

Develop small MQTT forwarder #5

Closed DavyLandman closed 3 years ago

DavyLandman commented 4 years ago

subscribe to kiwi/+/sensor/# stream, and forward the measurements to influxdb.

Tag based on mac, and have a map of extra tags that can be registered for each mac.

For example toml config:

[servers]
mqtt = "mqtts://iot:password@mqtt-servername"
influxdb = "http://influxdb"
influxdb_name = "kiwi"

[[client.tags]]
mac = "30:AE:A4:07:0D:64"
tags = [ "1st floor", "front-side"]

[[client.tags]]
mac = "30:AE:A4:07:0D:55"
tags = [ "2st floor", "front-side"]