No project description provided
Project description
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.
Why sudo? SGP30 requires 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.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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sgp30-exporter-0.2.0.tar.gz
(5.2 kB
view details)
File details
Details for the file sgp30-exporter-0.2.0.tar.gz.
File metadata
- Download URL: sgp30-exporter-0.2.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d46625a49fc84980917cea0ba3eebfc27bc7d0010e33db8e547e4464a8f24a4a
|
|
| MD5 |
e35ffe90f5035200fd9f2a3e24c2d3f9
|
|
| BLAKE2b-256 |
5bc416d8023ea541825194654788ad46670af63c9ccf8348dab620dd90ebfec5
|