To control an externally attached Raspberry Pi fan
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Scripts to control an externally attached fan to the Raspberry Pi 3.

Tutorials referred

How to use is the script that monitors the temperature and switches the fan on or off as required. is a script used to start and put it in the background.


monit can be used to monitor and restart it in case of failure. Example config:

check program pifan path "/home/pi/scripts/ status"
  start program = "/home/pi/scripts/ start"
  stop program = "/home/pi/scripts/ stop"
  if status == 1 then restart

See also for some implementation decisions.