2020-06-27 19:17:33 +00:00
# Prometheus ESP8266 DHT Exporter
2020-06-27 11:44:57 +00:00
2020-06-29 11:39:10 +00:00
[![GitHub release ](https://img.shields.io/github/v/release/HON95/prometheus-esp8266-dht-exporter?label=Version )](https://github.com/HON95/prometheus-esp8266-dht-exporter/releases)
2020-06-27 17:50:42 +00:00
A Prometheus exporter for IoT temperature and humidity measurements, using an ESP8266 (Arduino-compatible) with a Wi-Fi module and a DHT (temperature + humidity) sensor.
2020-06-27 12:20:19 +00:00
2020-06-29 11:39:10 +00:00
## Metrics
| Metric | Description | Unit |
| - | - | - |
| iot_info | Metadata about the device. | |
| iot_air_humidity_percent | Air humidity. | `%` |
| iot_air_temperature_celsius | Air temperature. | `°C` |
| iot_air_heat_index_celsius | Apparent air temperature, based on temperature and humidity. | `°C` |
2020-06-27 12:20:19 +00:00
## Hardware
2020-06-29 11:39:10 +00:00
ESP8266-based board: [WEMOS D1 Mini ](https://wiki.wemos.cc/products:d1:d1_mini )
2020-06-27 12:20:19 +00:00
DHT sensor: [Wemos DHT Shield ](https://wiki.wemos.cc/products:retired:dht_shield_v1.0.0 ) (DHT11)
2020-06-29 11:39:10 +00:00
## Software
2020-06-27 12:20:19 +00:00
2020-06-27 17:50:42 +00:00
- [Arduino IDE ](https://www.arduino.cc/en/Main/Software )
- Download and install.
- [esp8266 library for Arduino ](https://github.com/esp8266/Arduino#installing-with-boards-manager )
- See the instructions on the page.
2020-06-27 18:21:31 +00:00
- [DHT sensor library for ESPx ](https://github.com/beegee-tokyo/DHTesp )
- Install using the Arduino library manager.
- The Adafruit one didn't work for the WEMOS D1.
2020-06-27 12:20:19 +00:00
## Building
2020-06-27 17:50:42 +00:00
This uses the Arduino IDE.
2020-06-27 12:20:19 +00:00
1. Copy `config.default.h` to `config.h` and fill inn the details.
2020-06-27 17:50:42 +00:00
1. Set the correct settings for the board.
- WEMOS D1 Mini uses board "WeMoS D1 R2 & mini".
1. Build and upload using the Arduino IDE.
2020-06-27 19:16:23 +00:00
2020-06-29 11:39:10 +00:00
## Version
2020-06-27 19:16:23 +00:00
2020-06-29 11:39:10 +00:00
See `src/version.h` .
It's set manually since no build tools (or CI) other than the Arduino IDE is used.
## License
GNU General Public License version 3 (GPLv3).