dht22_exporter

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

DHT22 Exporter for Prometheus

DHT22 Prometheus exporter for temperature and humidity.

Getting up to speed

Grab one of the pre-built binaries available in tags or a Docker container from GitHub' registry.

Binary run:

./dht22_exporter [<flags>]

In the contrib directory there's also sample Systemd service file.

Docker run:

docker run --rm -it ghcr.io/hadret/dht22_exporter:latest -h

Usage

./dht22_exporter -h
Usage of ./dht22_exporter:
  -gpio-port int
        The GPIO port where DHT22 is connected. (default 2)
  -interval duration
        Temperature and humidity evaluation interval. (default 60ns)
  -listen-address string
        The address to listen on for HTTP requests. (default ":10005")

License

Apache License 2.0, see LICENSE.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址