Browse Source

#707 on battery UPS info

v1.3
Christian Rotzoll 5 years ago
parent
commit
b1838d420f
  1. 2
      home.admin/config.scripts/blitz.ups.sh

2
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

Loading…
Cancel
Save