mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-10-09 20:32:52 +02:00
#707 on battery UPS info
This commit is contained in:
@@ -77,7 +77,7 @@ if [ "$1" = "status" ]; then
|
|||||||
echo "upsStatus='n/a'"
|
echo "upsStatus='n/a'"
|
||||||
else
|
else
|
||||||
# get battery level if possible
|
# 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)
|
status=$(apcaccess -p BCHARGE | xargs | cut -d "." -f1)
|
||||||
echo "upsStatus='${status}%'"
|
echo "upsStatus='${status}%'"
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user