Ventilatore is an automatic bathroom fan controller built using the NodeMCU.
Ventilatore is an automatic bathroom fan controller built using the NodeMCU.
The air humidity inside and outside the bathroom is measured using two
Bosch BME280 sensors.
If the humidity difference (inside minus outside) raises above a given threshold, the fan gets started through a
relay. The fan is kept running until the humidity difference drops to an acceptable value.
If connected to a WiFi network, a web interface is exposed with live measurements and configuration options.
Besides the web page, a Prometheus metrics endpoint is exposed.
These metrics can be then be visualized on Grafana dashboards:
Grafana dashboard configuration
The project can be built using PlatformIO. Nothing else needs to be installed, all
required libraries are linked to the project as git submodules.
Steps to download, build and upload:
git clone https://github.com/mlesniew/ventilatore.git
cd ventilatore
git submodule init
git submodule update
pio run
pio run --target=upload
pio run --target=uploadfs