Update powerwall.sh
This commit is contained in:
@@ -194,6 +194,7 @@ SENDDAILY(){
|
|||||||
CHECKTEMP_SERVICE(){
|
CHECKTEMP_SERVICE(){
|
||||||
cw=20
|
cw=20
|
||||||
declare -A last_temp
|
declare -A last_temp
|
||||||
|
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - ---- - ---- - Service Startup" >> ${PW_LOGFILE}
|
||||||
while true; do
|
while true; do
|
||||||
# start=`date +%s`
|
# start=`date +%s`
|
||||||
# time="$(date +%H)$(date +%M)"
|
# time="$(date +%H)$(date +%M)"
|
||||||
@@ -359,7 +360,7 @@ Previous Temp: ${last_temp[${SENSOR}]}'F"
|
|||||||
# SENDNOTICE "${SENSOR} TEMP NORMAL" "Service Startup
|
# SENDNOTICE "${SENSOR} TEMP NORMAL" "Service Startup
|
||||||
# NORMAL TEMP: ${temp_f}'F"
|
# NORMAL TEMP: ${temp_f}'F"
|
||||||
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}'F - Service Startup - NORMAL TEMP" >> ${logtemp}
|
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}'F - Service Startup - NORMAL TEMP" >> ${logtemp}
|
||||||
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}'F - ${SENSOR} - Service Startup" >> ${PW_LOGFILE}
|
# echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}'F - ${SENSOR} - Service Startup" >> ${PW_LOGFILE}
|
||||||
[ "$(compgen -G "${PW_FOLDER}/shutdown.*")" != "" ] && rm -f ${PW_FOLDER}/shutdown.*
|
[ "$(compgen -G "${PW_FOLDER}/shutdown.*")" != "" ] && rm -f ${PW_FOLDER}/shutdown.*
|
||||||
|
|
||||||
elif [ ${relog} -eq 1 ]; then
|
elif [ ${relog} -eq 1 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user