Using variables in visualization - 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: Using variables in visualization (/showthread.php?tid=517) |
Using variables in visualization - bmodeco - 16.12.2016 Hi all, Is there an easy way to use variables in the visualization? I would like to create a settings page for modifying variables which will be used in scripts but without creating knx-grp.addr. for each setting. thanks, Bart RE: Using variables in visualization - Erwin van der Zwart - 17.12.2016 Hi, I think the only easy way to do this with standard visu is by creating objects. You could consider to set a json object (stringified) with multiple vars to a 255 byte object with javascript and json.pdecode it on server side. You have to be sure it don't exceed the 255 chars in any case to avoid having a incomplete dataset on the server side. Another way (that i would use) is to create a html file as explained in the apps document and upload it to the app ftp user folder. Inside this html file you can use javascript or read/write to storage but also perform direct LUA from the .lp files. Not the most easy to start with, but when you master that you can build whatever you need. See: http://forum.logicmachine.net/showthread.php?tid=85&highlight=appstore BR, Erwin RE: Using variables in visualization - admin - 17.12.2016 Using objects is the easiest way. Just tick "no bus write" so your parameters are not sent to KNX/TP. |