Update powerwall.sh
This commit is contained in:
@@ -874,6 +874,7 @@ fi
|
||||
elif [ "${3}" == "stop" ]; then
|
||||
if [ "${2}" == "temp" ]; then
|
||||
STOP_SERVICE temp
|
||||
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - '${PW_POWERWALL_SERVICES[temp]}' Service Stopped" >> ${PW_LOGFILE}
|
||||
for SENSOR in ${!PW_SENSOR_ID[@]}; do
|
||||
logtemp=${PW_LOGFOLDER}/log-temp-${SENSOR}
|
||||
echo "(`date +'%Y-%m-%d %H:%M:%S'`) - ${SENSOR} - Service Stopped" >> ${logtemp}
|
||||
@@ -882,7 +883,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}
|
||||
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - '${PW_POWERWALL_SERVICES[power]}' Service Stopped" >> ${PW_LOGFILE}
|
||||
|
||||
elif [ "${2}" == "powerlogger" ]; then
|
||||
STOP_SERVICE powerlogger
|
||||
|
||||
Reference in New Issue
Block a user