Skip to content

Esp8266 – log temperature readings from DS18B20 and wifi signal strength to graphite grafana

Esp8266 – log temperature readings from DS18B20 and wifi signal strength to graphite grafana published on 3 Comments on Esp8266 – log temperature readings from DS18B20 and wifi signal strength to graphite grafana

Hello!
Recently I bought esp8266 (NodeMcu) – it is a low cost device with wifi chip, that can be programmed by Arduino IDE or Lua script language.

My first idea for this device is to draw graphs of temperature readings from ds18b20 sensor and signal strength on wifi connection for each SSID with which the device can connect. For logging I have raspberry pi configured with graphite server and Grafana. To log something on graphite server the esp8266 have to send UDP packet with string containg: metric name, metric value, timestamp. Bellow expample of such strings:

Charts in Grafana:
And the code doing this looks as follows:

Libraries used in this code (DallasTemperature and OneWire):
libraries.zip
You can download this through library manager from Arduino IDE.

3 Comments

hello
can you please show me in graphite server how to configure it? please thank you in advance 🙂

Leave a Reply to Anonymous Cancel reply

Your email address will not be published. Required fields are marked *