This commit adds a new feature to the One V9 (ONE_I-9PSL) firmware: support for exposing metrics to Prometheus (or any other ingestor compatible with the OpenMetrics format). With this change, the AirGradient device will make metrics available on the standard HTTP /metrics endpoint, out-of-the-box, with no need to do anything else. All the user has to do is add their device address as a target to their scrape config on their Prometheus server. For more information on Prometheus and OpenMetrics, see: - https://prometheus.io/docs/instrumenting/exposition_formats/ - https://openmetrics.io/ - https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md This obsoletes projects such as: - https://github.com/geerlingguy/airgradient-prometheus/tree/ebfa8d0ac6d8c47649e4642b27e90b98557fb8f7/AirGradient-DIY - https://forum.airgradient.com/t/prometheus-integration/1504
AirGradient Arduino Library for ESP8266 (Wemos D1 MINI) and ESP32 (ESP32-C3 Mini)
This is the code for the AirGradient open-source indoor and outdoor air quality monitors with ESP8266 / ESP32-C3 Microcontrollers.
More information on the air quality monitors and kits are available here: Indoor Monitor: https://www.airgradient.com/indoor/ Outdoor Monitor: https://www.airgradient.com/outdoor/
This library supports the following sensor modules:
- Plantower PMS5003
- Plantower PMS5003T
- SenseAir S8
- Sensirion SGP41
- Sensirion SHT40
Important information
Make sure you have exactly the versions of libraries and boards installed as described in the comment section of the example files.
If you have an older version of the AirGradient PCB not mentioned in the example files, please downgrade this library to version 2.4.15 to support these legacy boards.
Help & Support
If you have any questions or problems, check out our forum.
The following libraries have been integrated into this library for ease of use
- Adafruit BusIO
- Adafruit NeoPixel
- Adafruit SH110X
- Adafruit SSD1306 Wemos Mini OLED
- Adafruit GFX Library
- Sensirion Gas Index Algorithm
- Sensirion Core
- Sensirion I2C SGP41
- Sensirion I2C SHT
- PMS
License
CC BY-SA 4.0 Attribution-ShareAlike 4.0 International License