Skip to content

Toolset for interaction with the Raspberry-PI UPS "UPS Plus" by 52PI

License

Notifications You must be signed in to change notification settings

botboe/upsplus-control

Repository files navigation

upsplus-control

Toolset for interaction with the Raspberry-PI UPS "UPS Plus" by 52PI. More details in the official wiki.

Prerequisites

  • 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
    

Usage

Dryrun

Disables the shutdown-functionality to test and debug the behavior

python3 ./upsplus_control.py --<OPTION> --test

Shutdown OS followed by UPS

python3 ./upsplus_control.py --shutdown

About

Toolset for interaction with the Raspberry-PI UPS "UPS Plus" by 52PI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages