Update powerwall.sh

This commit is contained in:
2023-10-31 14:17:56 -05:00
parent 3aed70d436
commit 627f91798e

View File

@@ -531,17 +531,18 @@ check_GETHOSTPOWER(){
CHECKPOWER(){
start=`date +%s`
for SENSOR in ${PW_SENSOR_ORD[@]}; do
if [ "${PW_HOST_IDRACS[${SENSOR}]}" != "" ]; then
GETHOSTPOWER ${PW_HOST_IDRACS[${SENSOR}]} &
fi
done
check_GETHOSTPOWER &
echo -e "\n${idsCL[Yellow]}Power Information"
DIVIDER . yellow 75
if [ "${1}" == "" ] || [ "${1}" == "sensors" ]; then
for SENSOR in ${PW_SENSOR_ORD[@]}; do
if [ "${PW_HOST_IDRACS[${SENSOR}]}" != "" ]; then
GETHOSTPOWER ${PW_HOST_IDRACS[${SENSOR}]} &
fi
done
check_GETHOSTPOWER &
if [ "$(CHECK_HOST inv1.scity.us)" != "false" ]; then
INVSTATSINFO=$(curl -s "https://inv1.scity.us/stats.json")
INPUTV=`echo ${INVSTATSINFO} | jq '.inputs .inV'`