heartbeat stuff

This commit is contained in:
Wolfgang Hottgenroth
2018-05-16 10:32:13 +02:00
parent 50b0b85f4f
commit 7e78a5724b
3 changed files with 22 additions and 1 deletions

7
dist/main.js vendored
View File

@ -391,6 +391,13 @@ testForwarder.start();
let testScene = new Scene_1.LightScene('Gnd', 'Hallway', 'TestScene', 'TestScene', [aquariumLight, annaBedLight], [matthiasStandLights, matthiasBedLight]);
testScene.start();
// ----------------------------------------------------------------------------------------------------------
// heartbeat
let heartbeatCounter = 0;
let heartbeatTimer = setInterval(() => {
heartbeatCounter += 1;
MqttDispatcher_1.mqttHandler.send(config.dict.heartbeatTopic, `${heartbeatCounter}`);
}, config.dict.heartbeatInterval);
// ----------------------------------------------------------------------------------------------------------
// Homekit export
let homekitObject = {};
let openhabList = [];