Update powerwall.sh
This commit is contained in:
@@ -85,6 +85,8 @@ CHECKTEMP_SERVICE(){
|
|||||||
|
|
||||||
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}')"
|
||||||
${mysql_conn} -e "${QRY}"
|
${mysql_conn} -e "${QRY}"
|
||||||
|
else
|
||||||
|
echo "($datetime) ERROR reading temperature" | mail -s "${1} ERROR" $email_alert
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|||||||
Reference in New Issue
Block a user