-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on pairing #5
Comments
Hi, |
I used node node_modules/nubli/examples/pair.js and I'm on Docker. |
I mean the command to install the homebridge plugin. Something like What the output of: |
I installed it through Homebridge -> plugins -> search -> install |
npm install --save homebridge-nubli@latest And I get this warning: And a lot of other warnings but I am not fast enough to copy paste.. But the plugin is installed after this as it turns up as being installed. |
I managed to get all the installation logs: USER: root npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
prebuild-install info begin Prebuild-install version 5.3.3
make: Entering directory '/homebridge/node_modules/homebridge-nubli/node_modules/bluetooth-hci-socket/build' In file included from /root/.cache/node-gyp/12.14.1/include/node/node.h:63, In file included from ../src/BluetoothHciSocket.cpp:8: In file included from ../src/BluetoothHciSocket.cpp:8: In file included from /root/.cache/node-gyp/12.14.1/include/node/v8-internal.h:14, In file included from ../src/BluetoothHciSocket.cpp:8: In file included from ../src/BluetoothHciSocket.cpp:8: ::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void ()(const v8::WeakCallbackInfonode::ObjectWrap&)]': ::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo ::Callback = void ()(const v8::WeakCallbackInfoNan::ObjectWrap&)]':
|
You are missing the libudev.h header file to compile the usb module. |
Hmm but then it says: sudo apt install libudev-dev |
Have you run this in the docker container? |
Then is says: /homebridge # apt install libudev-dev |
Which docker image did you use? It may be Alpine Linux. You could try |
I did apk add eudev then reinstalled the plugin. Then tried to pair inside the docker terminal: /homebridge # node node_modules/nubli/examples/pair.js Error: Cannot find module '/homebridge/node_modules/nubli/examples/pair.js' |
Restarting homebridge says:
|
That's because the bluetooth module failed to build. I think it only builds on node 8. So you might need to run another homebridge instance in a docker container which uses a node 8 image. |
Ooo.. to bad.. :-( But thank you very much for your efforts Henry!! |
Hello,
I have installed the plugin but when I try to pair it gives this error:
node node_modules/nubli/examples/pair.js
internal/modules/cjs/loader.js:985
throw err;
^
Error: Cannot find module '/home/pi/homebridge/node_modules/nubli/examples/pair.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:982:15)
at Function.Module._load (internal/modules/cjs/loader.js:864:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
at internal/main/run_main_module.js:18:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
What can I do? Thank you in advance!
The text was updated successfully, but these errors were encountered: