Prom117 is an Prometheus exporter for the Texas Instrument's TMP117 digital temperature sensor
The software is written for the NodeMCUv2 based on a ESP12-E Espressif Microcontroler
Hardware Used :
Software Used :
- PlatformIO CLI
- SparkFun_TMP117 library
- ESPAsyncWebServer library
- Prometheus TSDB
Exported Metrics: https://github.com/MoEmanon/Prom117/blob/master/pictures/exporter.png
Schematic: https://github.com/MoEmanon/Prom117/blob/master/pictures/Sparkfun_TMP117_ESP12-E.png
First Install PlatformIO and git on your platformPlatformIO will take care of all the dependency for you
Debian/Ubuntu
$ sudo apt install git
$ git clone https://github.com/EmanonUser/Prom117.git
$ cd Prom117/Modify you WiFi logins in Prom117/lib/Secret/Secret.h
$ vim lib/Secret/Secret.hIf you use VScode download the PlatformIO extension, from there you will be able to compile the sketch and flash it on the NodeMCU
Or you can do it in cli
$ platformio run -e my_nodemcuv2 --target uploadDone !
Access the metrics : http://NodeMCU_IP:9100/metrics
Monitor the serial output on your pc
$ platformio device monitor