Skip to content

Switch on or off the fan connected to the RaspberryPi depending of the temperature.

License

Notifications You must be signed in to change notification settings

olivierbenard/raspberrypi-fan-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

raspberrypi-fan-controller

Switch on or off the fan connected to the RaspberryPi depending of the temperature.

Fan controller code

Move the script fancontroller.py to /usr/local/bin/

sudo mv fancontroller.py /usr/local/bin/

Then, make the script executable

sudo chmod +x /usr/local/bin/fancontroller.py

Execute the fan controller code on boot

Move the script fancontroller.sh to /etc/init.d

sudo mv fancontroller.sh /etc/init.d/

Then, make the script executable

sudo chmod +x /etc/init.d/fancontroller.sh

Now, register the script to run on boot

sudo update-rc.d fancontroller.sh defaults

Finally, restart the machine or kick off manually:

sudo reboot

or

sudo /etc/init.d/fancontroller.sh start

About

Switch on or off the fan connected to the RaspberryPi depending of the temperature.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published