This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Updating and activating App from Lua Script
#5
Hi,

Here is the custom JS to refresh the browser by KNX command:
Code:
$(function(){
if (typeof grp != 'undefined') {
   grp.listen('32/0/1', function(object, state) {
     var value = object.value;
     if (state == 'value') {
       if (value == true) {
         location.reload();
       }
     }
   }, true);
}
});
Be sure to refresh the browser once to have this loaded after you have added it.

BR,

Erwin
Reply


Messages In This Thread
RE: Updating and activating App from Lua Script - by Erwin van der Zwart - 28.02.2019, 06:52

Forum Jump: