syntex-automation
Advanced tools
Comparing version 1.1.0-b8 to 1.1.0-b9
22
main.js
@@ -12,3 +12,3 @@ let LogikEngine = require('./automation'), RouteManager = require('./route-manager'); | ||
super.setMaxListeners(512); | ||
this.pluginName = platform.pluginName; | ||
@@ -19,15 +19,23 @@ this.logger = platform.logger; | ||
this.LogikEngine = new LogikEngine(platform.logger, platform.files, platform, this); | ||
} | ||
} | ||
setInputStream(stream, callback) | ||
setInputStream(stream, sender, callback) | ||
{ | ||
super.on(stream, (reciever, values) => callback(reciever, values)); | ||
super.on(stream, (destination, state) => { | ||
if(sender.id == destination.id && sender.letters == destination.letters) | ||
{ | ||
callback(state); | ||
this.logger.debug('<<< ' + stream + ' [' + JSON.stringify(destination) + '] ' + JSON.stringify(state)); | ||
} | ||
}); | ||
} | ||
setOutputStream(stream, reciever, values) | ||
setOutputStream(stream, destination, state) | ||
{ | ||
super.emit(stream, reciever, values); | ||
super.emit(stream, destination, state); | ||
this.logger.debug('>>> ' + stream + ' ' + JSON.stringify(reciever) + ' ' + JSON.stringify(values)); | ||
this.logger.debug('>>> ' + stream + ' [' + JSON.stringify(destination) + '] ' + JSON.stringify(state)); | ||
} | ||
} |
{ | ||
"name": "syntex-automation", | ||
"version": "1.1.0-b8", | ||
"version": "1.1.0-b9", | ||
"description": "An automation system for your smart home", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24853
600