Update powerwall.sh

This commit is contained in:
2023-10-31 13:26:16 -05:00
parent 98c8055ed6
commit 948aad5fdb

View File

@@ -614,7 +614,7 @@ CHECKPOWER(){
if [ -f ${hostfile} ] && [ "${hostfile}" != "${PW_TMPFOLDER}/*.hostpower" ]; then
host=${hostfile%.*}; host=${host##*/}
if [ "${host}" != "*" ] && [ "${host}" != "done" ]; then
watts=`printf "%'.3f\n" $(cat ${hostfile})
watts=`printf "%'.3f\n" $(cat ${hostfile})`
if [ "${watts}" == "down" ]; then hostpower="${idsCL[Red]}Host Offline"
elif [ "${watts}" == "0" ]; then hostpower="${idsCL[Default]}n/a"
else hostpower="${idsCL[Green]}${watts}'W"