Javascript Module Development Questions
Posted: 24 Aug 2015 23:52
I'm starting to play with writing user modules for the RaZberry and I have a few questions about the process:
* Modules placed in the userModules won't be overwritten when updating the server software?
* Is there an easier way for the server to recognize changes to the module other than restarting the z-way service?
* Are all files added to the automation/lib directory added to the server/context? Specifically I want to add moment.js
* I'm new to 'embedded' javascript and I'm having some problems understanding http.request(). I understand that z-way uses V8. Is http.request available as part of V8 or is it added somewhere else? Is there any documentation available for it?
* Do you think it would be safe to use node.js to run tests on my code on my development machine before deploying it to the server?
Thanks in advance!
* Modules placed in the userModules won't be overwritten when updating the server software?
* Is there an easier way for the server to recognize changes to the module other than restarting the z-way service?
* Are all files added to the automation/lib directory added to the server/context? Specifically I want to add moment.js
* I'm new to 'embedded' javascript and I'm having some problems understanding http.request(). I understand that z-way uses V8. Is http.request available as part of V8 or is it added somewhere else? Is there any documentation available for it?
* Do you think it would be safe to use node.js to run tests on my code on my development machine before deploying it to the server?
Thanks in advance!