Skip to content

ESP8266 (Espressif 8266) Prometheus Exporter for DS18B20 OneWire Temperature Sensors

Notifications You must be signed in to change notification settings

theoretick/esp8266_prometheus_exporter_for_ds18b20_temperature_sensors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP8266 (Espressif 8266) Prometheus Exporter for DS18B20 Temperature Sensors

Exposes a prometheus exporter endpoint endpoint for scraping DS18B20 temperature sensor readings.

Usage

  1. Configure ssid and password for wifi network within main.cpp
  2. Build library against 8266 platform
  3. hit /metrics endpoint for reading temperature (C), temperature (F), device resolution, and device count:
❯ curl 10.0.1.1/metrics

# HELP beertemp_device_total A count of probe devices connected.
# TYPE beertemp_device_total gauge
beertemp_device_total 1
# HELP beertemp_device_temperature_celsius Current device temperature in celsius.
# TYPE beertemp_device_temperature_celsius gauge
beertemp_device_temperature_celsius{id="28d1813592066618" resolution="12"} 22.69
# HELP beertemp_device_temperature_fahrenheit Current device temperature in fahrenheit.
# TYPE beertemp_device_temperature_fahrenheit gauge
beertemp_device_temperature_fahrenheit{id="28d1813592066618" resolution="12"} 72.84

About

ESP8266 (Espressif 8266) Prometheus Exporter for DS18B20 OneWire Temperature Sensors

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages