This project reads out the meter values of an ISKRA MT681 via an IR reader. It then takes these values and sends them as payload to a MQTT-Broker, where they get converted to a prometheus metric via kpetremann/mqtt-exporter
and then read into prometheus.
-
Install the ESP-IDF
-
Clone this repository:
git clone git@github.com:christian-heusel/esp32-smartMeter.git cd esp32-smartMeter
-
activate esp-idf in current terminal session
. $HOME/esp/v5.2.1/esp-idf/export.sh
-
Configure the project
idf.py menuconfig
And especially insert sensible values into the MQTT & Wi-Fi Configuration
-
Build it & flash it
idf.py build idf.py flash
Import the grafana dashboard in contrib/grafana-dashboard.json
The contents of this repository are heavily based on the great examples in the ESP IDF: https://github.com/espressif/esp-idf/tree/master/examples
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.