General advice on App Development
Posted: 17 Sep 2023 23:59
Is there any gereral advice on building apps for Z-Way somewhere? I've read the very concise section in the manual: https://z-wave.me/files/manual/z-way/Sp ... 0000000000, and watched the following YouTube tutorial https://www.youtube.com/watch?v=WehgQUIiFK0&t=103s, which was an useful start. However, none of these provide any guidance on how to test and debug your app when developing it.
E.g. user module code appears to be cached. When I make a change I'm seeing error messages (in z-way-server.log) for code that I have since replaced or deleted. Removing and re-installing the app (from the 'Active Apps' page) doesn't work, nor does stopping and restarting the Z-Way server. The only way around it is rebooting the Pi, but that makes it a very laborious process. Is there any qucker way ro clear and reload the app?
For info, I have done some JS development (mainly jQuery, however) in the past, but that was all browser-based. I have more experiance in PHP / Python / Bash development.
I'd be grateful for any further help anybody could provide.
--
Sion
E.g. user module code appears to be cached. When I make a change I'm seeing error messages (in z-way-server.log) for code that I have since replaced or deleted. Removing and re-installing the app (from the 'Active Apps' page) doesn't work, nor does stopping and restarting the Z-Way server. The only way around it is rebooting the Pi, but that makes it a very laborious process. Is there any qucker way ro clear and reload the app?
For info, I have done some JS development (mainly jQuery, however) in the past, but that was all browser-based. I have more experiance in PHP / Python / Bash development.
I'd be grateful for any further help anybody could provide.
--
Sion