summaryrefslogtreecommitdiff
path: root/html/index.html
diff options
context:
space:
mode:
authorDaniel Jones <daniel@danieljon.es>2024-10-20 12:25:36 +1100
committerDaniel Jones <daniel@danieljon.es>2024-10-20 12:25:36 +1100
commit0eddc06ca0f38c7ea14b727f19b4943b35392c6b (patch)
tree9ca76623f8be1938e2876a09cf7a3b5d8a195ba0 /html/index.html
parent6a9b68e3ed234de9348d8dd1ba495422b819346d (diff)
auto brightness
add option to control brightness automatically from an LDR on pin 34. Note this adds a new value to the globalconf structure, so this breaks the layout of stored settings and will break them all.
Diffstat (limited to 'html/index.html')
-rwxr-xr-xhtml/index.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/html/index.html b/html/index.html
index 20e7387..ef9778b 100755
--- a/html/index.html
+++ b/html/index.html
@@ -216,6 +216,8 @@
<input type="date" id="datep" name="datep"><br>
<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 class="block" type="submit" value="Save">
<br>
<div style="overflow-y: scroll; height:400px;">
@@ -379,6 +381,7 @@
*/
document.getElementById("brightness").value = data.brightness;
+ document.getElementById("autoBrightness").checked = data.autoBrightness;
document.getElementById("cssid").value = data["cssid"];
document.getElementById("cpassword").value = data["cpassword"];
document.getElementById("datep").valueAsDate = new Date(data["datep"]);