From 50ab0fd8d10fe3d56679a899902c0bdd805e9b41 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 17 Dec 2023 16:25:08 -0600 Subject: [PATCH] Update power.inc.sh --- inc/power.inc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/power.inc.sh b/inc/power.inc.sh index 86a7e339..d33d5073 100644 --- a/inc/power.inc.sh +++ b/inc/power.inc.sh @@ -327,7 +327,7 @@ CHECKPOWER_SERVICE(){ INVSTATSINFO=$(curl -s "http://${PW_INVERTER_IP}/stats.json") SVRRM_UPS_INPUTACV=$(snmpwalk -t 1 -r 0 -v 1 -c public ${PW_UPS_IP} iso.3.6.1.4.1.850.1.1.3.1.3.2.2.1.3.1.1 | sed 's/.*: //') - + echo ${INVSTATSINFO} | jq '.inputs .inV' if (( $(bc <<<"${SVRRM_UPS_INPUTACV} < ${min_acvolt}") )); then if [ ! -f ${PW_TMPFOLDER}/power.ups.low ]; then touch ${PW_TMPFOLDER}/power.ups.low