Skip to content

urbas/py-air-control-exporter

Repository files navigation

py-air-control-exporter build-badge pypi-badge

Exports air quality metrics to Prometheus.

This exporter uses py-air-control to obtain data.

Installation

pip install py-air-control-exporter

Running

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"

About

Exports Philips Air Purifiiers' metrics to Prometheus.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages