Skip to content

Exports SGP30 air quality sensor readings to Prometheus.

License

Notifications You must be signed in to change notification settings

urbas/sgp30-exporter

Repository files navigation

sgp30-exporter build-badge pypi-badge

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"

About

Exports SGP30 air quality sensor readings to Prometheus.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages