ESP32 node monitor

ESP32 Node monitor
People listning to the Dutch “Satoshi Radio” podcast, understand why I call this projects also the “NodeUitGans”, referring to the famous “fapgans”.
This project is about monitoring your bitcoin lightning node with an EPS32S developer module.
The ESP32 connects to your home network via on-board WiFi and monitors your node via port 8080 (REST). The color of the LED’s reflects the status of your node.


P2SW (pay to switch) - in progress
You can flash Sonoff switches with Tasmota software. In this project I’m going to explore if I can make a Sonoff S26 switch that you can operate by making a lightning payment.
Each flashed Sonoff switch can be configured via the browser. In the web page of the P2SW switch I want to add possibilities like the more you pay, the longer the switch is on (your kids will hate me for this if they have to pay for watching TV with their own LNBits wallet);
The switch can also make people aware of their energy consumption by paying a small amount of Sats for their lighting, or maybe you can install an automatic valve in the hot water line to your bath, to pay for long showers.

Coffee DCA - not yet started
The idea is to keep track of the number of times you use the espresso machine. After making 100 cups of coffee, a DCA request (software Jorijn) is activated to buy bitcoin.
Roughly, the idea is to flash a Sonoff S26. The Tasmota software is probably suitable for this. I’m going to add a simple power consumption measurement in order to detect that the coffee machine is in use. A crontab job will ask the Sonoff via wifi if the coffee machine is on and increase the coffee cup counter. After 100 cups, the DCA job is activated.
