From b1838d420fe14bc46578be31dc8f48c9ea595f9a Mon Sep 17 00:00:00 2001 From: Christian Rotzoll Date: Mon, 5 Aug 2019 22:58:48 +0200 Subject: [PATCH] #707 on battery UPS info --- home.admin/config.scripts/blitz.ups.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home.admin/config.scripts/blitz.ups.sh b/home.admin/config.scripts/blitz.ups.sh index cb96bf9..0659f45 100644 --- a/home.admin/config.scripts/blitz.ups.sh +++ b/home.admin/config.scripts/blitz.ups.sh @@ -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