added brightness to scheduler function
This commit is contained in:
parent
87326ec690
commit
dbfb14704b
@ -2628,7 +2628,6 @@ function closeScheduler() {
|
||||
document.getElementById('saved').style.display = "none";
|
||||
}
|
||||
|
||||
|
||||
// save scheduler settings
|
||||
|
||||
function saveSchedulerSettings() {
|
||||
@ -2640,6 +2639,26 @@ function saveSchedulerSettings() {
|
||||
let reboot_minute = document.getElementById("reboot-minute-select").value;
|
||||
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 settings = {
|
||||
@ -2650,6 +2669,22 @@ function saveSchedulerSettings() {
|
||||
reboot_minute: reboot_minute,
|
||||
reboot_enabled: reboot_enabled,
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user