Access server-side API
Posted: 07 Jun 2016 20:37
The documentation for Z-Way development, on page 11, refers to accessing the JS API on the server side:
"3. zway.devices[3].*: Server Side access using the JS and the public zway object"
How can I access the JS API server-side? Is there a JS file that I can include that defines the zway object and gives me access to the API? I am writing my own automation code and web server using nodejs and would much rather import a JS API than write code to make HTTP calls to 127.0.0.1:8083.
"3. zway.devices[3].*: Server Side access using the JS and the public zway object"
How can I access the JS API server-side? Is there a JS file that I can include that defines the zway object and gives me access to the API? I am writing my own automation code and web server using nodejs and would much rather import a JS API than write code to make HTTP calls to 127.0.0.1:8083.