Controlling Temp with timer - 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: Controlling Temp with timer (/showthread.php?tid=1967) |
Controlling Temp with timer - ajgarcia.reyse - 14.03.2019 Hi all, I am monitoring water temperature with LM and KNX, but I need send email when current temperature is higher than "max limit" during one period of time (e.g. 60 min). Anyone could help me? Thanks RE: Controlling Temp with timer - admin - 15.03.2019 Create an event script mapped to temperature object: Code: temp = event.getvalue() Then create a scheduled script that runs every minute to check whether e-mail needs to be sent. Change delta time if needed (60 * 60 = 1 hour in seconds). Code: curr = storage.get('temp_over') RE: Controlling Temp with timer - ajgarcia.reyse - 21.03.2019 (15.03.2019, 08:05)admin Wrote: Create an event script mapped to temperature object: Thank you very much!! Script works perfectly on my LM. Is there any handbook or manual to learn advanced scripts in LUA??? RE: Controlling Temp with timer - admin - 21.03.2019 Common LM/Lua functions are documented: http://openrb.com/docs/lua.htm As for more advanced things, have a look at example in forums and on our website. There are some many possible solutions and approaches that it's just not possible to document them. RE: Controlling Temp with timer - Gadjoken - 10.09.2019 Hello, This function is very useful. I use it to check a temperature for 5 minutes if it goes above 23 ° C so I send an email. If possible, I would like to send an email when the temperature drops below 23 ° C. This email must be sent only after a temperature fault and not every time the temperature is below 23 ° C. thank you. B. R. RE: Controlling Temp with timer - admin - 10.09.2019 Event script: Code: temp = event.getvalue() Scheduled script: Code: notified = storage.get('temp_notified') |