Update powerwall.sh
This commit is contained in:
@@ -613,7 +613,7 @@ TEST(){
|
|||||||
|
|
||||||
while IFS=$'\t' read date sensorid temp hum ;do
|
while IFS=$'\t' read date sensorid temp hum ;do
|
||||||
echo date:$date sensorid:$sensorid temp:$temp hum:$hum
|
echo date:$date sensorid:$sensorid temp:$temp hum:$hum
|
||||||
done < <(${mysql_conn} -se "USE servermonitor; SELECT date,sensorid,temp,hum from sensor_data ORDER BY id DESC LIMIT 100;")
|
done < <(${mysql_conn} -se "USE servermonitor; SELECT date,sensorid,temp,hum from sensor_data ORDER BY id DESC LIMIT 10;")
|
||||||
|
|
||||||
# QRY="INSERT INTO inv_jsonstats (\`date\`, \`data\`) VALUES ('${datetime}','${JSONSTATS}')"
|
# QRY="INSERT INTO inv_jsonstats (\`date\`, \`data\`) VALUES ('${datetime}','${JSONSTATS}')"
|
||||||
# ${mysql_conn} -e "USE servermonitor; ${QRY}"
|
# ${mysql_conn} -e "USE servermonitor; ${QRY}"
|
||||||
|
|||||||
Reference in New Issue
Block a user