ni-c / heimcontrol.js

Home-Automation with node.js and Raspberry PI
MIT License
1.41k stars 297 forks source link

Events.js error on start up. #121

Open paulTSB opened 9 years ago

paulTSB commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 https://github.com/ni-c/heimcontrol.js/issues/121#issuecomment-116001157 .

ni-c commented 9 years ago

Hi,

Error: Cannot open /dev/usb

can please you run

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

and post the output here?

paulTSB commented 9 years ago

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.