jperkin / node-openzwave

node.js interface to libopenzwave
Other
110 stars 55 forks source link

Ubuntu & Mac npm install error #59

Open rbaindourov opened 8 years ago

rbaindourov commented 8 years ago

Hi There, Thanks for this package. This looks like its going to be the cure to most of my problems!

I'm just having some issues installing on Ubuntu. I have included the log file in this pastebin Its the result from this command sudo npm install -g openzwave > log.txt 2>&1 & npm 3.9.5 node 6.2.2

And on Mac as well. Here is the pastebin from my Mac. npm 3.10.2 node v6.2.2

I have forked and tried converting the ozwcp into a json api I can poll. But the all poll functionality is not working in their CP.

I'm trying to install your package to build an RESTful API over OpenZWave.

Thanks!

jperkin commented 8 years ago

Unfortunately this module doesn't yet support newer node releases. At some point I will convert it over to nan so that it works across all releases, as I've done for node-rpio, but need to find the time to do this.

rbaindourov commented 8 years ago

So it will compile on the PI! Or it should. That's my target environment anyway.

Thanks for the info! I was wondering about that. Having a heck of a time converting OZWCP into a pollable JSON API. Literally have 30 hours to get this working.

:)

jperkin commented 8 years ago

It should still work with nodejs up to 0.10, just not with 0.12 onwards as they changed the API.

rbaindourov commented 8 years ago

I misunderstood your original comment about node-rpio, Sorry.

So whats the level of effort, do you think on updating the API? This would open up a whole new world of development. Can you imagine writing a Control Panel in C++! That's what they are doing at OpenZWave. NodeJS would just blow the doors open on zwave development.

I think I will try to tackle this, if that's okay with you?