fix cron settings

This commit is contained in:
Wolfgang Hottgenroth
2018-03-27 19:13:35 +02:00
parent e6a12e4215
commit 7992ccd7a1

40
dist/main.js vendored
View File

@ -27,8 +27,8 @@ let aquariumLight = new M433SwitchItem_1.M433SwitchItem('1st', 'Anna', 'Aquarium
aquariumLight.start();
allLabeledItems.push(aquariumLight);
let aquariumLightCron = new Cron_1.Cron('aquariumLightCron', aquariumLight, [
{ cronTime: '00 00 07 * * mon-fri', output: 'ON' },
{ cronTime: '00 00 09 * * sat-sun', output: 'ON' },
{ cronTime: '00 00 07 * * 1-5', output: 'ON' },
{ cronTime: '00 00 09 * * 6,0', output: 'ON' },
{ cronTime: '00 00 13 * * *', output: 'OFF' },
{ cronTime: '00 00 14 * * *', output: 'ON' },
{ cronTime: '00 00 22 * * *', output: 'OFF' }
@ -46,12 +46,12 @@ 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 05 08 * * 1-5', output: '5.0' },
{ cronTime: '00 05 16 * * 1', output: '23.0' },
{ cronTime: '00 05 14 * * 2', output: '23.0' },
{ cronTime: '00 05 14 * * 3', output: '23.0' },
{ cronTime: '00 05 16 * * 4', output: '23.0' },
{ cronTime: '00 05 14 * * 5', output: '23.0' },
{ cronTime: '00 58 23 * * *', output: '5.0' }
]);
thermostatAnna1stCron.start();
@ -157,10 +157,10 @@ let thermostatBedroom1st = new MaxThermostat_1.MaxThermostat('1st', 'Bedroom', '
thermostatBedroom1st.start();
allLabeledItems.push(thermostatBedroom1st);
let thermostatBedroom1stCron = new Cron_1.Cron('thermostatBedroom1stCron', thermostatBedroom1st, [
{ cronTime: '00 01 06 * * mon-fri', output: '21.0' },
{ cronTime: '00 01 09 * * mon-fri', output: '5.0' },
{ cronTime: '00 01 08 * * sat-sun', output: '21.0' },
{ cronTime: '00 01 11 * * sat-sun', output: '5.0' },
{ cronTime: '00 01 06 * * 1-5', output: '21.0' },
{ cronTime: '00 01 09 * * 1-5', output: '5.0' },
{ cronTime: '00 01 08 * * 6,0', output: '21.0' },
{ cronTime: '00 01 11 * * 6,0', output: '5.0' },
{ cronTime: '00 00 17 * * *', output: '23.0' },
{ cronTime: '00 59 23 * * *', output: '5.0' }
]);
@ -202,8 +202,8 @@ let thermostatBathroomGnd = new MaxThermostat_1.MaxThermostat('Gnd', 'Bathroom',
thermostatBathroomGnd.start();
allLabeledItems.push(thermostatBathroomGnd);
let thermostatBathroomGndCron = new Cron_1.Cron('thermostatBathroomGndCron', thermostatBathroomGnd, [
{ cronTime: '00 02 06 * * mon-fri', output: '21.0' },
{ cronTime: '00 02 08 * * sat-sun', output: '21.0' },
{ cronTime: '00 02 06 * * 1-5', output: '21.0' },
{ cronTime: '00 02 08 * * 6,0', output: '21.0' },
{ cronTime: '00 02 11 * * *', output: '5.0' },
{ cronTime: '00 02 19 * * *', output: '21.0' },
{ cronTime: '00 00 23 * * *', output: '5.0' }
@ -216,8 +216,8 @@ let thermostatBathroom1st = new MaxThermostat_1.MaxThermostat('1st', 'Bathroom',
thermostatBathroom1st.start();
allLabeledItems.push(thermostatBathroom1st);
let thermostatBathroom1stCron = new Cron_1.Cron('thermostatBathroom1stCron', thermostatBathroom1st, [
{ cronTime: '00 00 06 * * mon-fri', output: '21.0' },
{ cronTime: '00 00 08 * * sat-sun', output: '21.0' },
{ cronTime: '00 00 06 * * 1-5', output: '21.0' },
{ cronTime: '00 00 08 * * 6,0', output: '21.0' },
{ cronTime: '00 00 11 * * *', output: '5.0' },
{ cronTime: '00 00 19 * * *', output: '21.0' },
{ cronTime: '00 00 23 * * *', output: '5.0' }
@ -241,10 +241,10 @@ let thermostatKitchen = new MaxThermostat_1.MaxThermostat('Gnd', 'Kitchen', 'The
thermostatKitchen.start();
allLabeledItems.push(thermostatKitchen);
let thermostatKitchenCron = new Cron_1.Cron('thermostatKitchenCron', thermostatKitchen, [
{ cronTime: '00 00 06 * * mon-fri', output: '19.0' },
{ cronTime: '00 00 08 * * sat-sun', output: '19.0' },
{ cronTime: '00 00 10 * * mon-wed', output: '5.0' },
{ cronTime: '00 30 13 * * mon-wed', output: '19.0' },
{ cronTime: '00 00 06 * * 1-5', output: '19.0' },
{ cronTime: '00 00 08 * * 6,0', output: '19.0' },
{ cronTime: '00 00 10 * * 1-3', output: '5.0' },
{ cronTime: '00 30 13 * * 1-3', output: '19.0' },
{ cronTime: '00 00 23 * * *', output: '5.0' }
]);
thermostatKitchenCron.start();