Add more heat/humidity precision levels

This commit is contained in:
Wuzzy 2024-12-07 16:44:58 +01:00
parent e46e04588f
commit 217caf532b

View File

@ -1681,6 +1681,10 @@ function updateCoordinateDisplay(pixelX, pixelY) {
heat_precision = 1; heat_precision = 1;
} else if (heat_range >= 1) { } else if (heat_range >= 1) {
heat_precision = 2; heat_precision = 2;
} else if (heat_range >= 0.1) {
heat_precision = 5;
} else if (heat_range >= 0.001) {
heat_precision = 10;
} }
let humidity_precision = null; let humidity_precision = null;
@ -1690,6 +1694,10 @@ function updateCoordinateDisplay(pixelX, pixelY) {
humidity_precision = 1; humidity_precision = 1;
} else if (humidity_range >= 1) { } else if (humidity_range >= 1) {
humidity_precision = 2; humidity_precision = 2;
} else if (humidity_range >= 0.1) {
humidity_precision = 5;
} else if (humidity_range >= 0.001) {
humidity_precision = 10;
} }
let heatStr, humidityStr; let heatStr, humidityStr;