Raspberry Pi - CPU Temperature Controlled GPIO Fan
cd /opt/
sudo git clone https://github.com/rdeangel/RpiCpuFan RpiCpuFan
cd RpiCpuFan
sudo ./install.sh
sudo systemctl status RpiCpuFan
ps aux | grep RpiCpuFan | grep -v grep
sudo systemctl enable RpiCpuFan.service
or
update-rc.d RpiCpuFan enable
sudo systemctl disable RpiCpuFan.service
or
sudo update-rc.d RpiCpuFan disable
sudo systemctl start RpiCpuFan.service
or
sudo service RpiCpuFan start
or
sudo /etc/init.d/RpiCpuFan start
sudo systemctl stop RpiCpuFan.service
or
sudo service RpiCpuFan stop
or
sudo /etc/init.d/RpiCpuFan stop
sudo /opt/RpiCpuFan/RpiCpuFan.py -v
Optimally tune your Fan experimenting with On and Off Temperature Options and 3 type of message logging
sudo /opt/RpiCpuFan/RpiCpuFan.py --on-temp=55 --off-temp=50 --pin=18 --interval=5 -v --local-log=/var/log/RpiCpuFan.log --syslog=192.168.1.21 -a