This commit is contained in:
2024-03-16 15:35:43 -05:00
parent 9dbc2e0ced
commit ea16882fb0
2 changed files with 3 additions and 3 deletions

View File

@@ -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 '

View File

@@ -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