From a39e6ab3682da8493db5118b6e5e7e4b29227357 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 6 Nov 2023 20:36:29 -0600 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index d03c747e..93e4307f 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -522,8 +522,9 @@ CHECKPOWER(){ rm -f ${PW_TMPFOLDER}/*.hostpower* if [ "${1}" == "" ] || [ "${1}" == "sensors" ]; then + echo DIVIDER . yellow 75 - echo -e "\n${idsCL[Yellow]}Mainsite Power Information" + echo -e "${idsCL[Yellow]}Mainsite Power Information" DIVIDER . yellow 75 INVSTATSINFO=$(curl -s "http://${PW_INVERTER_IP}/stats.json") @@ -593,8 +594,12 @@ CHECKPOWER(){ echo -e "${idsCL[LightCyan]}Total Wattage ${idsCL[Default]}: ${idsCL[Green]}${SVRRM_WATT_disp}'watts${idsCL[Default]}" echo - ######## + fi + + if [ "${1}" == "" ] || [ "${1}" == "offsite" ]; then + + DIVIDER . yellow 75 echo -e "${idsCL[Yellow]}Offsite Power Information" DIVIDER . yellow 75 @@ -635,9 +640,7 @@ CHECKPOWER(){ echo fi - - ######## - + if [ "${1}" == "" ] || [ "${1}" == "hosts" ]; then DIVIDER . yellow 75 echo -e "${idsCL[Yellow]}ESXi Host Power Information"