Reloading usermodules

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
Provo
Posts: 112
Joined: 19 Oct 2016 19:54

Reloading usermodules

Post by Provo »

When working on a usermodule, it's frequently necessary to reload the module. Is there a better and easier way of doing that than restarting the whole z-way-server service?
Provo
Posts: 112
Joined: 19 Oct 2016 19:54

Re: Reloading usermodules

Post by Provo »

Never mind, I found that according to the documentation on apiary, the API supports the following API call:
/v1/modules/reinitialize/{module-id} - stops all instances of module, reloads JS and meta data and starts instances again - useful for module development.
I've yet to try, but I'm sure it works.
jet11x
Posts: 53
Joined: 29 Dec 2014 21:15

Re: Reloading usermodules

Post by jet11x »

The above does work and is very useful. I've found the only occasionally a full restart is required.
Post Reply