Skip to main content

Raspberry Pi DHT22 Prometheus Exporter build-badge pypi-badge

Exports DHT22 temperature and humidity readings in a format readable by Prometheus.

Installation

pip install rpi-dht-22-exporter

Running

rpi-dht22-exporter --pin-number <gpio pin number>

This will serve metrics at http://0.0.0.0:9894/metrics.

You can make Prometheus scrape these with this scrape config:

scrape_configs:
  - job_name: 'dht22@<the IP of your Raspberry Pi>'
    static_configs:
      - targets: ['<the IP of your Raspberry Pi>:9894']
        labels:
          location: 'bedroom'

2.0.1

  • CLI help test assertion less picky about help format.

2.0.0

  • Introduced the rpi-dht22-exporter CLI tool.

1.0.0

  • Initial release.

Metadata

Release files for rpi-dht22-exporter 2.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rpi-dht22-exporter 2.0.1
File Size Uploaded Provenance Actions
rpi-dht22-exporter-2.0.1.tar.gz 4.2 kB Without provenance Details for rpi-dht22-exporter-2.0.1.tar.gz

Release files / rpi-dht22-exporter-2.0.1.tar.gz

Download URL rpi-dht22-exporter-2.0.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
59585ea08e164dc9635cefb647e3ed8c4ad2d0ba43cc303ca57a086a129f723a
BLAKE2b-256 checksum
How to use checksums
d1f7be2dcca54a1fbad8b9c157fe6fab07b734ced549a8f597cac97330d03cd6
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.8.7

Security for rpi-dht22-exporter 2.0.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.

Release history Release notifications | RSS feed

This release

2.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page