Bluetooth LE and osmc

Love the distro. Fast, everything working out of the box.
But recently decided to install room-assistant (it is node.js a bluetooth LE tracker) so the BT capability of RPi3 i’m running it on top os not wasted.
But ran into problems. I have enabled the blietooth e.t.c. The room assistant connects but that’s it.
Is the bluez modified in the osmc distro in some way or another? Is there a way to install vanilla - plain version?

BlueZ has been modified to support the internal adapter.
If you install the ‘plain’ Debian version, the adapter will not work.

I don’t know if BT LE is working on the internal adapter.

it’s working. At least lescan shows up correctly.
I have installed room-assistance on the latest raspbian without a hitch. So wonder where is the proble on osmc side…

Main problem when installing room assistant get the following

npm ERR! node-hid@0.5.4 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-hid@0.5.4 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-hid package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-hid
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-hid
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /roomass/room-assistant/npm-debug.log

Looks like the important part to me…

Probably different versions of Node

Grab Node from their website, not apt-get.

That’s exactly what i did

curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs

  • Contact the maintainer
  • Make sure you have npm installed

There’s not much we can really do to address this.

Well i did contact the maintainer. Hr promised to check OSMC in VM.
NPM is installed (otherwise npm install wouldn’t run - right?)

And as this package gets installed without a hitch on raspbian and debian 8 - it means that some customiztion in osmc is bringing up some mistake

No it does not.
We do not package Node, so there are no OSMC customisations.

More than likely, you are using completely different versions of Node on OSMC and Raspbian, particularly as Raspbian is armv6l and Node does not officially package for this architecture. Check your versions, they will almost certainly be different.

Not that much of a linux guru but

Raspbian
ii nodejs 6.9.5-1nodesource1~jessie1 armhf Node.js event-based server-side javascript engine
OSMC
ii nodejs 6.9.5-1nodesource1~jessie armhf Node.js event-based server-side javascript engine

Can’t see much of a difference

Did you check /roomass/room-assistant/npm-debug.log for clues?

I think the error has given you enough clues to explore the problem.

Thank you for helping out. Just tried a clean reinstall. And then

#sudo su
#curl -sL https://deb.nodesource.com/setup_6.x | bash -
#apt-get install -y nodejs
#apt-get install git bluetooth bluez libbluetooth-dev libudev-dev libusb-1.0-0-dev build-essential
#cd /
#mkdir room
#cd room
#git clone https://github.com/mKeRix/room-assistant.git
#cd room-assistant
#npm install

This is the end of the log

29250 silly install har-validator@2.0.6 /room/room-assistant/node_modules/.staging/har-validator-655ba13b
29251 info lifecycle har-validator@2.0.6~install: har-validator@2.0.6
29252 silly lifecycle har-validator@2.0.6~install: no script for install, continuing
29253 silly install request@2.79.0 /room/room-assistant/node_modules/.staging/request-61edfc82
29254 info lifecycle request@2.79.0~install: request@2.79.0
29255 silly lifecycle request@2.79.0~install: no script for install, continuing
29256 silly install node-pre-gyp@0.6.31 /room/room-assistant/node_modules/.staging/node-pre-gyp-75f934e3
29257 info lifecycle node-pre-gyp@0.6.31~install: node-pre-gyp@0.6.31
29258 silly lifecycle node-pre-gyp@0.6.31~install: no script for install, continuing
29259 silly install node-hid@0.5.4 /room/room-assistant/node_modules/.staging/node-hid-52acffaf
29260 info lifecycle node-hid@0.5.4~install: node-hid@0.5.4
29261 verbose lifecycle node-hid@0.5.4~install: unsafe-perm in lifecycle false
29262 verbose lifecycle node-hid@0.5.4~install: PATH: /usr/lib/node_modules/npm/bin/node-gyp-bin:/room/room-assistant/node_modules/node-hid/node_module                                                                                                                        s/.bin:/room/room-assistant/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
29263 verbose lifecycle node-hid@0.5.4~install: CWD: /room/room-assistant/node_modules/node-hid
29264 silly lifecycle node-hid@0.5.4~install: Args: [ '-c', 'node-pre-gyp install --fallback-to-build' ]
29265 silly lifecycle node-hid@0.5.4~install: Returned: code: 1  signal: null
29266 info lifecycle node-hid@0.5.4~install: Failed to exec install script
29267 verbose unlock done using /root/.npm/_locks/staging-30efd397577551f1.lock for /room/room-assistant/node_modules/.staging
29268 silly rollbackFailedOptional Starting
29269 silly rollbackFailedOptional Finishing
29270 silly runTopLevelLifecycles Finishing
29271 silly install printInstalled
29272 warn optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/noble/node_modules/xpc-connection):
29273 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"lin                                                                                                                        ux","arch":"arm"})
29274 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
29274 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
29274 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   linux
29274 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: arm
29275 verbose stack Error: node-hid@0.5.4 install: `node-pre-gyp install --fallback-to-build`
29275 verbose stack Exit status 1
29275 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
29275 verbose stack     at emitTwo (events.js:106:13)
29275 verbose stack     at EventEmitter.emit (events.js:191:7)
29275 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
29275 verbose stack     at emitTwo (events.js:106:13)
29275 verbose stack     at ChildProcess.emit (events.js:191:7)
29275 verbose stack     at maybeClose (internal/child_process.js:877:16)
29275 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
29276 verbose pkgid node-hid@0.5.4
29277 verbose cwd /room/room-assistant
29278 error Linux 4.4.27-7-osmc
29279 error argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
29280 error node v6.9.5
29281 error npm  v3.10.10
29282 error code ELIFECYCLE
29283 error node-hid@0.5.4 install: `node-pre-gyp install --fallback-to-build`
29283 error Exit status 1
29284 error Failed at the node-hid@0.5.4 install script 'node-pre-gyp install --fallback-to-build'.
29284 error Make sure you have the latest version of node.js and npm installed.
29284 error If you do, this is most likely a problem with the node-hid package,
29284 error not with npm itself.
29284 error Tell the author that this fails on your system:
29284 error     node-pre-gyp install --fallback-to-build
29284 error You can get information on how to open an issue for this project with:
29284 error     npm bugs node-hid
29284 error Or if that isn't available, you can get their info via:
29284 error     npm owner ls node-hid
29284 error There is likely additional logging output above.
29285 verbose exit [ 1, true ]

I do not believe this is OSMC related
You need to take it up with the developer