diff --git a/app.js b/app.js index 3225d91..9873296 100644 --- a/app.js +++ b/app.js @@ -7,9 +7,6 @@ const dns = require('dns'); const dgram = require('dgram'); const bonjour = require('bonjour')(); -// Start Node.js debugger -// require('inspector').open(9229, '0.0.0.0', true); - module.exports = class MyStromApp extends WifiApp { constructor(...args) { super(...args); @@ -27,6 +24,11 @@ module.exports = class MyStromApp extends WifiApp { }; onInit() { + this.log(`${ this.id } on init...(debug mode ${ DEBUG ? 'on' : 'off' })`); + if (DEBUG) { + require('inspector').open(9229, '0.0.0.0'); + }; + const browser = bonjour.find({ type: 'hap' }, (service) => { if (service.host.match('myStrom-')) { const deviceName = service.host.slice(0, service.host.indexOf('.')); diff --git a/app.json b/app.json index 76bbd03..ae084c2 100644 --- a/app.json +++ b/app.json @@ -21,7 +21,7 @@ ], "author": { "name": "Chris Gross", - "email": "cgHome@gmx.net" + "email": "cgHome@cflat-inc.org" }, "drivers": [ { diff --git a/package.json b/package.json index e19bc86..5257df3 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "Smart Home", "athom" ], - "author": "Chris Gross ", + "author": "Chris Gross ", "license": "ISC", "dependencies": { "bonjour": "^3.5.0", @@ -39,5 +39,5 @@ "bugs": { "url": "https://github.com/cgHome/ch.mystrom.smarthome/issues" }, - "homepage": "https://apps.athom.com/app/ch.mystrom.smarthome" + "homepage": "https://apps.athom.com/app/ch.mystrom.smarthome", }