There are any NodeJS Library for manage GPIO?
- 
					
					
					
					
 Hi, I know that exists official python library for manage GPIO. 
 I would like a Node Library for manage gpio, and get values from a temp sensor or similar, because I have a Cayenne library (in node) for send values to dashboard, but I need read from onion.
 Thanks
 
- 
					
					
					
					
 Hi! There's a Johnny Five IO plugin: https://github.com/gunderson/omega2-io (i love J5  ) )It "simply" wrap fast-gpioexec, for ex:require( 'child_process' ).spawn( 'fast-gpio', params );If you don't want to use J5, you can code you own js driver (see https://github.com/gunderson/omega2-io/blob/master/lib/omega2.js#L97) (I haven't test it for now) 
 
- 
					
					
					
					
 Thanks @Balda , and with Johnny Five plugin, JF is running in Omega? I only hear about that using Arduino, but in that case running in PC the main code. I will try 
 
- 
					
					
					
					
 @Balda said in There are any NodeJS Library for manage GPIO?: If you don't want to use J5, you can code you own js driver (see https://github.com/gunderson/omega2-io/blob/master/lib/omega2.js#L97) (I haven't test it for now) I actually did not want to use the spawn function, I was expecting an official library, but for the moment I do not have another option hehe 
 
- 
					
					
					
					
 I haven't found any official NodeJS for the GPIO. But I did come across this last night: https://github.com/OnionIoT/onion-gpio-sysfs/blob/master/python/onionGpio.py It should be possible to create a library that could control the GPIO using the filesystem entries like this python code. 
 
- 
					
					
					
					
 In light of this thread, I whipped up: 
 http://community.onion.io/topic/2292/node-gpio-control-fast-gpio-wrapper
 
