Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Events.js error on start up. #121

Open
paulTSB opened this issue Jun 26, 2015 · 4 comments
Open

Events.js error on start up. #121

paulTSB opened this issue Jun 26, 2015 · 4 comments

Comments

@paulTSB
Copy link

paulTSB commented Jun 26, 2015

Hi,
I'm trying to run this on a Raspberry pi model B (512mb).
I've tried running it using node heimcontrol.js and sudo node heimcontrol.js but I still get the same error:

Failed to load c++ bson extension, using pure JS version
info - socket.io started
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0
heimcontrol.js listening on port 8080
events.js:85
throw er; // Unhandled 'error' event
^
Error: Cannot open /dev/usb
at Error (native)

I installed it all from source following the instructions step by step and Mogodb is running fine and there we no errors during installation.

@demonic645
Copy link

Hi,

Just for interest sake is you arduino plugged in to the raspberry pi?
You also need to be in the heimcontrol.js folder to run it with node heimcontrol.js.

Are you maybe trying too run heimcontrol.js from a usb?

@paulTSB
Copy link
Author

paulTSB commented Jun 27, 2015

Hi, thanks for replying. My arduino is attached via the usb port. The pi is
headless and I'm connecting to the pi via ssh from Linux mint. I've tried
running the script from the. Heimcontrol folder using both sudo and without
sudo.
Cheers.
Paul.
On 27 Jun 2015 11:11, "Rohan" notifications@github.com wrote:

Hi,

Just for interest sake is you arduino plugged in to the raspberry pi?
You also need to be in the heimcontrol.js folder to run it with node
heimcontrol.js.

Are you maybe trying too run heimcontrol.js from a usb?


Reply to this email directly or view it on GitHub
#121 (comment)
.

@ni-c
Copy link
Owner

ni-c commented Jun 28, 2015

Hi,

Error: Cannot open /dev/usb

can please you run

ls -l /dev | grep -E 'usb|ttyACM*|ttyS0'

and post the output here?

@paulTSB
Copy link
Author

paulTSB commented Jun 29, 2015

Hi,
After a couple of reboots and attaching and reattaching my Arduino, it no longer throws this error but it still wont run. I'll start a new issue because it seems to be a completely different error code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants