added brightness to scheduler function

This commit is contained in:
Justin 2023-04-26 15:27:44 +08:00 committed by GitHub
parent 87326ec690
commit dbfb14704b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2628,7 +2628,6 @@ function closeScheduler() {
document.getElementById('saved').style.display = "none"; document.getElementById('saved').style.display = "none";
} }
// save scheduler settings // save scheduler settings
function saveSchedulerSettings() { function saveSchedulerSettings() {
@ -2640,6 +2639,26 @@ function saveSchedulerSettings() {
let reboot_minute = document.getElementById("reboot-minute-select").value; let reboot_minute = document.getElementById("reboot-minute-select").value;
let reboot_enabled = document.getElementById("reboot-enabled").checked; let reboot_enabled = document.getElementById("reboot-enabled").checked;
let brightness1_hour = document.getElementById("brightness1-hour1-select").value;
let brightness1_minute = document.getElementById("brightness1-minute1-select").value;
let brightness1_enabled = document.getElementById("brightness1-enabled").checked;
let brightness1_bright = document.getElementById("brightness1-bright-select").value;
let brightness2_hour = document.getElementById("brightness2-hour1-select").value;
let brightness2_minute = document.getElementById("brightness2-minute1-select").value;
let brightness2_enabled = document.getElementById("brightness2-enabled").checked;
let brightness2_bright = document.getElementById("brightness2-bright-select").value;
let brightness3_hour = document.getElementById("brightness3-hour1-select").value;
let brightness3_minute = document.getElementById("brightness3-minute1-select").value;
let brightness3_enabled = document.getElementById("brightness3-enabled").checked;
let brightness3_bright = document.getElementById("brightness3-bright-select").value;
let brightness4_hour = document.getElementById("brightness4-hour1-select").value;
let brightness4_minute = document.getElementById("brightness4-minute1-select").value;
let brightness4_enabled = document.getElementById("brightness4-enabled").checked;
let brightness4_bright = document.getElementById("brightness4-bright-select").value;
let timezone = document.getElementById("timezone-select").value; let timezone = document.getElementById("timezone-select").value;
let settings = { let settings = {
@ -2650,6 +2669,22 @@ function saveSchedulerSettings() {
reboot_minute: reboot_minute, reboot_minute: reboot_minute,
reboot_enabled: reboot_enabled, reboot_enabled: reboot_enabled,
timezone: timezone, timezone: timezone,
brightness1_hour: brightness1_hour,
brightness1_minute: brightness1_minute,
brightness1_bright: brightness1_bright,
brightness1_enabled: brightness1_enabled,
brightness2_hour: brightness2_hour,
brightness2_minute: brightness2_minute,
brightness2_bright: brightness2_bright,
brightness2_enabled: brightness2_enabled,
brightness3_hour: brightness3_hour,
brightness3_minute: brightness3_minute,
brightness3_bright: brightness3_bright,
brightness3_enabled: brightness3_enabled,
brightness4_hour: brightness4_hour,
brightness4_minute: brightness4_minute,
brightness4_bright: brightness4_bright,
brightness4_enabled: brightness4_enabled,
}; };
console.log(settings); console.log(settings);