Skip to main content

No project description provided

Project description

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_HOST=<ip of your air purifier> PY_AIR_CONTROL_PROTOCOL=<http|coap|plain_coap> FLASK_ENV=development FLASK_APP=py_air_control_exporter.app flask run --host 0.0.0.0

This will serve metrics at http://localhost:5000/metrics.

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>:5000"]
        labels:
          location: "bedroom"

0.1.1

  • Ported to prometheus_client and added descriptions to each metric.

0.1.0

  • Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-air-control-exporter-0.1.1.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

py_air_control_exporter-0.1.1-py2.py3-none-any.whl (2.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page