update
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
VERS='1.100-05122023'
|
VERS='1.102-05122023'
|
||||||
|
|
||||||
noupdate=' stop start _service '
|
noupdate=' stop start _service '
|
||||||
|
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ CHECKTEMP_SERVICE(){
|
|||||||
fi
|
fi
|
||||||
last_temp=1
|
last_temp=1
|
||||||
errtime=$(expr `date +%s` - $(stat -c %Y ${logsrvc}))
|
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
|
fi
|
||||||
|
|
||||||
QRY="USE servermonitor; INSERT INTO sensor_data (\`sensorid\`, \`date\`, \`temp\`, \`hum\`) VALUES ('${SENSOR_ID[$1]}','${datetime}','${temp_f}','${temp_h}')"
|
QRY="USE servermonitor; INSERT INTO sensor_data (\`sensorid\`, \`date\`, \`temp\`, \`hum\`) VALUES ('${SENSOR_ID[$1]}','${datetime}','${temp_f}','${temp_h}')"
|
||||||
|
|||||||
Reference in New Issue
Block a user