Counter - 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: Counter (/showthread.php?tid=54) |
Counter - RSV4 - 01.08.2015 Hi all, I habe a counter in my intranet which shows how long a fan will still be running. On activation of the fan, I write the time value in seconds to a group address and activate a resident script with sleep time one second, which reduces the time left for the fan every second. Can this be done a bit more resource-friendly? Best regards, Robin RE: Counter - admin - 03.08.2015 You can increase resident script sleep time and you should use grp.update instead of grp.write. This kind of script should not affect the system load much anyway. RE: Counter - RSV4 - 10.08.2015 Thank you. What is the difference between grp.write and grp.update exactly? RE: Counter - edgars - 10.08.2015 grp.update updates the grp value in the local DB of LogicMachine without sending an actual telegram into KNX bus. grp.write updates the grp value and sends the new value as a telegram into KNX bus. RE: Counter - RSV4 - 10.08.2015 Ah, that makes a lot of sense. Will change this. Best regards! |