SteidlD / homebridge-inkbird-bt-thsensor

A homebridge-plugin for the Inkbird bluetooth temperature and humidity sensors.
GNU General Public License v3.0
8 stars 2 forks source link

homebirdge crash v0.3.0 #2

Closed electromitter closed 4 years ago

electromitter commented 4 years ago

ReferenceError: Characteristic is not defined at new cInkbirdBtTHSensorAccessory (/usr/local/lib/node_modules/homebridge-inkbird-bt-thsensor/InkbirdBtTHSensorAccessory.js:109:54) at /usr/local/lib/node_modules/homebridge/src/server.ts:356:50 at Array.forEach () at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/src/server.ts:329:29) at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:155:12) at cli (/usr/local/lib/node_modules/homebridge/src/cli.ts:80:10) at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (internal/modules/cjs/loader.js:1138:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10) at Module.load (internal/modules/cjs/loader.js:986:32) [6/16/2020, 11:14:25] Got SIGTERM, shutting down Homebridge... [6/16/2020, 11:14:33] [HB Supervisor] Homebridge Process Ended. Code

SteidlD commented 4 years ago

Upps. It seems that one of the other plugins installed on my homebridge defines Characteristic globally, so this doesn't happen on my system. But thats obviously a bug.. There's a new version of InkbirdBtTHSensorAccessory.js checked-in. Could you please change this file and give feedback if this solves the problem on your system. Then I will make a new official release 0.3.1 afterwards. Thanks

electromitter commented 4 years ago

it works now