From ea16882fb0009759b72c3e82870804cc04e79ff7 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 16 Mar 2024 15:35:43 -0500 Subject: [PATCH] update --- defaults.inc | 2 +- inc/temp.inc.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults.inc b/defaults.inc index 407e32bd..87cbb515 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERS='2.6.66-03162024' +VERS='2.6.67-03162024' noheader=' update service dailytemp confsync -r -report ' diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index b0b7d68f..47abaf13 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -670,7 +670,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ last_temp=$(cat ${PW_TMPFOLDER}/.lasttemp/${SENSOR}) logtemp=${PW_LOGFOLDER}/log-temp-${SENSOR} - if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ]; then + if [ "${temp_c}" != "null" ] && [ "${temp_c}" != "" ] && [ "${temp_h}" != "0" ]; then if [ -f ${PW_TMPFOLDER}/${SENSOR}-error.sent ] || [ -f ${PW_TMPFOLDER}/${SENSOR}.down ]; then @@ -678,6 +678,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ SENDNOTICE "${SENSOR} Data" "${SENSOR} is reporting data again" echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${SENSOR} - Sensor is reporting data again" >> ${logtemp} fi + rm -f ${PW_TMPFOLDER}/${SENSOR}* fi if [ "${SENSORa}" == "iDS-vMS-Host6" ] && [ ! -f ${PW_TMPFOLDER}/.lastfancheck/iDS-vMS-Host6.set ]; then [ -f ${PW_TMPFOLDER}/.lastfancheck/iDS-vMS-Host7.set ] && nfs=$(cat ${PW_TMPFOLDER}/.lastfancheck/iDS-vMS-Host7.set) || nfs=35 @@ -927,7 +928,6 @@ Previous Temp: ${last_temp}${GAUGESH}" fi if [ "${QRY}" != "" ]; then ${mysql_conn} -e "${QRY}" - rm -f ${PW_TMPFOLDER}/${SENSOR}* echo "${temp_f}" >| ${PW_TMPFOLDER}/.lastinsert/${SENSOR} fi # if [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "lacrosse" ]; then