add NTP check to scheduler

This commit is contained in:
Proddy
2023-02-25 16:13:47 +01:00
parent 2ede730cfb
commit 50400459ee
11 changed files with 129 additions and 73 deletions

View File

@@ -600,44 +600,47 @@ const emsesp_devicedata_4 = {
};
// SCHEDULE
let emsesp_schedule = [
{
id: '1',
active: true,
flags: 31,
time: '07:30',
cmd: 'hc1/mode',
value: 'day',
description: 'Turn on central heating in morning'
},
{
id: '2',
active: true,
flags: 31,
time: '23:00',
cmd: 'hc1/mode',
value: 'night',
description: 'Turn off central heating for the night'
},
{
id: '3',
active: true,
flags: 128,
time: '00:01',
cmd: 'thermostat/hc2/seltemp',
value: '20',
description: 'Force thermostat temperature to 20 degrees every minute'
},
{
id: '4',
active: false,
flags: 85,
time: '04:00',
cmd: 'system/restart',
value: '',
description: 'auto restart EMS-EPS at 4am every other day'
}
];
let emsesp_schedule = {
ntp_available: true,
schedule: [
{
id: '1',
active: true,
flags: 31,
time: '07:30',
cmd: 'hc1/mode',
value: 'day',
description: 'Turn on central heating in morning'
},
{
id: '2',
active: true,
flags: 31,
time: '23:00',
cmd: 'hc1/mode',
value: 'night',
description: 'Turn off central heating for the night'
},
{
id: '3',
active: true,
flags: 128,
time: '00:01',
cmd: 'thermostat/hc2/seltemp',
value: '20',
description: 'Force thermostat temperature to 20 degrees every minute'
},
{
id: '4',
active: false,
flags: 85,
time: '04:00',
cmd: 'system/restart',
value: '',
description: 'auto restart EMS-EPS at 4am every other day'
}
]
};
// CUSTOMIZATIONS