Skip to content

spritrl/rpi-fan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RPI-FAN

Fan automation on RPi with GPIO

Installation

1. Before :

sudo apt-get update && sudo apt-get -y upgrade

2. Package :

Note : in /home/pi/ if you want to run the script in the background

git clone https://github.com/spritrl/rpi-fan/

3. To run the script in the background :

  • Execute :
sudo nano /etc/init.d/rpi-fan
  • Past :
#! /bin/sh
### BEGIN INIT INFO

# Provides: rpi-fan
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: S
# Default-Stop: 
# Short-Description: RPI-FAN
# Description: Fan automation on RPi with GPIO

### END INIT INFO
sudo python /home/pi/rpi-fan/rpi-fan.py &
  • Do :
sudo chmod +x /etc/init.d/rpi-fan
  • And :
sudo update-rc.d rpi-fan defaults

Reboot and Enjoy

About

Fan automation on RPi with GPIO

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages