This commit is contained in:
2024-03-10 21:57:07 -05:00
parent 92806f4b2e
commit f0480665a2
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='2.6.58-03092024'
VERS='2.6.60-03102024'
noheader=' update service dailytemp confsync -r -report '

View File

@@ -571,13 +571,13 @@ CHECKPOWER_SERVICE(){
elif [ -f ${PW_TMPFOLDER}/power.ups.low ]; then
rm -f ${PW_TMPFOLDER}/power.ups.low
fi
echo 1
if [ "${INVSTATSINFO}" != "" ] || [ ${TESTMODE} -eq 1 ]; then
[ "${TEST_INPUTACV}" != "" ] && INPUTACV=${TEST_INPUTACV} || INPUTACV=$(echo ${INVSTATSINFO} | jq '.inputs .inV')
[ "${TEST_BATTVOLT}" != "" ] && BATTVOLT=${TEST_BATTVOLT} || BATTVOLT=$(echo ${INVSTATSINFO} | jq '.inputs .battV')
BATTA=`echo ${INVSTATSINFO} | jq '.inputs .xfA'`
BATTLIFE=`echo "scale=2; (${BATTVOLT}*100)/${BATT_FULL}" | bc`
echo "${BATTA} - ${BATTLIFE}"
if (( $(bc <<<"${BATTVOLT} >= ${FLOAT_CHARGE}") )); then
if (( $(bc <<<"${BATTVOLT} >= ${BULK_CHARGE}") )); then
BATTA_disp="`IDS_NUMBER_FORMAT ${BATTA}`'amps - Bulk Charging"
@@ -589,7 +589,7 @@ CHECKPOWER_SERVICE(){
else
BATTA_disp="`IDS_NUMBER_FORMAT ${BATTA}`'amps - Discharging"
fi
echo 3
if [ ${TESTMODE} -eq 1 ] && [ ! -f ${PW_TMPFOLDER}/power.testmode.enabled ]; then
touch ${PW_TMPFOLDER}/power.testmode.enabled
SENDNOTICE "TEST MODE" "***TEST MODE*** ENABLED!"