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.

Icon visulaizion and touch
#1
When you have an icon / shortcut on your tablet or mobile phone, I usually add "desktop to desktop" in browser. Is there anyone able to change the icon that comes on the desktop? Is there a way in LM5 lite to enter the desired icon?
Reply
#2
It's not supported directly, but can be done via a script. You need to upload visualization.png and touch.png via FTP to LM. Note that you need to clear cache after this and icons will be reset after firmware upgrade.

Code:
data = io.readfile('/home/ftp/visualization.png')
if data then
  io.writefile('/www/scada/resources/images/visualization.png', data)
end

data = io.readfile('/home/ftp/touch.png')
if data then
  io.writefile('/www/scada/resources/images/touch.png', data)
end
Reply
#3
Thank you, I have uploaded two files via FTP, but where should the script be? event-resident-user libaries-commond functions or start-up?
Is there any requirement that the size of the picture
Reply
#4
You just need to run it once so it can be event or resident but make sure you disable it after one run, you can add a log to see if it went trough.
------------------------------
Ctrl+F5
Reply
#5
Unfortunately, I do not get this to work, have now created a resident script, set the interval to 30sec, pasted the script I received, enabled the script and immediately disabled it. When I see in the "show logs window" there are no error messages.
I'm now trying on a spacelynk because I had no access to the LM now
Reply
#6
Add this on the end of script

Code:
log('script did run once')
-- Disable script when done automaticly
script.disable(_SCRIPTNAME)

You will see such log in logs and script will disable itself so you just have to enable it.
------------------------------
Ctrl+F5
Reply
#7
I've managed to change the others like it's barked over, bu is it avble to change the icon to Mosaic/Touch favicon?
Reply
#8
Hi everybody !
I really don't know where to copy the 2 files that need to be changed to be able to do it. Can someone tell me where to copy it? Sad .I also tried copying it to several places, then running the script but it didn't work

Attached Files Thumbnail(s)
   
Reply
#9
You need to use ftp login/username, not apps. Upload files directly to the root directory.
Reply
#10
oh, I was wrong, thank you!
Can you tell me, now that I'm here, how can I replace the LM Icon every time I create a shortcut on the home screen?
I don't see a folder at all Sad Empty ..
Thank everyone !

Attached Files Thumbnail(s)
   
Reply
#11
Follow instructions from this post: https://forum.logicmachine.net/showthrea...3#pid10573
Reply
#12
(30.05.2024, 04:36)admin Wrote: Follow instructions from this post: https://forum.logicmachine.net/showthrea...3#pid10573

Why did you bring me back to this place? I don't quite understand yet Sad
Reply
#13
You need to upload visualization.png and touch.png to the root directory of FTP (the one that is empty right now). Then run the script from the previous post.
Reply


Forum Jump: