Logic Machine Forum
Timer and Visualization - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Timer and Visualization (/showthread.php?tid=4394)



Timer and Visualization - johan84 - 23.11.2022

Hello!

I have customer who has a warehouse. In the warehouse there is several KNX-presence detektors turning the Dali lights on and off.

Now the customer asks me if he can change the "light-on" time by himself, and i thought i´d put a LM5 and a script to manage this. 

My question is: 
Can I make a visualization where the customer can set time (hour, min, sec) and then the script picks up this time?

Any ideas on how this script should look like? Rolleyes


RE: Timer and Visualization - Novodk - 23.11.2022

(23.11.2022, 15:29)johan84 Wrote: Hello!

I have customer who has a warehouse. In the warehouse there is several KNX-presence detektors turning the Dali lights on and off.

Now the customer asks me if he can change the "light-on" time by himself, and i thought i´d put a LM5 and a script to manage this. 

My question is: 
Can I make a visualization where the customer can set time (hour, min, sec) and then the script picks up this time?

Any ideas on how this script should look like? Rolleyes
I don't think you need a script, just make a GA with the relevant Object from the presence detector and put it into your visualization.
[Image: image.png]


RE: Timer and Visualization - Daniel - 23.11.2022

Check this
https://forum.logicmachine.net/showthread.php?tid=737&pid=4175#pid4175


RE: Timer and Visualization - johan84 - 23.11.2022

(23.11.2022, 15:52)Novodk Wrote:
(23.11.2022, 15:29)johan84 Wrote: Hello!

I have customer who has a warehouse. In the warehouse there is several KNX-presence detektors turning the Dali lights on and off.

Now the customer asks me if he can change the "light-on" time by himself, and i thought i´d put a LM5 and a script to manage this. 

My question is: 
Can I make a visualization where the customer can set time (hour, min, sec) and then the script picks up this time?

Any ideas on how this script should look like? Rolleyes
I don't think you need a script, just make a GA with the relevant Object from the presence detector and put it into your visualization.
[Image: image.png]


Rolleyes Oh, yes there actually was this input! I didnt notice it until you made me check! Thank you so much Smile Smile  Now i´ll just have to buy a LM5!


RE: Timer and Visualization - johan84 - 24.11.2022

So i´ve made this widget in Mosaic. Can i import this to the Visualization? Or make one in the Visualization?


[Image: H2QSv6l.png]


RE: Timer and Visualization - admin - 24.11.2022

Use Custom value select element type: https://forum.logicmachine.net/showthread.php?tid=1340&pid=8076#pid8076


RE: Timer and Visualization - johan84 - 24.11.2022

(24.11.2022, 07:44)admin Wrote: Use Custom value select element type: https://forum.logicmachine.net/showthread.php?tid=1340&pid=8076#pid8076

Thank you!! Heart