From 3797351b642db3f78f47c3fd00534dcdadf248b3 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 5 Nov 2024 21:41:58 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index b8a5749c..4c73e0d5 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -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