/SmartFan-rpi

Command line, python library and Node-Red node for Smart Fan

Primary LanguageCMIT LicenseMIT

SmartFan-rpi

SmartFan-rpi

Command line, python library and Node-Red node for Smart Fan

Smart Fan

Setup

Enable Raspberry Pi I2C communication:

~$ sudo raspi-config

Browse Interfacing Options >> I2C and select Yes

Install gpiod:

~$ sudo apt install libgpiod-dev

Usage

~$ git clone https://github.com/SequentMicrosystems/SmartFan-rpi.git
~$ cd SmartFan-rpi/
~/SmartFan-rpi$ sudo make install

Now you can access all the functions of the relays board through the command "fan". Use -h option for help:

~$ fan -h

If you clone the repository any update can be made with the following commands:

~$ cd SmartFan-rpi/  
~/SmartFan-rpi$ git pull
~/SmartFan-rpi$ sudo make install