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.

Alert manager ipk
#1
Good morning Dev,
Could be possible have the ipk file for app in object? I have a client without internet connection.
Could be interesting open a section with all this file. Now a day happens often LM not connected to web.
Best regards Cristian
Reply
#2
https://forum.logicmachine.net/showthrea...3#pid22783
------------------------------
Ctrl+F5
Reply
#3
Hello Dears,
I want to use the app acknowledge to trigger a GA, to be used for a KNX Touch screen acknowledgement
Best Regards,
Reply
#4
This is not possible in Alert app.
------------------------------
Ctrl+F5
Reply
#5
Only possible when the app is embedded via iframe into your visu, here is a sample custom JS that makes some interaction possible:
Code:
$(function() {


    // Remote Press Acknowledge Button
    $(document).ready(function() {
        var f = $('iframe');
        f.load(function() {
            if (typeof grp != 'undefined') {
                grp.listen('0/3/0', function(object, state) {
                    if (state == 'value' && object.value == true) {
                        f.contents().find('#AcknowledgeButton').click();
                    }
                }, true);
            }
        });
    });

    // Remote Press Mute Button
    $(document).ready(function() {
        var f = $('iframe');
        f.load(function() {
            if (typeof grp != 'undefined') {
                grp.listen('0/3/1', function(object, state) {
                    if (state == 'value' && object.value == true) {
                        f.contents().find('#MuteButton').click();
                    }
                }, true);
            }
        });
    });

    // Write to object when Acknowledge is pressed by a user
    $(document).ready(function() {
        var f = $('iframe');
        f.load(function() {
            f.contents().find('#AcknowledgeButton').click(function() {
                grp.write('0/2/0', false)
            });
        });
    });


    // Write to object when Mute is pressed by a user
    $(document).ready(function() {
        var f = $('iframe');
        f.load(function() {
            f.contents().find('#MuteButton').click(function() {
                grp.write('0/2/0', true)
            });
        });
    });

    // Hide Acknowledge Button
    $(document).ready(function() {
        var f = $('iframe');
        f.load(function() {
            f.contents().find('#AcknowledgeButton').hide();
        });
    });

    // Hide Mute Button
    $(document).ready(function() {
        var f = $('iframe');
        f.load(function() {
            f.contents().find('#MuteButton').hide();
        });
    });

});
Reply


Forum Jump: