/arduino-temp-exporter

Arduino + Ethernet Shield + Temperature Sensor = Prometheus Exporter

Primary LanguageC++

arduino-temp-exporter

Use an Arduino Uno, an Ethernet shield and a temperature sensor as a exporter for Prometheus.

Hardware setup

Hardware list

  • Arduino Uno
  • W5100 ethernet shield
  • DS18B20 temperature sensor

Network configuration

Modify the src/main.cpp file and set STATIC to 1 or 0 depending if you want a static IP or DHCP.

Installation

This project was intendet to be build and flashed with Platformio. When you have it installed you can run platformio run to get all dependencies and platformio run -t upload to compile&uploda to your Arduino

Exposed metrics

arduino_temperature{sensor="ds18b20",mac="de:ad:be:ef:fe:ed"} 27.44