Skip to main content

No project description provided

Project description

Philips Air Purifier Exporter

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.0 (upcoming)

  • 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.

Files for py-air-control-exporter, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size py_air_control_exporter-0.1.0-py2.py3-none-any.whl (2.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size py-air-control-exporter-0.1.0.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page