From 201ff379c1ea39985e68a1d91483cd15b3fdb843 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Mon, 21 Oct 2024 00:18:47 +1100 Subject: auto brightness add maximum light value to UI, store that in config. add %brightness% replacement to allow viewing of brightness in messages --- src/index.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/index.h') diff --git a/src/index.h b/src/index.h index 92109b0..33a4117 100755 --- a/src/index.h +++ b/src/index.h @@ -218,7 +218,9 @@ const char index_html[] PROGMEM = R"rawliteral( -

+ + +


@@ -383,6 +385,7 @@ const char index_html[] PROGMEM = R"rawliteral( document.getElementById("brightness").value = data.brightness; document.getElementById("autoBrightness").checked = data.autoBrightness; + document.getElementById("autoBrightnessThreshold").value = data.autoBrightnessThreshold; document.getElementById("cssid").value = data["cssid"]; document.getElementById("cpassword").value = data["cpassword"]; document.getElementById("datep").valueAsDate = new Date(data["datep"]); -- cgit v1.2.3