homebridge-syntex-magichome
Advanced tools
Comparing version 1.0.0-b16 to 1.0.0-b17
{ | ||
"name": "homebridge-syntex-magichome", | ||
"version": "1.0.0-b16", | ||
"version": "1.0.0-b17", | ||
"description": "Homebridge Plugin for MagicHome LED Strips with preset scenes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -143,23 +143,17 @@ // | ||
self.log('Discovering Devices') | ||
try{ | ||
this.proc = spawn(cmd, ['-s']) | ||
this.proc.stdout.on('data', (data) => { | ||
const newData = '' + data | ||
self.log(newData) | ||
self.cachedAddress = self.parseDevices(newData) | ||
}) | ||
this.proc = spawn(cmd, ['-s']) | ||
this.proc.stdout.on('data', (data) => { | ||
const newData = '' + data | ||
self.log(newData) | ||
self.cachedAddress = self.parseDevices(newData) | ||
}) | ||
this.proc.stderr.on('data', (data) => { | ||
self.log('Error : ' + data) | ||
}) | ||
this.proc.stderr.on('data', (data) => { | ||
self.log('Error : ' + data) | ||
}) | ||
this.proc.on('close', () => { | ||
self.log('Discovery Finished'); | ||
self.rediscoverLights() | ||
}) | ||
} | ||
catch(e) | ||
{ | ||
console.log(e); | ||
} | ||
this.proc.on('close', () => { | ||
self.log('Discovery Finished'); | ||
self.rediscoverLights() | ||
}) | ||
} | ||
@@ -166,0 +160,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
103111
731