Exports air quality metrics to Prometheus.
This exporter uses py-air-control to obtain data.
pip install py-air-control-exporter
py-air-control-exporter --host 192.168.1.105 --protocol <http|coap|plain_coap>
This will serve metrics at http://0.0.0.0:9896/metrics
.
For more instructions run py-air-control-exporter --help
.
You can make Prometheus scrape these with this scrape config:
scrape_configs:
- job_name: "py_air_control"
static_configs:
- targets: ["<the IP of your exporter host>:9896"]
labels:
location: "bedroom"