homebridge-wink
homebridge-wink copied to clipboard
Cant Seem to get the plugin to install
First I am very new to raspberry and Homebridge. followed the instructions to install but get the following when i run homebridge
Any help would be appreciated.
Ken
*** WARNING *** The program 'nodejs' 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=nodejs
*** WARNING *** The program 'nodejs' 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=libdns_sd&e=nodejs&f=DNSServiceRegister
[11/11/2016, 12:13:09 PM] ====================
[11/11/2016, 12:13:10 PM] ERROR LOADING PLUGIN homebridge-wink:
[11/11/2016, 12:13:10 PM] TypeError: Path must be a string. Received null
at assertPath (path.js:7:11)
at Object.dirname (path.js:1324:5)
at Object.
Error: The requested platform 'Wink' was not registered by any plugin.
at API.platform (/usr/lib/node_modules/homebridge/lib/api.js:118:13)
at Server._loadPlatforms (/usr/lib/node_modules/homebridge/lib/server.js:281:45)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:77:36)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object.
this issue is already reported here: https://github.com/KraigM/homebridge-wink/issues/37
Flochtililoch, Thanks for the response. I see that the issue was addressed in #37, but i am not sure what the actual resolutions was. Install version 5?
yes, reverting to a node version < 6 seems to solve the issue.
You could also simply comment out these lines on your install, these are not used anyway in homebridge-wink
plugin and are indirectly causing the issue.
Is there a good way to do this in a docker container?
@flochtililoch I commented out lines 134-137. Ran the following code. Im running
node -v 6.9.1
pm2 stop homebridge -- -D
pm2 start homebridge -- -D
root@HKJail:/ # pm2 start homebridge -- -D [PM2] Applying action restartProcessId on app [homebridge](ids: 0) [PM2] [homebridge](0) ✓ [PM2] Process successfully started ┌────────────┬────┬──────┬───────┬────────┬─────────┬────────┬─────┬───────────┬──────────┐ │ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ watching │ ├────────────┼────┼──────┼───────┼────────┼─────────┼────────┼─────┼───────────┼──────────┤ │ homebridge │ 0 │ fork │ 58025 │ online │ 30 │ 0s │ 0% │ 24.2 MB │ disabled │ └────────────┴────┴──────┴───────┴────────┴─────────┴────────┴─────┴───────────┴──────────┘ Use
pm2 show <id|name>to get more details about an app root@HKJail:/ #
Then I ran homebridge

Comments in JavaScript should be //
, not #
It appears to be dying because it can't find package.json. This worked for me, just "touch package.json" in your ~/.homebridge directory. Definitely a wink plugin issue.
It appears to be dying because it can't find package.json. This worked for me, just "touch package.json" in your ~/.homebridge directory. Definitely a wink plugin issue.
This fixed it for me. Thanks!
@flochtililoch I commented out those lines in the wink-js/index.js file but I'm still getting the same error:
TypeError: Path must be a string. Received null
at assertPath (path.js:7:11)
at Object.dirname (path.js:1324:5)
at Object.
Is there something I'm missing?
Thank you!