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-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"
0.3.1
- Packaging fixes:
- Removed
setuptools_scm,pytest-cov, andpytestfrom setup requirements. - Future-proofed CLI tests.
- Removed
0.3.0
- Hours remaining to replace or clean filters are now exported as
py_air_control_filter_hoursgauges.
0.2.0
- Default listening port and address are now displayed in the CLI help.
- The exporter now counts sampling errors and exports this as a metric rather than crash the process.
0.1.5
- Introduced the
py-air-control-exportercommand line tool.
0.1.4
- Packaging fixes:
- Building outside a git repository now supported.
- Build process now verifies that the CHANGELOG.md version matches the git version.
0.1.3
- Source distribution fixes: using SCM version, including test sources, including
CHANGELOG.md.
0.1.2
- Removed the
py-air-control-exporterentry point. - Fixed
pyairctrl.http_air_clientreferences topyairctrl.http_client.
0.1.1
- Ported to
prometheus_clientand added descriptions to each metric.
0.1.0
- Initial release.
Metadata
Release files for py-air-control-exporter 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| py-air-control-exporter-0.3.1.tar.gz | 7.4 kB | Without provenance | Details for py-air-control-exporter-0.3.1.tar.gz |
Release files / py-air-control-exporter-0.3.1.tar.gz
| Download URL | py-air-control-exporter-0.3.1.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18d3ffb38302ce02c4d3c3c5f0f3e7035018247307962b8fa4dcb02fbd679033
|
|
BLAKE2b-256 checksum How to use checksums |
849bf0c05f8fe5c19de6b739c289716ba753ac3501d1d9dce519311d428c64a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.1
|
Security for py-air-control-exporter 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.