Resending timer script - 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: Resending timer script (/showthread.php?tid=2568) |
Resending timer script - Tokatubs - 06.04.2020 I am looking for a script that i can use to send a value every xx minutes. Found this that could work. But this is once, and i need it to resend for example every 30 minutes to pulse an output. Could anyone help me with such a script. Code: -- group address or name RE: Resending timer script - Erwin van der Zwart - 06.04.2020 Hi, Just create a resident script at 0 and insert this: Code: grp.write('1/1/1', true) Erwin RE: Resending timer script - Tokatubs - 06.04.2020 (06.04.2020, 21:34)Erwin van der Zwart Wrote: Hi, That simple.. I need a 0 in between, so i duplicated the scripts. But after testing, i guess this is not the correct way. Code: grp.write('32/1/1', true) RE: Resending timer script - davidchispas - 25.01.2021 Code: --Set temperature Hello, I modified this script to reset the temperature of a pool. How can I embed a 250 Byte String object for the remaining time state? RE: Resending timer script - admin - 25.01.2021 This will send a string like 1d 4h 3m to 1/1/1: Code: delta = os.time() - obj.updatetime RE: Resending timer script - davidchispas - 25.01.2021 (25.01.2021, 09:08)admin Wrote: This will send a string like 1d 4h 3m to 1/1/1:Hello Admin, something is not right since the account is ascending. RE: Resending timer script - admin - 25.01.2021 Try changing "delta - timeout" calculation in line 3 to "timeout - delta" RE: Resending timer script - davidchispas - 26.01.2021 (25.01.2021, 17:04)admin Wrote: Try changing "delta - timeout" calculation in line 3 to "timeout - delta" Code: --Set temperature Ok thanks, that's how it works. I want to get the counter reset to 0 when 'Tc' == 'TRef'. What can I add to the script? This script runs every 1 second to be immediate, but the timer status sends it every second, I changed it to check.uptade to correct that. My question is if it is better like this or run it every 60 seconds ....? To take advantage of this script to other functions, can I add seconds? I have tried but without positive result. RE: Resending timer script - davidchispas - 27.01.2021 Hello, a very strange thing happens to me and I cannot find an explanation. With this script I send the time status of the countdown (I had to change the data type to '14 bytes ASCII string 'to be able to view it on a KNX screen. The rest of the objects work perfectly and are displayed on the KNX bus, but the 14-byte object, when updated (it is perfectly green) in LM, is not sent to the bus and is not reflected on my screen. But if I send the value manually from the LM configuration panel, it is sent, also if I make a status request. Where can the error be? RE: Resending timer script - admin - 27.01.2021 Change checkupdate to checkwrite, update does not send to the TP bus. For seconds use this: Code: seconds = remaining % 60 RE: Resending timer script - davidchispas - 27.01.2021 (27.01.2021, 08:50)admin Wrote: Change checkupdate to checkwrite, update does not send to the TP bus. Ah okay, I did not know this information. Thank you very much for your help! |