Page 1 of 1

JavaScript extensions sample code available

Posted: 27 Mar 2015 02:07
by PoltoS
We are happy to announce that from now you can write your own modules to JavaScript engine adding new JavaScript native objects. Now you are not limited to XML parser, HTTP requests, TCP/UDP sockets, crypto functions!

What can you do? GPIO or 1-wire module for your Pi or C/C++ level bindings to your favorite library.

Get more info on http://razberry.z-wave.me/index.php?id=15 (bottom of the page)

Re: JavaScript extensions sample code available

Posted: 05 Sep 2015 21:15
by pz1
PoltoS wrote: What can you do? GPIO or 1-wire module for your Pi or C/C++ level bindings to your favorite library.

Get more info on http://razberry.z-wave.me/index.php?id=15 (bottom of the page)
Did not find anything relating to how I can write directly from JS to GPIO. Presently, to raise/lower my sunshades, I do write to GPIO using WiringPi and shell scripts. Would be more elegant to make a userModule that creates the proper standard virtual devices that can be used in scenes and logical rules.

Re: JavaScript extensions sample code available

Posted: 06 Sep 2015 12:11
by PoltoS
You can use their sources to port into native JS object. Or use shell as now

Re: JavaScript extensions sample code available

Posted: 06 Sep 2015 12:36
by pz1
PoltoS wrote:You can use their sources to port into native JS object. Or use shell as now
Thanks
Apparantly I misunderstood the original message about GPIO. I thought it was "added" to the JS environment just like the sockets were.