积分 712
金钱 580
威望 0
贡献 0
HASS币 0
高级会员
积分 712
金钱 580
HASS币 0
本帖最后由 cynliteng 于 2017-7-25 17:53 编辑
设备:群晖docker
对着论坛的教程已经可以再docker中建好了HomeAssistant
如果想要建homebridge 是不是需要再docker 中再建一个容器?
但是现在homebridge按照教程 已经建好
在启动的时候总是在报错
[backcolor=rgb(222, 236, 252) !important][0m*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
stdout
02:52:59
*** WARNING *** Please fix your application to use the native API of Avahi!
stdout
02:52:59
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
stdout
02:52:59
*** WARNING *** Please fix your application to use the native API of Avahi!
stdout
02:53:00
npm info it worked if it ends with ok
stdout
02:53:01
npm info ok
stdout
02:53:01
[37m[7/22/2017, 2:53:01 AM][39m Loaded plugin: homebridge-aqara
stdout
02:53:01
[37m[7/22/2017, 2:53:01 AM][39m Registering platform 'homebridge-aqara.AqaraPlatform'
stdout
02:53:01
[37m[7/22/2017, 2:53:01 AM][39m ---
stdout
02:53:01
[37m[7/22/2017, 2:53:01 AM][39m Loaded plugin: homebridge-synology
stdout
02:53:01
[37m[7/22/2017, 2:53:01 AM][39m Registering accessory 'homebridge-synology.Synology'
stdout
02:53:01
[37m[7/22/2017, 2:53:01 AM][39m ---
stdout
02:53:01
failed to load BLE module!
stdout
02:53:01
[37m[7/22/2017, 2:53:01 AM][39m Loaded plugin: homebridge-yeelight
stdout
02:53:01
[37m[7/22/2017, 2:53:01 AM][39m Registering platform 'homebridge-yeelight.yeelight'
stdout
02:53:01
[37m[7/22/2017, 2:53:01 AM][39m ---
stdout
02:53:01
[37m[7/22/2017, 2:53:01 AM][39m [1m[31mThere was a problem reading your config.json file.[39m[22m
stdout
02:53:01
[37m[7/22/2017, 2:53:01 AM][39m [1m[31mPlease try pasting your config.json file here to validate it: http://jsonlint.com [39m[22m
stdout
02:53:01
[37m[7/22/2017, 2:53:01 AM][39m
stdout
02:53:01
/usr/local/lib/node_modules/homebridge/lib/server.js:197
stdout
02:53:01
throw err;
stdout
02:53:01
SyntaxError: Unexpected token in JSON at position 0
stdout
02:53:01
at JSON.parse (<anonymous>)
stdout
02:53:01
at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:191:19)
stdout
02:53:01
at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:52:38)
stdout
02:53:01
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)
stdout
02:53:01
at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
stdout
02:53:01
at Module._compile (module.js:571:32)
stdout
02:53:01
at Object.Module._extensions..js (module.js:580:10)
stdout
02:53:01
at Module.load (module.js:488:32)
stdout
02:53:01
at tryModuleLoad (module.js:447:12)
stdout
02:53:01
at Function.Module._load (module.js:439:3)
config.json中也是按照要求进行配置的。