安装homebridge出错求解决方法 Topic is solved

讨论使用Domoticz过程中遇到的问题。
版面规则
讨论使用Domoticz过程中遇到的问题。
有问题请说明详细情况,有图的截图!
别只说一句安装不上,执行不了!
截图请截大图,别就截一行。。。
回复
kissxyqmuma
帖子: 8
注册时间: 周二 11月 07, 2017 00:43

安装homebridge出错求解决方法

帖子 kissxyqmuma »

按照https://post.smzdm.com/p/555258/这篇教程操作一切正常

安装好一切后运行homebridge出错

pi@raspberrypi:~ $ homebridge
module.js:471
throw err;
^

Error: Cannot find module '../build/Release/dns_sd_bindings'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/usr/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:32:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)




请问怎么解决,在线等
blindlight
帖子: 98
注册时间: 周四 3月 30, 2017 00:03

Re: 安装homebridge出错求解决方法

帖子 blindlight »

nodejs装的什么版本 这个看着就像有东西没装全
kissxyqmuma
帖子: 8
注册时间: 周二 11月 07, 2017 00:43

Re: 安装homebridge出错求解决方法

帖子 kissxyqmuma »

pi@raspberrypi:~ $ homebridge
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdn ... ceRegister>
[11/7/2017, 5:42:49 PM] Loaded plugin: homebridge-edomoticz
[11/7/2017, 5:42:50 PM] Registering platform 'homebridge-edomoticz.eDomoticz'
[11/7/2017, 5:42:50 PM] ---
[11/7/2017, 5:42:50 PM] There was a problem reading your config.json file.
[11/7/2017, 5:42:50 PM] Please try pasting your config.json file here to validate it: http://jsonlint.com
[11/7/2017, 5:42:50 PM]
/usr/lib/node_modules/homebridge/lib/server.js:206
throw err;
^

SyntaxError: Unexpected end of JSON input
at Object.parse (native)
at Server._loadConfig (/usr/lib/node_modules/homebridge/lib/server.js:200:19)
at new Server (/usr/lib/node_modules/homebridge/lib/server.js:57:38)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:26:16)
at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)



从头来了好多次,现在每次又卡在这了,一切都看着没有错误什么的,安装好运行homebridge 出现这样
blindlight
帖子: 98
注册时间: 周四 3月 30, 2017 00:03

Re: 安装homebridge出错求解决方法

帖子 blindlight »

这次安装应该对了 配置文件写错了 注意json格式
kissxyqmuma
帖子: 8
注册时间: 周二 11月 07, 2017 00:43

Re: 安装homebridge出错求解决方法

帖子 kissxyqmuma »

现在基本好了,什么也都正常,只是运行homebridge出现的不是6位数字而是一个二维码config.json也是检查了没有什么问题的
pi@raspberrypi:~ $ homebridge
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdn ... ceRegister>
[11/7/2017, 7:47:08 PM] Loaded plugin: homebridge-edomoticz
[11/7/2017, 7:47:08 PM] Registering platform 'homebridge-edomoticz.eDomoticz'
[11/7/2017, 7:47:08 PM] ---
[11/7/2017, 7:47:08 PM] Loaded config.json with 0 accessories and 1 platforms.
[11/7/2017, 7:47:08 PM] ---
[11/7/2017, 7:47:08 PM] Loading 1 platforms...
[11/7/2017, 7:47:08 PM] [eDomoticz] Initializing eDomoticz platform...
[11/7/2017, 7:47:08 PM] Loading 0 accessories...
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:



























[11/7/2017, 7:47:08 PM] Homebridge is running on port 51826.
[11/7/2017, 7:47:09 PM] [eDomoticz] There was an error while getting the MQTT Hardware Device from Domoticz.
Please verify that you have added the MQTT Hardware Device and that the hardware device is enabled.
zjhzsz
帖子: 5
注册时间: 周一 1月 29, 2018 20:22

Re: 安装homebridge出错求解决方法

帖子 zjhzsz »

我也有上面的警告,但又有数字出来,不知道成功不成功。
blindlight
帖子: 98
注册时间: 周四 3月 30, 2017 00:03

Re: 安装homebridge出错求解决方法

帖子 blindlight »

ls的就算成功了
回复