Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.74 KB

README.md

File metadata and controls

48 lines (30 loc) · 1.74 KB

ESP32 SmartMeter

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.

Installation

  1. Install the ESP-IDF

  2. Clone this repository:

    git clone [email protected]:christian-heusel/esp32-smartMeter.git
    cd esp32-smartMeter
  3. activate esp-idf in current terminal session

    . $HOME/esp/v5.2.1/esp-idf/export.sh
  4. Configure the project

    idf.py menuconfig

    And especially insert sensible values into the MQTT & Wi-Fi Configuration

  5. Build it & flash it

    idf.py build
    idf.py flash

Visualization

Import the grafana dashboard in contrib/grafana-dashboard.json

image

License & Acknowledgements

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.