export stuff

This commit is contained in:
Wolfgang Hottgenroth
2018-04-02 23:03:10 +02:00
parent d586ab6860
commit e883c9a791
6 changed files with 81 additions and 63 deletions

17
dist/main.js vendored
View File

@ -151,18 +151,21 @@ allLabeledItems.push(bedRoomWindowLight);
let windowContactBedroomStreet1st = new MaxWindowContact_1.MaxWindowContact('1st', 'Bedroom', 'WindowContactStreet', 'Fenster Schlafzimmer Strasse', 17);
windowContactBedroomStreet1st.start();
allLabeledItems.push(windowContactBedroomStreet1st);
let windowContactBedroomGarden1st = new MaxWindowContact_1.MaxWindowContact('1st', 'Bedroom', 'WindowContactGarden', 'Fenster Schlafzimmer Garten', 18);
windowContactBedroomGarden1st.start();
allLabeledItems.push(windowContactBedroomGarden1st);
let thermostatBedroom1st = new MaxThermostat_1.MaxThermostat('1st', 'Bedroom', 'Thermostat', 'Thermostat Schlafzimmer', 19, [windowContactBedroomGarden1st, windowContactBedroomStreet1st]);
let windowContact1BedroomGarden1st = new MaxWindowContact_1.MaxWindowContact('1st', 'Bedroom', 'WindowContact1Garden', 'Fenster Schlafzimmer 1 Garten', 18);
windowContact1BedroomGarden1st.start();
allLabeledItems.push(windowContact1BedroomGarden1st);
let windowContact2BedroomGarden1st = new MaxWindowContact_1.MaxWindowContact('1st', 'Bedroom', 'WindowContact2Garden', 'Fenster Schlafzimmer 2 Garten', 22);
windowContact2BedroomGarden1st.start();
allLabeledItems.push(windowContact2BedroomGarden1st);
let thermostatBedroom1st = new MaxThermostat_1.MaxThermostat('1st', 'Bedroom', 'Thermostat', 'Thermostat Schlafzimmer', 19, [windowContact1BedroomGarden1st, windowContact2BedroomGarden1st, windowContactBedroomStreet1st]);
thermostatBedroom1st.start();
allLabeledItems.push(thermostatBedroom1st);
let thermostatBedroom1stCron = new Cron_1.Cron('thermostatBedroom1stCron', thermostatBedroom1st, [
{ cronTime: '00 01 06 * * 1-5', output: '21.0' },
{ cronTime: '00 01 06 * * 1-5', output: '19.0' },
{ cronTime: '00 01 09 * * 1-5', output: '5.0' },
{ cronTime: '00 01 08 * * 6,0', output: '21.0' },
{ cronTime: '00 01 08 * * 6,0', output: '19.0' },
{ cronTime: '00 01 11 * * 6,0', output: '5.0' },
{ cronTime: '00 00 17 * * *', output: '23.0' },
{ cronTime: '00 00 17 * * *', output: '20.0' },
{ cronTime: '00 59 23 * * *', output: '5.0' }
]);
thermostatBedroom1stCron.start();