sgp30-exporter

Exports air quality readings from Pimoroni SGP30 to Prometheus.
This exporter uses pimoroni-sgp30 to obtain data.
Installation
pip install sgp30-exporter
Running
sudo sgp30-exporter
This will serve metrics at http://0.0.0.0:9895/metrics.
Note that sudo is required to give SGP30 read-write access to the /dev/i2c interface.
You can make Prometheus scrape these with this scrape config:
scrape_configs:
- job_name: "sgp30"
static_configs:
- targets: ["<the IP of your exporter host>:9895"]
labels:
location: "bedroom"
0.2.1
- CLI help test assertion less picky about help format.
0.2.0
- Introduced the
sgp30-exporterCLI application. Makes it easier to run this exporter. - Exporting metrics on port
9895by default.
0.1.2
- Bugfix: try to reconnect even if initialization failed.
0.1.1
- Bugfix: reconnect to the SGP30 device on I/O failure.
0.1.0
- Initial release.
Metadata
Release files for sgp30-exporter 0.2.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 |
|---|---|---|---|---|
| sgp30-exporter-0.2.1.tar.gz | 5.7 kB | Without provenance | Details for sgp30-exporter-0.2.1.tar.gz |
Release files / sgp30-exporter-0.2.1.tar.gz
| Download URL | sgp30-exporter-0.2.1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8b213c0e2bb0de4e7c4661a938b40b16bc0814d699ec13318729dd8602984304
|
|
BLAKE2b-256 checksum How to use checksums |
31c14457d52b258cc5b2ddbb439d4188864b33bb3ba188aadc6d7342d6ab7ed4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.1
|
Security for sgp30-exporter 0.2.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.