Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 737 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 737 Bytes

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