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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for py-air-control-exporter-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55d9acbd320c648623c510e3c4c53f0443875e58e1a033c39a8f8cc0ab42075f |
|
MD5 | d4ed0f11ab5e632b6ece09aa72aab34c |
|
BLAKE2b-256 | dcbb2d0dffe9f712e711e14b21aa78c46b6dfa441e63c712f41abf317ec35df7 |
Close
Hashes for py_air_control_exporter-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a5092212495a5f33c522382e9f5bd57eefe586f16963375934fb4edf911423c |
|
MD5 | 49956ba448a71ec321d2764fbedeb372 |
|
BLAKE2b-256 | c71244ae7001c1087ab3d5d634c187ee3d0b0d99c84deef4e2ee14c8459835be |