![]() |
Alert manager example - Printable Version +- Logic Machine Forum (https://forum.logicmachine.net) +-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1) +--- Forum: Application Store (https://forum.logicmachine.net/forumdisplay.php?fid=11) +--- Thread: Alert manager example (/showthread.php?tid=2713) |
Alert manager example - Tokatubs - 07.07.2020 To get the alerts into the "Alert manager" i guess they have to come from scripts first. Does anybody have an example for me to get started, or a tip to get into using it? RE: Alert manager example - Erwin van der Zwart - 07.07.2020 Hi, Just use the script command alert('This is my alert') and the alert manager picks it up automatically. You can also use dynamic alerts like alert('The value of object ' .. grp.find(event.dst).name .. ' is ' .. event.getvalue() .. " degrees") BR, Erwin RE: Alert manager example - Tokatubs - 21.10.2020 Sorry, Erwin. Still as far getting this to work. Would not know where to put this or where to make this work. Would it be possible to ask for an example or a little more push in the right direction`? RE: Alert manager example - FatMax - 22.10.2020 How about an example about what you wish to achieve with a little bit more detail? RE: Alert manager example - Erwin van der Zwart - 22.10.2020 Hi, Just make a event based script and attach it to a group address or TAG and enter a script like this: Code: if event.getvalue() == true then Erwin RE: Alert manager example - Tokatubs - 22.10.2020 (22.10.2020, 12:46)FatMax Wrote: How about an example about what you wish to achieve with a little bit more detail? Lets say i want a boolean value give alarm with value 1. And am wondering how to do it. Or an ability to give alarm if a temp rises above a certain value. RE: Alert manager example - Daniel - 23.10.2020 The Erwin's script is for boolean for alarm with value 1. For temp above you can do similar Code: if event.getvalue() > 21 then |