diff options
author | Daniel Jones <daniel@danieljon.es> | 2024-10-21 00:18:47 +1100 |
---|---|---|
committer | Daniel Jones <daniel@danieljon.es> | 2024-10-21 00:18:47 +1100 |
commit | 201ff379c1ea39985e68a1d91483cd15b3fdb843 (patch) | |
tree | 53ff2b349c79a42cb9758edd9ff858619a8872ec /src/index.h | |
parent | c9b207f282a366356084732ef1178e186d1d9f8b (diff) |
add maximum light value to UI, store that in config. add %brightness% replacement to allow viewing of brightness in messages
Diffstat (limited to 'src/index.h')
-rwxr-xr-x | src/index.h | 5 |
1 files changed, 4 insertions, 1 deletions
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( <label for="brightness">Brightness:</label> <input type="range" min="0" max="15" value="3" class="slider" name="brightness" id="brightness"> <label for="autoBrightness">Auto Brightness:</label> - <input type="checkbox" id="autoBrightness" name="autoBrightness" value="autoBrightness"><br><br> + <input type="checkbox" id="autoBrightness" name="autoBrightness" value="autoBrightness"> + <label for="autoBrightnessThreshold">Maximum (0-512):</label> + <input type="number" id="autoBrightnessThreshold" name="autoBrightnessThreshold" min="0" max="512" value="400"><br><br> <input class="block" type="submit" value="Save"> <br> <div style="overflow-y: scroll; height:400px;"> @@ -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"]); |