No project description provided
Project description
py-air-control-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.2
- Removed the
py-air-control-exporter
entry point. - Fixed
pyairctrl.http_air_client
references topyairctrl.http_client
.
0.1.1
- Ported to
prometheus_client
and added descriptions to each metric.
0.1.0
- 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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a997d20814d619ffedbb38b961eb45bfed9381343b83ce9bec8bd0fad1adb21 |
|
MD5 | dc620ab789d7c601e49b46b1eb54999a |
|
BLAKE2b-256 | 2e2426d46175adcb15b40950cfb84a07e00d3b0b930dc027dfe9265fc82fc1dc |
Close
Hashes for py_air_control_exporter-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a43f5ed34b236022473a04f8f8a0731675b91c7887a89968d3ecf06a57b2a970 |
|
MD5 | 52e0bf4098c61bbb9917ecb9a1203cf6 |
|
BLAKE2b-256 | a7946deab8bd43e8fc0803968e50beb7fd55d5c5316d57bf5bac21ce39dbf277 |