Update powerwall.sh

This commit is contained in:
2023-11-04 09:31:15 -05:00
parent 3f039bb2b3
commit 39e2a2f098

View File

@@ -545,10 +545,6 @@ check_GETHOSTPOWER(){
CHECKPOWER(){
start=`date +%s`
rm -f ${PW_TMPFOLDER}/*.hostpower*
echo
DIVIDER . yellow 75
echo -e "${idsCL[Yellow]}Mainsite Power Information"
DIVIDER . yellow 75
if [ "${1}" == "" ] || [ "${1}" == "hosts" ]; then
for SENSOR in ${PW_SENSOR_ORD[@]}; do
@@ -560,6 +556,10 @@ CHECKPOWER(){
fi
if [ "${1}" == "" ] || [ "${1}" == "sensors" ]; then
DIVIDER . yellow 75
echo -e "\n${idsCL[Yellow]}Mainsite Power Information"
DIVIDER . yellow 75
if [ "$(CHECK_HOST ${PW_INVERTER_IP})" != "false" ]; then
INVSTATSINFO=$(curl -s "http://${PW_INVERTER_IP}/stats.json")
INPUTV=`echo ${INVSTATSINFO} | jq '.inputs .inV'`