Search found 3 matches

by TheJoyOfPainting
07 Oct 2017 16:07
Forum: Discussions in English
Topic: Javascript automation module
Replies: 3
Views: 3969

Re: Javascript automation module

Thank you PoltoS. I have read the documentation and it does not correspond with the actions in the automation controller logic. The documentation states that if the module.json file has a property ''autoload' then the module will automatically be instantiated on z-way service startup. However, I hav...
by TheJoyOfPainting
07 Oct 2017 01:07
Forum: Discussions in English
Topic: Javascript automation module
Replies: 3
Views: 3969

Javascript automation module

Hi guys, I've been trying to write a javascript automation module that is loaded and initialised when the z-way service starts. I can see that the module is loaded with a simple console.log inside the index.js but the init method never gets called. How can I configure the module to be instantiated a...
by TheJoyOfPainting
04 Oct 2017 13:27
Forum: RaZberry
Topic: Javascript module not initializing
Replies: 1
Views: 2948

Javascript module not initializing

Hi guys, I am trying to create a javascript automation module but I'm are having trouble getting the module initialized. I can see from the z-way-server.log file that the module is loaded but the init method is not being called. The index.js and module.json files are very simple. Heres the index.js ...