Skip to content

ESP8266 + DHT22 temperature & humidity measure with exported metrics in Prometheus format

License

Notifications You must be signed in to change notification settings

blalop/ambiance-exporter

Repository files navigation

Prometheus ESP8266 + DHT22 Exporter

A Prometeus Exporter for the DHT22 sensor using ESP8266 hardware.

Classic ESP8266-DHT22 schematic with pull-up resistor of 4,7k-10k omhs.

Schematics

Schematics uses kicad-ESP8266 library.

Deployment

WIFI_SSID='\"ssid\"' WIFI_PASS='\"pass\"' ROOM='\"livingroom\"' PLATFORMIO_UPLOAD_PORT=192.168.1.2 pio run -t upload -e ota

The output metrics look like this:

ambiance_build_info{version="0.5.0",gccversion="10.3.0", room="bedroom"} 1
ambiance_temperature{room="bedroom"} 22.00
ambiance_humidity{room="bedroom"} 59.50

Testing

WIFI_SSID='\"ssid\"' WIFI_PASS='\"pass\"' ROOM='\"livingroom\"' pio run test

About

ESP8266 + DHT22 temperature & humidity measure with exported metrics in Prometheus format

Topics

Resources

License

Stars

Watchers

Forks

Languages