Posts: 303
Threads: 87
Joined: May 2017
Reputation:
2
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?
Posts: 1764
Threads: 6
Joined: Jul 2015
Reputation:
117
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
Posts: 303
Threads: 87
Joined: May 2017
Reputation:
2
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`?
Posts: 221
Threads: 45
Joined: Nov 2015
Reputation:
2
How about an example about what you wish to achieve with a little bit more detail?
Posts: 4646
Threads: 24
Joined: Aug 2017
Reputation:
207
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
alert('Temp is above 21 in ' .. grp.find(event.dst).name)
end
------------------------------
Ctrl+F5