Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```