diff --git a/powerwall.sh b/powerwall.sh index e3c252ab..fca1d8c6 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -66,7 +66,7 @@ CHECKTEMP_SERVICE(){ fi - QRY="USE servermonitor; INSERT INTO sensor_data (\`sensorid\`, \`date\`, \`temp\` \`hum\`) VALUES ('${SENSOR_ID[$1]}','${temp_d} ${temp_t}','${temp_f}','${temp_h}')" + QRY="USE servermonitor; INSERT INTO sensor_data (\`sensorid\`, \`date\`, \`temp\`, \`hum\`) VALUES ('${SENSOR_ID[$1]}','${temp_d} ${temp_t}','${temp_f}','${temp_h}')" ${mysql_conn} -e "${QRY}" fi done