Update powerwall.sh

This commit is contained in:
2023-11-06 20:36:29 -06:00
parent 92ffc1e471
commit a39e6ab368

View File

@@ -522,8 +522,9 @@ CHECKPOWER(){
rm -f ${PW_TMPFOLDER}/*.hostpower* rm -f ${PW_TMPFOLDER}/*.hostpower*
if [ "${1}" == "" ] || [ "${1}" == "sensors" ]; then if [ "${1}" == "" ] || [ "${1}" == "sensors" ]; then
echo
DIVIDER . yellow 75 DIVIDER . yellow 75
echo -e "\n${idsCL[Yellow]}Mainsite Power Information" echo -e "${idsCL[Yellow]}Mainsite Power Information"
DIVIDER . yellow 75 DIVIDER . yellow 75
INVSTATSINFO=$(curl -s "http://${PW_INVERTER_IP}/stats.json") INVSTATSINFO=$(curl -s "http://${PW_INVERTER_IP}/stats.json")
@@ -593,7 +594,11 @@ CHECKPOWER(){
echo -e "${idsCL[LightCyan]}Total Wattage ${idsCL[Default]}: ${idsCL[Green]}${SVRRM_WATT_disp}'watts${idsCL[Default]}" echo -e "${idsCL[LightCyan]}Total Wattage ${idsCL[Default]}: ${idsCL[Green]}${SVRRM_WATT_disp}'watts${idsCL[Default]}"
echo echo
######## fi
if [ "${1}" == "" ] || [ "${1}" == "offsite" ]; then
DIVIDER . yellow 75 DIVIDER . yellow 75
echo -e "${idsCL[Yellow]}Offsite Power Information" echo -e "${idsCL[Yellow]}Offsite Power Information"
@@ -636,8 +641,6 @@ CHECKPOWER(){
fi fi
########
if [ "${1}" == "" ] || [ "${1}" == "hosts" ]; then if [ "${1}" == "" ] || [ "${1}" == "hosts" ]; then
DIVIDER . yellow 75 DIVIDER . yellow 75
echo -e "${idsCL[Yellow]}ESXi Host Power Information" echo -e "${idsCL[Yellow]}ESXi Host Power Information"