Toolset for interaction with the Raspberry-PI UPS "UPS Plus" by 52PI. More details in the official wiki.
-
Enable I2C on the RPi
sudo raspi-config > 3 Interface Options > I5 I2C > Yes
-
Install necessary dependencies:
sudo apt-get update sudo apt-get install git i2c-tools pip3 install smbus smbus2
-
Clone this repository:
git clone https://github.com/botboe/upsplus-control.git
Disables the shutdown-functionality to test and debug the behavior
python3 ./upsplus_control.py --<OPTION> --test
python3 ./upsplus_control.py --shutdown