This commit is contained in:
2023-05-12 22:59:58 -05:00
parent 1206f0c5c4
commit ec5ef722c0
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
VERS='1.100-05122023'
VERS='1.102-05122023'
noupdate=' stop start _service '

View File

@@ -105,7 +105,7 @@ CHECKTEMP_SERVICE(){
fi
last_temp=1
errtime=$(expr `date +%s` - $(stat -c %Y ${logsrvc}))
[ $errtime -ge 10 ] && echo "($datetime) - ${temp_f}F - Normal Temp" >> ${logsrvc}
[ $errtime -ge 3600 ] && echo "($datetime) - ${temp_f}F - Normal Temp" >> ${logsrvc}
fi
QRY="USE servermonitor; INSERT INTO sensor_data (\`sensorid\`, \`date\`, \`temp\`, \`hum\`) VALUES ('${SENSOR_ID[$1]}','${datetime}','${temp_f}','${temp_h}')"