JavaScript extensions sample code available

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
User avatar
PoltoS
Posts: 7562
Joined: 26 Jan 2011 19:36

JavaScript extensions sample code available

Post 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)
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: JavaScript extensions sample code available

Post 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.
User avatar
PoltoS
Posts: 7562
Joined: 26 Jan 2011 19:36

Re: JavaScript extensions sample code available

Post by PoltoS »

You can use their sources to port into native JS object. Or use shell as now
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: JavaScript extensions sample code available

Post 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.
Post Reply