Logic Machine Forum
Page opening at event - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Page opening at event (/showthread.php?tid=6110)



Page opening at event - Frank68 - 10.09.2025

Hi
Is it possible to open a page with an event, is it possible to put the page in front without changing the background page?

tank's

Claudio


RE: Page opening at event - Daniel - 10.09.2025

Which visualization tool do you use?


RE: Page opening at event - Frank68 - 10.09.2025

(10.09.2025, 09:43)Daniel Wrote: Which visualization tool do you use?
Visu.


RE: Page opening at event - Novodk - 10.09.2025

Custom JS:
Code:
localbus.listen('object', '0/0/1', (value) => {
  if (value) {
    Visu.showPlan(12);
  }
  else {
    Visu.showPlan(5);
  }
});
Replace number with visu page id found in URL: http://192.168.0.10/apps/data/visu/#12

Visu.showPlan(12) is when ga 0/0/1 is ON and  Visu.showPlan(5); is when 0/0/1 is OFF

If it is for a doorbell, you can put an event script on 0/0/1 to set it back to OFF after a certain time


RE: Page opening at event - Frank68 - 11.09.2025

(10.09.2025, 13:28)Frank68 Wrote:
(10.09.2025, 09:43)Daniel Wrote: Which visualization tool do you use?
Visu.

I need this on old visu where do I find the page number?


RE: Page opening at event - Daniel - 11.09.2025

Old visu use different, see this
https://forum.logicmachine.net/showthread.php?tid=275