Cron implemented

This commit is contained in:
Wolfgang Hottgenroth
2018-01-15 17:49:25 +01:00
parent 09a63fe736
commit 9c0ac6dc3b
9 changed files with 107 additions and 2 deletions

7
dist/main.js vendored
View File

@ -15,6 +15,7 @@ const Scene_1 = require("./Scene");
const MaxEcoSwitch_1 = require("./MaxEcoSwitch");
const MaxThermostat_1 = require("./MaxThermostat");
const MaxWindowContact_1 = require("./MaxWindowContact");
const Cron_1 = require("./Cron");
logger.info("Dispatcher starting");
let allLabeledItems = new Array();
// Anna -----------------------------------------------------------------------------------------------------
@ -162,6 +163,12 @@ let windowContact2 = new MaxWindowContact_1.MaxWindowContact('Gnd', 'Bathroom',
windowContact2.start();
let thermostat1 = new MaxThermostat_1.MaxThermostat('Gnd', 'Bathroom', 'Thermostat', 'Thermostat Bad unten', 3, [windowContact1, windowContact2]);
thermostat1.start();
let thermostat1Cron = new Cron_1.Cron('Thermostat1Cron', thermostat1, [
{ cronTime: '00 47 17 * * *', output: '5.0' },
{ cronTime: '00 48 17 * * *', output: '20.0' },
{ cronTime: '00 49 17 * * *', output: '25.0' }
]);
thermostat1Cron.start();
// ----------------------------------------------------------------------------------------------------------
// Homekit export
let homekitObject = {};