mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 06:48:00 +01:00
#707 on battery UPS info
This commit is contained in:
parent
8badb47a44
commit
b1838d420f
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ if [ "$1" = "status" ]; then
|
|||
echo "upsStatus='n/a'"
|
||||
else
|
||||
# get battery level if possible
|
||||
if [ "${status}" = "ONLINE" ] || [ "${status}" = "ONLINE" ]; then
|
||||
if [ "${status}" = "ONLINE" ] || [ "${status}" = "ONBATT" ]; then
|
||||
status=$(apcaccess -p BCHARGE | xargs | cut -d "." -f1)
|
||||
echo "upsStatus='${status}%'"
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue