Exposes a prometheus exporter endpoint endpoint for scraping DS18B20 temperature sensor readings.
- Configure
ssid
andpassword
for wifi network withinmain.cpp
- Build library against 8266 platform
- 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