ChaseCares / AirGradient-InfluxDB

AirGradient Pushing to InfluxDB or MQTT
MIT License
9 stars 3 forks source link
airgradient arduino home-assistant influxdb influxdb2 iot mqtt

Custom AirGradient Sketch

Arduino Compile CI

AirGradient’s sensor set up is a good base and reasonably affordable. This Arduino sketch allows you to integrate with a locally run InfluxDB instance or MQTT. This also allows you to easy integrate with Home Assistant. This was loosely based off of AirGradient’s original example. A couple additional features are also included.

Note: InfluxDB isn't required, there is a config option that will allow you to disable it.

Getting Started

Step 0 | Prerequisites

Step 1 | Setting up Arduino

Add ESP8266 platform information.

Add the required libraries.

If only using sensors, with no connectivity skip to step two

Only needed if you enable Influxdb

Only needed if you enable MQTT

Step 2 | Configuration

Navigate to DeviceConfig.hpp tab and enable any features you would like to use. Then fill out their corresponding credentials.

Once customization is complete, plug the device (esp8266) into your computer then click upload. Optionally, if you want to monitor what the device is doing, you can open Serial Monitor

Modifications