keep only 1 signifcant digit for temperature

This commit is contained in:
Gilles Grandou 2022-04-21 12:46:05 +02:00
parent 57549371e2
commit b6e3e2778e
1 changed files with 2 additions and 2 deletions

View File

@ -180,8 +180,8 @@ function update_temp(temp) {
}
status.lock_update = true;
status.temp = temp;
status.temp_today = Math.max(status.temp_today, temp);
status.temp = Math.round(temp * 10) / 10;
status.temp_today = Math.max(status.temp_today, status.temp);
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);