Update powerwall.sh
This commit is contained in:
@@ -315,7 +315,7 @@ CHECKTEMP_SERVICE(){
|
|||||||
|
|
||||||
|
|
||||||
if [ $(bc -l <<< "${temp_f} < ${temp_warn}") -eq 1 ]; then
|
if [ $(bc -l <<< "${temp_f} < ${temp_warn}") -eq 1 ]; then
|
||||||
if [ $(bc -l <<< "1 < ${last_temp[${SENSOR}]}") -eq 1 ]; then
|
if (( $(bc <<< "${last_temp[${SENSOR}]} > 1") )); then
|
||||||
SENDNOTICE "${SENSOR} BACK TO NORMAL" "NORMAL TEMP: ${temp_f}${GAUGESH}
|
SENDNOTICE "${SENSOR} BACK TO NORMAL" "NORMAL TEMP: ${temp_f}${GAUGESH}
|
||||||
Previous Temp: ${last_temp[${SENSOR}]}${GAUGESH}"
|
Previous Temp: ${last_temp[${SENSOR}]}${GAUGESH}"
|
||||||
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}${GAUGESH} - Back to NORMAL ${GAUGE} - Previous ${GAUGE}: ${last_temp[${SENSOR}]}${GAUGESH}" >> ${logtemp}
|
echo -e "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}${GAUGESH} - Back to NORMAL ${GAUGE} - Previous ${GAUGE}: ${last_temp[${SENSOR}]}${GAUGESH}" >> ${logtemp}
|
||||||
@@ -2326,6 +2326,7 @@ fi
|
|||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ "${3}" = "start" ] || [ "${3}" = "" ]; then
|
if [ "${3}" = "start" ] || [ "${3}" = "" ]; then
|
||||||
|
echo "start: ${1}"
|
||||||
if [ "${2}" = "temp" ]; then
|
if [ "${2}" = "temp" ]; then
|
||||||
# SENDNOTICE "Temp Monitor Startup" "$(DAILYTEMP)" &
|
# SENDNOTICE "Temp Monitor Startup" "$(DAILYTEMP)" &
|
||||||
CHECKTEMP_SERVICE
|
CHECKTEMP_SERVICE
|
||||||
|
|||||||
Reference in New Issue
Block a user