Skip to content

EmanonUser/Prom117

Repository files navigation

Prom117

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 :

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

Usage

Compile the sketch and flash it using platformio

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.h

If 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 upload

Done !
Access the metrics : http://NodeMCU_IP:9100/metrics

Monitor the serial output on your pc

$ platformio device monitor

About

Exporting Texas instrument TMP117 digital temperature sensor into Prometheus TSDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published