Small IOT setup using ESP32 to control the fans in my homelab rack.
You can find here the most important scripts and files to recreate the project in you own homelab.
This is the directory structure I created to run the software stack:
tree .
.
├── docker-compose.yml
├── grafana
│ └── data
├── influxdb
│ ├── config
│ └── data
├── mosquitto
│ ├── config
│ ├── data
│ └── log
└── nodered
└── dataPlace the mosquitto.conf file in ~/mosquitto/config
The Nodered config, you can just copy and paste it in Node-Red, using the Import option and then clicking on deploy.
Keep in mind this is still a very basic setup. There's a lot of room to improve.