Update temp.inc.sh
This commit is contained in:
@@ -256,7 +256,7 @@ AVERAGETEMP(){
|
|||||||
|
|
||||||
while IFS=$'\t' read date temp hum speed ;do
|
while IFS=$'\t' read date temp hum speed ;do
|
||||||
if [ "${sensorid}" == "14" ] || [ "${sensorid}" == "19" ]; then
|
if [ "${sensorid}" == "14" ] || [ "${sensorid}" == "19" ]; then
|
||||||
temptotal=$(bc <<< "scale=2; ${temptotal}+${speed}")
|
temptotal=$(bc <<< "scale=0; ${temptotal}+${speed}")
|
||||||
else
|
else
|
||||||
temptotal=$(bc <<< "scale=2; ${temptotal}+${temp}")
|
temptotal=$(bc <<< "scale=2; ${temptotal}+${temp}")
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user