keep only 1 signifcant digit for temperature
This commit is contained in:
parent
57549371e2
commit
b6e3e2778e
4
pool.js
4
pool.js
@ -180,8 +180,8 @@ function update_temp(temp) {
|
|||||||
}
|
}
|
||||||
status.lock_update = true;
|
status.lock_update = true;
|
||||||
|
|
||||||
status.temp = temp;
|
status.temp = Math.round(temp * 10) / 10;
|
||||||
status.temp_today = Math.max(status.temp_today, temp);
|
status.temp_today = Math.max(status.temp_today, status.temp);
|
||||||
status.temp_max = Math.max(status.temp_today, status.temp_yesterday);
|
status.temp_max = Math.max(status.temp_today, status.temp_yesterday);
|
||||||
|
|
||||||
print("[POOL] update_temp - max:", status.temp_max, "today:", status.temp_today, "yesterday:", status.temp_yesterday);
|
print("[POOL] update_temp - max:", status.temp_max, "today:", status.temp_today, "yesterday:", status.temp_yesterday);
|
||||||
|
Loading…
Reference in New Issue
Block a user