homebridge-syntex-dynamic-platform
Advanced tools
Comparing version 1.0.0-b15 to 1.0.0-b16
@@ -1,3 +0,1 @@ | ||
let logger; | ||
module.exports = class BaseService | ||
@@ -20,3 +18,3 @@ { | ||
logger = manager.logger; | ||
this.logger = manager.logger; | ||
@@ -27,3 +25,3 @@ var service = homebridgeAccessory.getServiceById(serviceType, serviceConfig.subtype); | ||
{ | ||
logger.debug('Existierenden Service gefunden! ' + serviceConfig.name + ' ' + serviceConfig.type + ' ' + serviceConfig.subtype + ' ( ' + this.id + ' )'); | ||
this.logger.debug('Existierenden Service gefunden! ' + serviceConfig.name + ' ' + serviceConfig.type + ' ' + serviceConfig.subtype + ' ( ' + this.id + ' )'); | ||
@@ -34,3 +32,3 @@ service.setCharacteristic(manager.platform.api.hap.Characteristic.Name, serviceConfig.name); | ||
{ | ||
logger.debug('Erstelle neuen Service! ' + serviceConfig.name + ' ' + serviceConfig.type + ' ' + serviceConfig.subtype + ' ( ' + this.id + ' )'); | ||
this.logger.debug('Erstelle neuen Service! ' + serviceConfig.name + ' ' + serviceConfig.type + ' ' + serviceConfig.subtype + ' ( ' + this.id + ' )'); | ||
@@ -55,7 +53,7 @@ homebridgeAccessory.addService(serviceType, serviceConfig.name, serviceConfig.subtype) | ||
logger.log('read', this.id, this.letters, 'HomeKit Status für [' + this.name + '] ist [' + JSON.stringify(value) + '] ( ' + this.id + ' )'); | ||
this.logger.log('read', this.id, this.letters, 'HomeKit Status für [' + this.name + '] ist [' + JSON.stringify(value) + '] ( ' + this.id + ' )'); | ||
} | ||
else | ||
{ | ||
logger.log('warn', this.id, this.letters, '[' + this.name + '] wurde nicht im Cache gefunden! ( ' + this.id + ' )'); | ||
this.logger.log('warn', this.id, this.letters, '[' + this.name + '] wurde nicht im Cache gefunden! ( ' + this.id + ' )'); | ||
} | ||
@@ -82,3 +80,3 @@ | ||
logger.log('update', this.id, this.letters, 'HomeKit Status für [' + this.name + '] geändert zu [' + JSON.stringify(value) + '] ( ' + this.id + ' )'); | ||
this.logger.log('update', this.id, this.letters, 'HomeKit Status für [' + this.name + '] geändert zu [' + JSON.stringify(value) + '] ( ' + this.id + ' )'); | ||
@@ -89,3 +87,3 @@ return true; | ||
{ | ||
logger.log('error', this.id, this.letters, '[' + this.name + '] konnte nicht im Cache gespeichert werden! ( ' + this.id + ' )'); | ||
this.logger.log('error', this.id, this.letters, '[' + this.name + '] konnte nicht im Cache gespeichert werden! ( ' + this.id + ' )'); | ||
@@ -109,3 +107,3 @@ return false; | ||
{ | ||
logger.log('warn', this.id, this.letters, '[' + this.name + '] wurde nicht im Cache gefunden! ( ' + this.id + ' )'); | ||
this.logger.log('warn', this.id, this.letters, '[' + this.name + '] wurde nicht im Cache gefunden! ( ' + this.id + ' )'); | ||
} | ||
@@ -112,0 +110,0 @@ |
@@ -14,7 +14,7 @@ let Service, Characteristic; | ||
{ | ||
manager.logger.debug('Existierenden Informations-Service gefunden! ' + deviceConfig.name + ' ( ' + deviceConfig.id + ' )'); | ||
this.logger.debug('Existierenden Informations-Service gefunden! ' + deviceConfig.name + ' ( ' + deviceConfig.id + ' )'); | ||
} | ||
else | ||
{ | ||
manager.logger.debug('Erstelle neuen Informations-Service! ' + deviceConfig.name + ' ( ' + deviceConfig.id + ' )'); | ||
this.logger.debug('Erstelle neuen Informations-Service! ' + deviceConfig.name + ' ( ' + deviceConfig.id + ' )'); | ||
@@ -21,0 +21,0 @@ service = homebridgeAccessory.addService(Service.AccessoryInformation, deviceConfig.name); |
{ | ||
"name": "homebridge-syntex-dynamic-platform", | ||
"version": "1.0.0-b15", | ||
"version": "1.0.0-b16", | ||
"description": "A Dynamic Platform Accessory", | ||
@@ -5,0 +5,0 @@ "main": "platform.js", |
@@ -33,3 +33,3 @@ const { pid } = require('process'); | ||
WebServer = new WebServer(pluginName, this.logger, this.port, false); | ||
/* | ||
WebServer.addPage('/serverside/version', (response) => { | ||
@@ -81,2 +81,3 @@ | ||
}); | ||
*/ | ||
} | ||
@@ -83,0 +84,0 @@ |
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
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
39246
967
1
37