Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blalop/ambiance-exporter
ESP8266 + DHT22 temperature & humidity measure with exported metrics in Prometheus format
https://github.com/blalop/ambiance-exporter
arduino esp8266 prometheus prometheus-exporter
Last synced: 7 days ago
JSON representation
ESP8266 + DHT22 temperature & humidity measure with exported metrics in Prometheus format
- Host: GitHub
- URL: https://github.com/blalop/ambiance-exporter
- Owner: blalop
- License: gpl-3.0
- Created: 2021-08-28T13:43:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-05T21:53:45.000Z (over 2 years ago)
- Last Synced: 2024-12-13T03:30:15.607Z (2 months ago)
- Topics: arduino, esp8266, prometheus, prometheus-exporter
- Language: C++
- Homepage:
- Size: 41 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/jdunmire/kicad-ESP8266) library.
## Deployment
```bash
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
```bash
WIFI_SSID='\"ssid\"' WIFI_PASS='\"pass\"' ROOM='\"livingroom\"' pio run test
```