Logic Machine Forum
Advanced visualization techniques - 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: Advanced visualization techniques (/showthread.php?tid=65)



Advanced visualization techniques - Pawel - 19.08.2015

I saw many great things which can be done with scripts, like playing sounds on visualization page.

For a large project I need to show on the visualization picture from IP camera. Its obvious possible, but I need to show this when some KNX group is updated. 
The question is, it is possible to pop-up widget or other element via KNX group. I saw, that to show widget, button changes class of widget, form hide to show, but I can't figure how to do this without Java.

Other think, it is possible to dynamically change color of a label? From script with sound I know that it is possible to add (by script) some element to visualization page, but this force us to refresh page to see changes. Maybe there is some other way to do that?


RE: Advanced visualization techniques - admin - 20.08.2015

For now you can only write custom JavaScript inside SVG. I'll provide a couple of examples later on.


RE: Advanced visualization techniques - admin - 20.08.2015

Attached is SVG label example which changes color and text based on current binary object value. You can edit SVG with any text editor and change group address from '1/1/1' to the one you require.


RE: Advanced visualization techniques - Pawel - 20.08.2015

maybe I done something wrong, but this example doesn't work at all. i add to your logic machine (http://4n.lv:7999/) new plan, named "label text" and nothing happens.


RE: Advanced visualization techniques - admin - 21.08.2015

Forgot to mention that you cannot use it as object icon, it must be placed as an image, otherwise scripting will not work.