Posts: 4776
Threads: 24
Joined: Aug 2017
Reputation:
216
It will work in a frame if LM has internet access.
------------------------------
Ctrl+F5
Posts: 4776
Threads: 24
Joined: Aug 2017
Reputation:
216
Make sure to enable: Allow external access via iframe: in Vis. configuration.
------------------------------
Ctrl+F5
Posts: 11
Threads: 2
Joined: Jun 2019
Reputation:
0
Thanks it worked.
But is it possible to create a own widget with that template in that linked i wrote before?
Posts: 4776
Threads: 24
Joined: Aug 2017
Reputation:
216
LM can rune any html code but you must create it first. You can upload any html page to user directory in apps ftp.
You can even make your own app which will do it.
https://kb.logicmachine.net/misc/apps/
------------------------------
Ctrl+F5
Posts: 7876
Threads: 42
Joined: Jun 2015
Reputation:
450
Try enabling persistent mode for the frame.
Posts: 11
Threads: 2
Joined: Jun 2019
Reputation:
0
I have uploaded a html page, to the user mapp in the ftp.
Tried to make a frame it in the visu, like "http://192.168.70.40/user/tidur/html" but I dont get any page shown. Also tried to "192.168.70.40/user/tidur.html" then I got "404 not found"
I'm doing something wrong?
Posts: 4776
Threads: 24
Joined: Aug 2017
Reputation:
216
Share the files you uploaded to user directory
------------------------------
Ctrl+F5
Posts: 4776
Threads: 24
Joined: Aug 2017
Reputation:
216
Try this, works for me.
/user/tidur.html
------------------------------
Ctrl+F5
Posts: 11
Threads: 2
Joined: Jun 2019
Reputation:
0
Thanks, works now.
Removed the Ipadress.
Posts: 4776
Threads: 24
Joined: Aug 2017
Reputation:
216
Can I ask, what is it for? I can't came up with any use case
------------------------------
Ctrl+F5
Posts: 942
Threads: 161
Joined: Jul 2015
Reputation:
33
It looks that there is some small bug in this stopwatch. When minutes has some value higher than "00" clicking on the reset button doesn't reset the minutes. It starts to work when using appendMinutes.textContent = "00" instead of appendMinutes.innerHMTL = minutes in resetBtn.onclick function.
And it would be more precise with using Date.now() instead of incrementing tens in setInterval which isn't perfect for this purpose because it can be snoozed by a browser when you will switch the tab and restarted when you will return to it.
Done is better than perfect
Posts: 11
Threads: 2
Joined: Jun 2019
Reputation:
0
I'm building a visualization for a theater. The function has nothing to do with lighting or anything to do with the building itself.
It's for the stage manager who starts it on a touch screen to keep track of the program time.
They had an old hmi panel that controlled lighting and other things, which also had a timer on it, so they asked if we could fix the same function.
Okay, thanks!
I haven't tested the timer "properly" but found a ready-made template on the internet. I'm not really a coder myself, so I'll try changing the things you found.