|
@@ -928,7 +928,15 @@ function renderVarvCalibLive() {
|
|
|
if (!varvLatest.length) { el.textContent = ""; return; }
|
|
if (!varvLatest.length) { el.textContent = ""; return; }
|
|
|
const c = varvLatest[0];
|
|
const c = varvLatest[0];
|
|
|
const sum = Object.values(c.bands || {}).reduce((a, v) => a + (Number(v) || 0), 0);
|
|
const sum = Object.values(c.bands || {}).reduce((a, v) => a + (Number(v) || 0), 0);
|
|
|
- el.textContent = `Viimane mõõtmine: ${(c.rgb_hex || "").toUpperCase()} · heledus (kanalite summa) ${Math.round(sum)}`;
|
|
|
|
|
|
|
+ let hint;
|
|
|
|
|
+ if (sum < 50) {
|
|
|
|
|
+ hint = "PIME — valge jaoks on vaja valgust (lamp/päevavalgus); kontrolli, et kate on eemaldatud";
|
|
|
|
|
+ } else if (sum < 200) {
|
|
|
|
|
+ hint = "hämar — valge jaoks soovitav tugevam valgustus";
|
|
|
|
|
+ } else {
|
|
|
|
|
+ hint = "HELE — sobib valgeks (hoia valgustus/geomeetria muutumatuna)";
|
|
|
|
|
+ }
|
|
|
|
|
+ el.textContent = `Viimane mõõtmine: ${(c.rgb_hex || "").toUpperCase()} · heledus ${Math.round(sum)} · ${hint}`;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async function captureVarvCalib(kind) {
|
|
async function captureVarvCalib(kind) {
|