Page 1 of 1

NodeJS

Posted: Tue Mar 28, 2017 10:50 am
by mariusz7
Patric promised NodeJS support this year. Great!
Patrick wrote:We are working on NodeJS / Javascript support. This will be out in the new year.

-Patrick
In the mean time, I tried to follow Evan Tahler instructions: https://gist.github.com/evantahler/1574158 and

Code: Select all

apt-get install nodejs
failed with message:
Package nodejs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'nodejs' has no installation candidate
Patric, we are anxiously waiting for the good stuff.
I can recommend excellent package: https://github.com/RIAEvangelist/node-phidget-API
It is very well documented and I made it running on Raspberry Pi since Phidget SBC can not run NodeJS so far.

Re: NodeJS

Posted: Tue Mar 28, 2017 11:29 am
by Patrick
If you want to get Node.JS running on an SBC2/3 you would need to compile/cross-compile it yourself. Also, you would need to use the old 0.10 branch, as the newer branches require ARMv6 or newer, and the SBC3 only support ARMv5.

-Patrick

Re: NodeJS

Posted: Fri Apr 28, 2017 8:25 am
by mariusz7
@patric
You promised JavaScript support to be implemented in 2017.
viewtopic.php?f=7&t=6407
from your post:
viewtopic.php?f=7&t=8076
it looks that it will not happen, It is pointless to have NodeJS ver 0.10 in year 2017.
It would be better for Phidgets future to have language independent support via http, RESTfull APIs and websockets.

Re: NodeJS

Posted: Fri Apr 28, 2017 9:32 am
by Patrick
Lots of big things are coming out later this year. I can't give details just yet, and I can't promise timeline.

Node 0.10 is a limitation of the SBC3, and I agree that it's probably not the best idea to try running node on the SBC.

We will be releasing full node support, as well as full javascript support via a new phidgets server with websockets support.

-Patrick