This commit is contained in:
2024-11-06 07:31:02 -06:00
parent 3797351b64
commit 29fb105fc5
2 changed files with 2 additions and 2 deletions

View File

@@ -1322,7 +1322,7 @@ Previous Temp: ${last_temp}${GAUGESH}"
QRY=""
elif [ "${SENSOR}" == "AC" ]; then
if [ "${target}" != "32" ]; then
if [ "${target}" != "32" ] && [ "${target}" != "32.00" ]; 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