Raspberry Pi fan controller daemon
Start fan when CPU temperature is high and stop it when CPU temperature is low.
To install dependencies do this:
sudo apt install gpiod libgpiod-dev
To download the latest source do this:
git clone https://github.com/mrabine/pifan.git
To configure pifan do this:
cd pifan
mkdir build && cd build
cmake ..
To install pifan do this:
make && sudo make install
To enable pifan do this:
sudo systemctl enable pifan
sudo systemctl start pifan
pifan [options]
-c
print the cpu temperature
-h
show available options
-i interval
sleep interval (default: 2 seconds)
-l threshold
lower threshold (default: 60°C)
-n
don't fork into background
-p pin
gpio pin (default: 14)
-u threshold
upper threshold (default: 70°C)
-v
print version