Skip to content

Latest commit

 

History

History
73 lines (55 loc) · 1.66 KB

README.md

File metadata and controls

73 lines (55 loc) · 1.66 KB

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