Update powerwall.sh

This commit is contained in:
2025-07-12 11:03:53 -05:00
parent 09e6d2462d
commit 489bfdb004

View File

@@ -862,7 +862,13 @@ DOWNLIST(){
fi
[ ${is} -lt 10 ] && ignsel=" ${is}) " || ignsel="${is}) "
[ -f ${PW_TMPFOLDER}/${ditem}.shutdown ] && dstatus="SHUTDOWN" || [ -f ${PW_TMPFOLDER}/${ditem}.disable ] && dstatus="OFF" || dstatus="${idsCL[Green]}ON"
if [ -f ${PW_TMPFOLDER}/${ditem}.shutdown ]; then
dstatus="SHUTDOWN"
elif [ -f ${PW_TMPFOLDER}/${ditem}.disable ]; then
dstatus="OFF"
else
dstatus="${idsCL[Green]}ON"
fi
c=0; spc3=''; until [ $c = `expr 26 - ${#time}` ]; do spc3="${spc3} "; ((c++)); done
echo -e "\033[K${idsCL[LightRed]}${idsST[Bold]}${ignsel}${idsST[Reset]}${idsCL[LightRed]}${itemtype}${spca}${itemname}${spc}${itemaddr}${spc2}${time}${spc3}${dstatus}${idsCL[Default]}"
fi