change cron to numbers

This commit is contained in:
Wolfgang Hottgenroth
2018-03-06 12:20:01 +01:00
parent 9b4853501d
commit e6a12e4215
5 changed files with 70 additions and 24 deletions

14
dist/main.js vendored
View File

@ -41,6 +41,20 @@ allLabeledItems.push(annaBedLight);
let windowContactAnna1st = new MaxWindowContact_1.MaxWindowContact('1st', 'Anna', 'WindowContact', 'Fenster Anna', 20);
windowContactAnna1st.start();
allLabeledItems.push(windowContactAnna1st);
let thermostatAnna1st = new MaxThermostat_1.MaxThermostat('1st', 'Anna', 'Thermostat', 'Thermostat Anna', 21, [windowContactAnna1st]);
thermostatAnna1st.start();
allLabeledItems.push(thermostatAnna1st);
let thermostatAnna1stCron = new Cron_1.Cron('thermostatAnna1stCron', thermostatAnna1st, [
{ cronTime: '00 05 06 * * *', output: '23.0' },
{ cronTime: '00 05 08 * * mon-fri', output: '5.0' },
{ cronTime: '00 05 16 * * mon', output: '23.0' },
{ cronTime: '00 05 14 * * tue', output: '23.0' },
{ cronTime: '00 05 14 * * wed', output: '23.0' },
{ cronTime: '00 05 16 * * thu', output: '23.0' },
{ cronTime: '00 05 14 * * fri', output: '23.0' },
{ cronTime: '00 58 23 * * *', output: '5.0' }
]);
thermostatAnna1stCron.start();
// Matthias -------------------------------------------------------------------------------------------------
// Matthias Stehlampen 7 24 1 6 24 1
let matthiasStandLights = new M433SwitchItem_1.M433SwitchItem('1st', 'Matthias', 'StandLight', 'Stehlampen Matthias', '7 24 1', '6 24 1');