event emitting on change in geofences

This commit is contained in:
2018-04-11 17:06:05 +02:00
parent fca448a1ea
commit e6fe4a5ee9
4 changed files with 34 additions and 7 deletions

3
dist/main.js vendored
View File

@ -271,6 +271,9 @@ allLabeledItems.push(relayBox);
// ----------------------------------------------------------------------------------------------------------
let geoFences = new GeoFences_1.GeoFences();
geoFences.exec();
geoFences.on('change', (attendanceSheet) => {
logger.info(`geoFences change event: ${JSON.stringify(attendanceSheet)}`);
});
// ----------------------------------------------------------------------------------------------------------
let testFourButton = new HomematicFourButtonThing_1.HomematicFourButtonThing('Gnd', 'Hallway', 'TestButton', 9, [
new HomematicFourButtonThing_1.HomematicFourButtonSingleItem('dispatcher_ng/items/Gnd/Hallway/Testlight/dimmerIn'),