Alexander89 / water-your-plant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🪴 Plant water sensor

This project is configured for an ESP32Dev board and a capacitive water sensor.

The water sensor is mostly in deep sleep. He awakes once every 10 min and stays awake until Prometheus queries its state.

Use PlatformIO to build and deploy

📡 WLAN settings

src/wlan.h set your local credentials here.

🕸️ IP

The IP is published via the Serial port, or check your DHCP server 🤯

🌐 WebUi

The esp32 is configured to publish a webUI on port 80.

Here you can discover the current state and the Prometheus metrics data.

🐧 LINUX build fix

  1. Open .pio/libdeps/esp32dev/esp32_https_server/src/HTTPConnection.hpp
  2. Find #include <hwcrypto/sha.h>
  3. Replace it with #include <sha/sha_parallel_engine.h>

Or git apply http-connection.patch

▶️ Run Prometheus

docker run -it -u $UID -v $(pwd)/prometheus/data:/prometheus -v $(pwd)/prometheus/config:/etc/prometheus --network=host prom/prometheus

About


Languages

Language:C++ 82.5%Language:C 17.5%