Update powerwall.sh
This commit is contained in:
1 parent
b4ef3ffdbf
commit
41f1162af4
1 file changed
+1
@@ -613,6 +613,7 @@ TEST(){
|
|||||||
temptotal=0
|
temptotal=0
|
||||||
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
|
||||||
|
echo "expr ${temptotal} + ${temp}"
|
||||||
temptotal=`expr ${temptotal} + ${temp}`
|
temptotal=`expr ${temptotal} + ${temp}`
|
||||||
done < <(${mysql_conn} -se "USE servermonitor; SELECT date,sensorid,temp,hum from sensor_data WHERE sensorid=2 ORDER BY id DESC LIMIT 10000;")
|
done < <(${mysql_conn} -se "USE servermonitor; SELECT date,sensorid,temp,hum from sensor_data WHERE sensorid=2 ORDER BY id DESC LIMIT 10000;")
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user