Update powerwall.sh
This commit is contained in:
12
powerwall.sh
12
powerwall.sh
@@ -554,7 +554,17 @@ CHECKPOWER(){
|
|||||||
[[ "${OUTPUTW}" == *"."* ]] && [[ "${OUTPUTW}" != *".0"* ]] && OUTPUTW=`printf "%'.2f\n" ${OUTPUTW}` || OUTPUTW=`printf "%'.0f\n" ${OUTPUTW}`
|
[[ "${OUTPUTW}" == *"."* ]] && [[ "${OUTPUTW}" != *".0"* ]] && OUTPUTW=`printf "%'.2f\n" ${OUTPUTW}` || OUTPUTW=`printf "%'.0f\n" ${OUTPUTW}`
|
||||||
BATTV=`echo ${INVSTATSINFO} | jq '.inputs .battV'`
|
BATTV=`echo ${INVSTATSINFO} | jq '.inputs .battV'`
|
||||||
BATTA=`echo ${INVSTATSINFO} | jq '.inputs .xfA'`
|
BATTA=`echo ${INVSTATSINFO} | jq '.inputs .xfA'`
|
||||||
[[ "${BATTA}" == *"-"* ]] && BATTA_disp="${idsCL[Green]}${BATTA}'amps - Charging" || BATTA_disp="${idsCL[LightRed]}${BATTA}'amps - Discharging"
|
if (( $(bc <<<"${BATTV} > 54.8") )); then
|
||||||
|
if (( $(bc <<<"${BATTV} > 58") )); then
|
||||||
|
BATTA_disp="${idsCL[Green]}${BATTA}'amps - Bulk Charging"
|
||||||
|
else
|
||||||
|
BATTA_disp="${idsCL[Green]}${BATTA}'amps - Float Charging"
|
||||||
|
fi
|
||||||
|
elif [ "${BATTA}" == "-0.1"]; then
|
||||||
|
BATTA_disp="${idsCL[LightRed]}${BATTA}'amps - Standby"
|
||||||
|
else
|
||||||
|
BATTA_disp="${idsCL[LightRed]}${BATTA}'amps - Discharging"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "${idsCL[White]}Inverter Input Volts ${idsCL[Default]}: ${idsCL[Green]}${INPUTV}'volts"
|
echo -e "${idsCL[White]}Inverter Input Volts ${idsCL[Default]}: ${idsCL[Green]}${INPUTV}'volts"
|
||||||
|
|||||||
Reference in New Issue
Block a user