acces to LM standard directories and files - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: General (https://forum.logicmachine.net/forumdisplay.php?fid=2) +--- Thread: acces to LM standard directories and files (/showthread.php?tid=1311) |
acces to LM standard directories and files - SigmaTec - 26.03.2018 Hi all, could you indicate to me how to know the directories names (and paths) of a HomeLYnk/SpaceLYnk machine ? My objective to reach is to update an image in a plan, using JS, using standard user graphic library. Secondary question : have you got a doc to use ftp mecanism (or other) to upload file (as graphical one...) ? Thank's in advance and have a very good week. Dominique RE: acces to LM standard directories and files - admin - 26.03.2018 Plan images cannot be accessed via FTP. When accessing FTP with apps logic, there's user directory which is accessible from HTTP as http://LM_IP/user/ RE: acces to LM standard directories and files - Erwin van der Zwart - 26.03.2018 Hi, You probably want to change the image source dynamic on a KNX value, you can do that like this: 1) Add a few icons to the icons tab, and name them icon_1.png, icon_2.png, icon_3.png etcetera 2) Add a byte object (40/1/15 in this sample) 3) Add a image element to the visu with a additional class (in the sample it's "icoon" and don't use "icon" as its a default used class) 4) Use this custom JS to make it happen Code: $(function(){ Erwin RE: acces to LM standard directories and files - SigmaTec - 26.03.2018 Hi Erwin, it works !.. I change "/scada/resources/img" to "/scada/resources/icons" to reach icons libray. PS : I could have used Inspector in the webpage, sorry for taking time with this question. Have a good monday, Dominique RE: acces to LM standard directories and files - Erwin van der Zwart - 26.03.2018 Hi, No problem, most scripts i share are already created for projects, and then it's a matter of copy/paste. This one was created to have a dynamic weather icon on a site. BR, Erwin RE: acces to LM standard directories and files - JMM - 27.03.2018 Hi, And why do not to use directly "Additional Icons"? BR JMM RE: acces to LM standard directories and files - Erwin van der Zwart - 27.03.2018 Hi, Yes also possible, this is just to show you can do whatever you like .. With this method you can also change background images dynamic, by using the plan ID #layout-x, something that you won't be able to do normally. On the site where we used this we had a image URL from the service that we used to have dynamic images from the internet, that you won't be able to do from object level. There are so many ways to Rome (: BR, Erwin |