Skip to content

mrabine/pifan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pifan

Security Status Codacy Badge GitHub Releases GitHub License

Raspberry Pi fan controller daemon

Start fan when CPU temperature is high and stop it when CPU temperature is low.

Dependencies

To install dependencies do this:

sudo apt install gpiod libgpiod-dev

Download

To download the latest source do this:

git clone https://github.com/mrabine/pifan.git

Configuration

To configure pifan do this:

cd pifan
mkdir build && cd build
cmake ..

Installation

To install pifan do this:

make && sudo make install

Enabling

To enable pifan do this:

sudo systemctl enable pifan
sudo systemctl start pifan

Usage

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

License

MIT