GPIO OUTPUT 21
On Off controll
( When hit 65°c temperature => Fan ON if(Fan OFF))
( When hit 50°c temperature => Fan OFF if(Fan ON))\
- cd $HOME && git clone https://github.com/TadasBruzas91/rpi-cooler-script.git && cd rpi-cooler-script && bash ./install-cooler-service.sh
-
sudo apt install swig python3 python3-pip python-dev python3-dev
-
sudo apt install python-setuptools python3-setuptools
-
sudo apt install wget
-
sudo apt install unzip
-
unzip master.zip
-
cd lg-master
-
sudo apt install make
-
sudo apt install gcc
-
make
-
sudo make install
-
cd ..
-
sudo rm -rf master.zip && sudo rm -rf lg-master
-
sudo apt install git
-
git clone https://github.com/TadasBruzas91/rpi-cooler-script.git
-
cd rpi-cooler-script
-
sudo apt-get install -y systemd
-
sudo mkdir ~/services && sudo mv cooler.py ~/services
-
sudo mv cooler.service /etc/systemd/system
-
sudo systemctl daemon-reload
-
sudo systemctl enable cooler.service
-
sudo systemctl start cooler.service
-
sudo systemctl status cooler.service
<-------------systemctl status output--------------------->
cooler.service - Fan controller Loaded: loaded (/etc/systemd/system/cooler.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2021-05-30 08:23:45 UTC; 1 weeks 2 days ago Main PID: 1927 (python3) Tasks: 4 (limit: 4435) CGroup: /system.slice/cooler.service └─1927 /usr/bin/python3 /home/documents/script/cooler.py
May 30 08:23:45 ubuntu systemd[1]: Started Fan controller.
<--------------------------------------------------------->