grover / homebridge-ranger

A HomeKit range extender for Bluetooth Low Energy (BLE) accessories.
MIT License
73 stars 15 forks source link

Problem bluetooth-hci-socket on raspberry #34

Open sorriso93 opened 4 years ago

sorriso93 commented 4 years ago

I tried node 9, 10 and 11 on fresh raspberry installation. No way to get it run, it seems that a subcomponent of noble doesn't install, bluetooth-hci-socket.

/root/.node-gyp/11.15.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase::SetWeak(P, typename v8::WeakCallbackInfo

::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo

::Callback = void ()(const v8::WeakCallbackInfo&)]’: ../../nan/nan_object_wrap.h:65:61: required from here /root/.node-gyp/11.15.0/include/node/v8.h:9710:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo::Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} to ‘Callback’ {aka ‘void ()(const v8::WeakCallbackInfo&)’} [-Wcast-function-type] make: *** [binding.target.mk:99: Release/obj.target/binding/src/BluetoothHciSocket.o] Error 1 make: uscita dalla directory "/usr/local/lib/node_modules/homebridge-ranger/node_modules/bluetooth-hci-socket/build" gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:193:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12) gyp ERR! System Linux 4.19.75+ gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/homebridge-ranger/node_modules/bluetooth-hci-socket gyp ERR! node -v v11.15.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 (node_modules/homebridge-ranger/node_modules/bluetooth-hci-socket): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bluetooth-hci-socket@0.5.1 install: node-gyp rebuild npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

Any suggestion? many thanks

sorriso93 commented 4 years ago

I also tried installing manually noble abandonware, same result

curana commented 4 years ago

I got it to work with abandonware's bluetooth-hci-socket.

It works for a few minutes, then the connection to my Eve Energy is lost and I have to restart Homebridge.

sorriso93 commented 4 years ago

I got it to work with abandonware's bluetooth-hci-socket.

It works for a few minutes, then the connection to my Eve Energy is lost and I have to restart Homebridge.

can you share the steps you made to install it? on a raspberry with raspbian? thanks

curana commented 4 years ago

Try installing from this repo with node v12: https://github.com/palasinio/homebridge-ranger

sorriso93 commented 4 years ago

Installed, configured and extended my koogeek contact sensor. But the state doesn't get updated when I open the window or close...

gewaechshaus commented 3 years ago

@sorriso93 - same here, no status Updates from a Eve door sensor...

palasinio commented 3 years ago

Have you played with reachabilityTimeout? For example 120000?