This commit is contained in:
Wolfgang Hottgenroth
2018-01-23 20:30:04 +01:00
parent 988840a947
commit 4aa7335e54
3 changed files with 21 additions and 20 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
node_modules
*.map
mylogfile.log
dispatcher_ng.log

20
dist/main.js vendored
View File

@ -25,8 +25,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 * * 1-5', output: 'ON' },
{ cronTime: '00 00 09 * * 6-7', output: 'ON' },
{ cronTime: '00 00 07 * * mon-fri', output: 'ON' },
{ cronTime: '00 00 09 * * sat-sun', output: 'ON' },
{ cronTime: '00 00 13 * * *', output: 'OFF' },
{ cronTime: '00 00 14 * * *', output: 'ON' },
{ cronTime: '00 00 22 * * *', output: 'OFF' }
@ -155,8 +155,8 @@ let thermostatBathroomGnd = new MaxThermostat_1.MaxThermostat('Gnd', 'Bathroom',
thermostatBathroomGnd.start();
allLabeledItems.push(thermostatBathroomGnd);
let thermostatBathroomGndCron = new Cron_1.Cron('thermostatBathroomGndCron', thermostatBathroomGnd, [
{ cronTime: '00 00 06 * * 1-5', output: '21.0' },
{ cronTime: '00 00 08 * * 6-7', output: '21.0' },
{ cronTime: '00 00 06 * * mon-fri', output: '21.0' },
{ cronTime: '00 00 08 * * sat-sun', output: '21.0' },
{ cronTime: '00 00 11 * * *', output: '5.0' },
{ cronTime: '00 00 19 * * *', output: '21.0' },
{ cronTime: '00 00 23 * * *', output: '5.0' }
@ -169,8 +169,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 * * 1-5', output: '21.0' },
{ cronTime: '00 00 08 * * 6-7', output: '21.0' },
{ cronTime: '00 00 06 * * mon-fri', output: '21.0' },
{ cronTime: '00 00 08 * * sat-sun', output: '21.0' },
{ cronTime: '00 00 11 * * *', output: '5.0' },
{ cronTime: '00 00 19 * * *', output: '21.0' },
{ cronTime: '00 00 23 * * *', output: '5.0' }
@ -194,10 +194,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 * * 1-5', output: '21.0' },
{ cronTime: '00 00 08 * * 6-7', output: '21.0' },
{ cronTime: '00 00 10 * * 1-3', output: '5.0' },
{ cronTime: '00 30 13 * * *', output: '21.0' },
{ cronTime: '00 00 06 * * mon-fri', output: '20.0' },
{ cronTime: '00 00 08 * * sat-sun', output: '20.0' },
{ cronTime: '00 00 10 * * mon-wed', output: '5.0' },
{ cronTime: '00 30 13 * * mon-wed', output: '20.0' },
{ cronTime: '00 00 23 * * *', output: '5.0' }
]);
thermostatKitchenCron.start();

View File

@ -32,8 +32,8 @@ aquariumLight.start()
allLabeledItems.push(aquariumLight)
let aquariumLightCron = new Cron('aquariumLightCron', aquariumLight, [
{cronTime: '00 00 07 * * 1-5', output: 'ON'},
{cronTime: '00 00 09 * * 6-7', output: 'ON'},
{cronTime: '00 00 07 * * mon-fri', output: 'ON'},
{cronTime: '00 00 09 * * sat-sun', output: 'ON'},
{cronTime: '00 00 13 * * *', output: 'OFF'},
{cronTime: '00 00 14 * * *', output: 'ON'},
{cronTime: '00 00 22 * * *', output: 'OFF'}
@ -204,8 +204,8 @@ thermostatBathroomGnd.start()
allLabeledItems.push(thermostatBathroomGnd)
let thermostatBathroomGndCron = new Cron('thermostatBathroomGndCron', thermostatBathroomGnd, [
{cronTime: '00 00 06 * * 1-5', output: '21.0'},
{cronTime: '00 00 08 * * 6-7', output: '21.0'},
{cronTime: '00 00 06 * * mon-fri', output: '21.0'},
{cronTime: '00 00 08 * * sat-sun', output: '21.0'},
{cronTime: '00 00 11 * * *', output: '5.0'},
{cronTime: '00 00 19 * * *', output: '21.0'},
{cronTime: '00 00 23 * * *', output: '5.0'}
@ -222,8 +222,8 @@ thermostatBathroom1st.start()
allLabeledItems.push(thermostatBathroom1st)
let thermostatBathroom1stCron = new Cron('thermostatBathroom1stCron', thermostatBathroom1st, [
{cronTime: '00 00 06 * * 1-5', output: '21.0'},
{cronTime: '00 00 08 * * 6-7', output: '21.0'},
{cronTime: '00 00 06 * * mon-fri', output: '21.0'},
{cronTime: '00 00 08 * * sat-sun', output: '21.0'},
{cronTime: '00 00 11 * * *', output: '5.0'},
{cronTime: '00 00 19 * * *', output: '21.0'},
{cronTime: '00 00 23 * * *', output: '5.0'}
@ -251,10 +251,10 @@ thermostatKitchen.start()
allLabeledItems.push(thermostatKitchen)
let thermostatKitchenCron = new Cron('thermostatKitchenCron', thermostatKitchen, [
{cronTime: '00 00 06 * * 1-5', output: '21.0'},
{cronTime: '00 00 08 * * 6-7', output: '21.0'},
{cronTime: '00 00 10 * * 1-3', output: '5.0'},
{cronTime: '00 30 13 * * *', output: '21.0'},
{cronTime: '00 00 06 * * mon-fri', output: '20.0'},
{cronTime: '00 00 08 * * sat-sun', output: '20.0'},
{cronTime: '00 00 10 * * mon-wed', output: '5.0'},
{cronTime: '00 30 13 * * mon-wed', output: '20.0'},
{cronTime: '00 00 23 * * *', output: '5.0'}
])
thermostatKitchenCron.start()