A Prometeus Exporter for the DHT22 sensor using ESP8266 hardware.
Classic ESP8266-DHT22 schematic with pull-up resistor of 4,7k-10k omhs.
Schematics uses kicad-ESP8266 library.
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
WIFI_SSID='\"ssid\"' WIFI_PASS='\"pass\"' ROOM='\"livingroom\"' pio run test