Parrot-Developers / node-flower-bridge

[Ble/Cloud bridge] Synchronize your Flower Powers with a raspberry. Now you can take holidays safely.
BSD 3-Clause "New" or "Revised" License
36 stars 21 forks source link

problem in raspi #3

Closed fildy closed 4 years ago

fildy commented 8 years ago

Hi, i try to install in raspi. ble ok, node ok. when I run the bridge display it shows this

-- Flower Bridge --

module.js:341 throw err; ^

Error: Cannot find module 'bluetooth-hci-socket' at Function.Module._resolveFilename (module.js:339:15) at Function.Module._load (module.js:290:25) at Module.require (module.js:367:17) at require (internal/module.js:16:19) at Object. (/home/pi/Downloads/node-flower-bridge-master/node_modules/noble/lib/hci-socket/hci.js:6:26) at Module._compile (module.js:413:34) at Object.Module._extensions..js (module.js:422:10) at Module.load (module.js:357:32) at Function.Module._load (module.js:314:12) at Module.require (module.js:367:17)

is there something that I miss?

fildy commented 8 years ago

sudo hciconfig hci0 up nothing shows

sudo hciconfig hci0: Type: BR/EDR Bus: USB BD Address: 5C:F3:70:70:54:93 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING RX bytes:616 acl:0 sco:0 events:34 errors:0 TX bytes:380 acl:0 sco:0 commands:34 errors:0

is it normal?

On Fri, Feb 12, 2016 at 8:54 PM, Ralph Punga-Kronbergs < notifications@github.com> wrote:

Did 'sudo hciconfig hci0 up' work fine?

— Reply to this email directly or view it on GitHub https://github.com/Parrot-Developers/node-flower-bridge/issues/3#issuecomment-183466409 .

RalphPungaKronbergs commented 8 years ago

That all looks good.

Did you ran into any error messages while installing node-flower-bridge?

Am 13.02.2016 um 11:26 schrieb fildy:

sudo hciconfig hci0 up nothing shows

sudo hciconfig hci0: Type: BR/EDR Bus: USB BD Address: 5C:F3:70:70:54:93 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING RX bytes:616 acl:0 sco:0 events:34 errors:0 TX bytes:380 acl:0 sco:0 commands:34 errors:0

is it normal?

On Fri, Feb 12, 2016 at 8:54 PM, Ralph Punga-Kronbergs < notifications@github.com> wrote:

Did 'sudo hciconfig hci0 up' work fine?

— Reply to this email directly or view it on GitHub

https://github.com/Parrot-Developers/node-flower-bridge/issues/3#issuecomment-183466409 .

— Reply to this email directly or view it on GitHub https://github.com/Parrot-Developers/node-flower-bridge/issues/3#issuecomment-183639918.

fildy commented 8 years ago

No error.

On Sat, 13 Feb 2016 at 21:33, Ralph Punga-Kronbergs < notifications@github.com> wrote:

That all looks good.

Did you ran into any error messages while installing node-flower-bridge?

Am 13.02.2016 um 11:26 schrieb fildy:

sudo hciconfig hci0 up nothing shows

sudo hciconfig hci0: Type: BR/EDR Bus: USB BD Address: 5C:F3:70:70:54:93 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING RX bytes:616 acl:0 sco:0 events:34 errors:0 TX bytes:380 acl:0 sco:0 commands:34 errors:0

is it normal?

On Fri, Feb 12, 2016 at 8:54 PM, Ralph Punga-Kronbergs < notifications@github.com> wrote:

Did 'sudo hciconfig hci0 up' work fine?

— Reply to this email directly or view it on GitHub

< https://github.com/Parrot-Developers/node-flower-bridge/issues/3#issuecomment-183466409

.

— Reply to this email directly or view it on GitHub < https://github.com/Parrot-Developers/node-flower-bridge/issues/3#issuecomment-183639918 .

— Reply to this email directly or view it on GitHub https://github.com/Parrot-Developers/node-flower-bridge/issues/3#issuecomment-183748372 .

RalphPungaKronbergs commented 8 years ago

What distri are you using?

It's working fine with Jessie here...

Am 14.02.2016 um 07:43 schrieb fildy:

No error.

On Sat, 13 Feb 2016 at 21:33, Ralph Punga-Kronbergs < notifications@github.com> wrote:

That all looks good.

Did you ran into any error messages while installing node-flower-bridge?

Am 13.02.2016 um 11:26 schrieb fildy:

sudo hciconfig hci0 up nothing shows

sudo hciconfig hci0: Type: BR/EDR Bus: USB BD Address: 5C:F3:70:70:54:93 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING RX bytes:616 acl:0 sco:0 events:34 errors:0 TX bytes:380 acl:0 sco:0 commands:34 errors:0

is it normal?

On Fri, Feb 12, 2016 at 8:54 PM, Ralph Punga-Kronbergs < notifications@github.com> wrote:

Did 'sudo hciconfig hci0 up' work fine?

— Reply to this email directly or view it on GitHub

<

https://github.com/Parrot-Developers/node-flower-bridge/issues/3#issuecomment-183466409

.

— Reply to this email directly or view it on GitHub <

https://github.com/Parrot-Developers/node-flower-bridge/issues/3#issuecomment-183639918

.

— Reply to this email directly or view it on GitHub

https://github.com/Parrot-Developers/node-flower-bridge/issues/3#issuecomment-183748372 .

— Reply to this email directly or view it on GitHub https://github.com/Parrot-Developers/node-flower-bridge/issues/3#issuecomment-183836715.

fildy commented 8 years ago

I'm using jessi too I have 2 flower power and recognized with ble.

On Sun, 14 Feb 2016 at 12:04, Ralph Punga-Kronbergs < notifications@github.com> wrote:

What distri are you using?

It's working fine with Jessie here...

Am 14.02.2016 um 07:43 schrieb fildy:

No error.

On Sat, 13 Feb 2016 at 21:33, Ralph Punga-Kronbergs < notifications@github.com> wrote:

That all looks good.

Did you ran into any error messages while installing node-flower-bridge?

Am 13.02.2016 um 11:26 schrieb fildy:

sudo hciconfig hci0 up nothing shows

sudo hciconfig hci0: Type: BR/EDR Bus: USB BD Address: 5C:F3:70:70:54:93 ACL MTU: 1021:8 SCO MTU: 64:1 UP RUNNING RX bytes:616 acl:0 sco:0 events:34 errors:0 TX bytes:380 acl:0 sco:0 commands:34 errors:0

is it normal?

On Fri, Feb 12, 2016 at 8:54 PM, Ralph Punga-Kronbergs < notifications@github.com> wrote:

Did 'sudo hciconfig hci0 up' work fine?

— Reply to this email directly or view it on GitHub

<

https://github.com/Parrot-Developers/node-flower-bridge/issues/3#issuecomment-183466409

.

— Reply to this email directly or view it on GitHub <

https://github.com/Parrot-Developers/node-flower-bridge/issues/3#issuecomment-183639918

.

— Reply to this email directly or view it on GitHub

< https://github.com/Parrot-Developers/node-flower-bridge/issues/3#issuecomment-183748372

.

— Reply to this email directly or view it on GitHub < https://github.com/Parrot-Developers/node-flower-bridge/issues/3#issuecomment-183836715 .

— Reply to this email directly or view it on GitHub https://github.com/Parrot-Developers/node-flower-bridge/issues/3#issuecomment-183874384 .

bsautron commented 8 years ago

Hi, what is the your raspi model? https://github.com/sandeepmistry/noble/issues/253

mbuffat commented 8 years ago

using a raspberry B+, I had the same problem It is related to the version of nodejs. You have to install the right nodejs for the B+ and not the nodejs for new raspberry pi 2 with node_latest_armhf.deb on jessie it works (but not with the version found on nodesource)

fildy commented 8 years ago

I'm using Raspberry Pi 2 Model B .

On Tue, Feb 16, 2016 at 5:12 PM, Marc BUFFAT notifications@github.com wrote:

using a raspberry B+, I had the same problem It is related to the version of nodejs. You have to install the right nodejs for the B+ and not the nodejs for new raspberry pi 2 with node_latest_armhf.deb on jessie it works (but not with the version found on nodesource)

— Reply to this email directly or view it on GitHub https://github.com/Parrot-Developers/node-flower-bridge/issues/3#issuecomment-184749587 .