Detect UPiS UPS status from Raspberry Pi running RasPlex
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Detect UPiS UPS power status from Raspberry Pi running RasPlex

Simply copy the upis directory to the /storage directory in RasPlex. This will survive across updates.

Then add the following to /storage/.config/

(PYTHONPATH=/storage/upis/lib /storage/upis/;) &


  1. Includes PySerial, Copyright (C) 2001-2013 Chris Liechti <cliechti(at)>, released under the Python license. As RasPlex doesn't have the ability to compile Python libries at run-time, the library is included statically in /lib, and can be run from source.
  2. The script can be used for manually charging the UPiS if your power draw is too high to prevent charging during runtime. The script shuts down the Raspberry Pi but leaves the UPiS running. You can power cycle to return to normal.