Update temp.inc.sh

This commit is contained in:
2024-11-05 21:41:58 -06:00
parent 8074f077f3
commit 3797351b64

View File

@@ -1322,7 +1322,7 @@ Previous Temp: ${last_temp}${GAUGESH}"
QRY=""
elif [ "${SENSOR}" == "AC" ]; then
if [ "${temp_f}" != "32" ]; then
if [ "${target}" != "32" ]; then
${mysql_conn} -e "USE servermonitor; INSERT INTO sensor_data (\`sensorid\`, \`date\`, \`temp\`) VALUES ('38',CONVERT_TZ('$(date +'%Y-%m-%d %H:%M:%S')', 'America/Chicago', 'UTC'),'${target}')"
QRY="USE servermonitor; INSERT INTO sensor_data (\`sensorid\`, \`date\`, \`temp\`) VALUES ('${PW_SENSOR_ID[${SENSOR}]}',CONVERT_TZ('$(date +'%Y-%m-%d %H:%M:%S')', 'America/Chicago', 'UTC'),'${temp_f}')"
fi