Update power.inc.sh

This commit is contained in:
2025-05-31 11:26:47 -05:00
parent fdf8ada639
commit 5f671c4bad

View File

@@ -96,6 +96,8 @@ CHECKPOWER(){
[ "${avgdays}" != "" ] && echo -e " --${idsCL[LightYellow]}${avgdays_disp}-Averages---" || echo [ "${avgdays}" != "" ] && echo -e " --${idsCL[LightYellow]}${avgdays_disp}-Averages---" || echo
DIVIDER . yellow ${PRI_WIDTH} DIVIDER . yellow ${PRI_WIDTH}
if [[ "${IP}" != "10.6.1"* ]]; then
[ ${REPORT} -eq 0 ] && echo -en "${idsCL[Yellow]}Pulling data from 'Powerwall' ... " [ ${REPORT} -eq 0 ] && echo -en "${idsCL[Yellow]}Pulling data from 'Powerwall' ... "
INVSTATSINFO=$(curl -m 3 -s "http://${PW_INVERTER_IP}/stats.json") INVSTATSINFO=$(curl -m 3 -s "http://${PW_INVERTER_IP}/stats.json")
@@ -299,11 +301,18 @@ CHECKPOWER(){
DIVIDER . lightCyan ${PRI_WIDTH} DIVIDER . lightCyan ${PRI_WIDTH}
fi fi
else
fi
[ ${REPORT} -eq 0 ] && echo -e "${idsCL[Default]}" [ ${REPORT} -eq 0 ] && echo -e "${idsCL[Default]}"
fi fi
if ([ "${STYPE}" = "" ] || [ "${STYPE}" = "offsite" ]) && [ "${PTYPE}" != "esxi" ]; then if ([ "${STYPE}" = "" ] || [ "${STYPE}" = "offsite" ]) && [ "${PTYPE}" != "esxi" ] && [ "${IP}" != "10.6.1"* ]]; then
DIVIDER . yellow ${PRI_WIDTH} DIVIDER . yellow ${PRI_WIDTH}
echo -en "${idsCL[Yellow]}Offsite Power Information" echo -en "${idsCL[Yellow]}Offsite Power Information"
@@ -420,7 +429,7 @@ CHECKPOWER(){
fi fi
########## KYLE ############# ########## KYLE #############
if ([ "${STYPE}" = "" ] || [ "${STYPE}" = "kyle" ]) && [ "${PTYPE}" != "esxi" ]; then if ([ "${STYPE}" = "" ] || [ "${STYPE}" = "kyle" ]) && [ "${PTYPE}" != "esxi" ] && [ "${IP}" != "10.6.1"* ]]; then
echo echo
DIVIDER . yellow ${PRI_WIDTH} DIVIDER . yellow ${PRI_WIDTH}
echo -en "${idsCL[Yellow]}Kyle's Power Information" echo -en "${idsCL[Yellow]}Kyle's Power Information"