Update powerwall.sh

This commit is contained in:
2023-12-01 09:35:52 -06:00
parent 98545646ef
commit ba35f387c3

View File

@@ -194,6 +194,7 @@ SENDDAILY(){
CHECKTEMP_SERVICE(){
cw=20
declare -A last_temp
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - ---- - ---- - Service Startup" >> ${PW_LOGFILE}
while true; do
# start=`date +%s`
# time="$(date +%H)$(date +%M)"
@@ -359,7 +360,7 @@ Previous Temp: ${last_temp[${SENSOR}]}'F"
# SENDNOTICE "${SENSOR} TEMP NORMAL" "Service Startup
# 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 - ${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.*
elif [ ${relog} -eq 1 ]; then