Rapsberry Pi PWM fan controller based on gpiozero
It's very simple software though and is easily removable so you could try and see for yourself.
Run the install script with root privileges: sudo sh install.sh. This will:
- install the program at
/opt/pifanctl - create a Python virtual environement at
/opt/pifanctl/.venv - create and copy a systemd service to
/etc/systemd/system/pifan.service
The service can then be managed via systemd: sudo systemctl start pifan.service
# Stop, disable and remove the the systemd service
sudo systemctl stop pifan.service
sudo systemctl disable pifan.service
sudo rm /etc/systemd/system/pifan.service
# Remove the program files
sudo rm -rf /opt/pifanctl- proper dependencies documentation
- more built-in profiles
- custom profiles (config file?)
- consolidate install script
- pin selection
- proper CLI to control the fan
- logging / prometheus export
When upgrading to Debian 13 from Debian 12, the service failed to start because the gpiozero dependency was not found anymore.
My guess is that a Python version change must have broken the virtual environment.
I had to rm /opt/pifanctl and reinstall sudo sh install.sh to fix the issue.