Update powerwall.sh

This commit is contained in:
2024-01-28 20:31:32 -06:00
parent 2f692a5faf
commit 428974c46a

View File

@@ -859,7 +859,7 @@ fi
fi
else
if [ "${3}" == "start" ] || [ "${3}" == "" ]; then
echo "start: ${1}"
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - '${PW_POWERWALL_SERVICES[${2}]}' Service Starting" >> ${PW_LOGFILE}
if [ "${2}" == "temp" ]; then
# SENDNOTICE "Temp Monitor Startup" "$(DAILYTEMP)" &
CHECKTEMP_SERVICE
@@ -882,6 +882,7 @@ fi
elif [ "${2}" == "power" ]; then
STOP_SERVICE power
echo "(`date +'%Y-%m-%d %H:%M:%S'`) Service Stopped" >> ${PW_LOGPOWER}
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - '${PW_POWERWALL_SERVICES[power]}' Service Starting" >> ${PW_LOGFILE}
elif [ "${2}" == "powerlogger" ]; then
STOP_SERVICE powerlogger
@@ -889,6 +890,7 @@ fi
fi
elif [ "${3}" == "restart" ]; then
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - '${PW_POWERWALL_SERVICES[${2}]}' Service Restarting" >> ${PW_LOGFILE}
echo
SERVICE_MNG ${2} stop
echo -en "${idsCL[Yellow]}Pausing${idsCL[Default]}"