Update temp.inc.sh

This commit is contained in:
2023-12-26 20:42:18 -06:00
parent 6a27352462
commit 9765f27b2d

View File

@@ -559,7 +559,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){
elif [ $(bc -l <<< "${temp_f} >= ${temp_crit_sys}") -eq 1 ]; then
[ "${SENSORa}" == "Powerwall-CPU-Usage" ] && echo 2b3
if (( $(bc <<< "${temp_diff} > 1") )) || (( $(bc <<< "${temp_diff} = 1") )); then
if (( $(bc <<< "${temp_diff} >= 1") )); then
SENDNOTICE "${SENSOR} TEMP CRITICAL" "SYSTEM CRITICAL ${GAUGE}: ${temp_f}${GAUGESH} - (Difference of ${temp_diff}')" 1
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}${GAUGESH} - SYSTEM CRITICAL - (Difference of ${temp_diff})" >> ${logtemp}
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${temp_f}${GAUGESH} - ${SENSOR} - CRITICAL ${GAUGE} SYSTEM - (Difference of ${temp_diff}')" >> ${PW_LOGFILE}