Go to documentation repository
...
| Code Block | ||
|---|---|---|
| ||
if (Event.SourceType == "GRAY" && Event.Action == "ALARM")
{
var audioid;
if (Event.SourceId == "1" || Event.SourceId == "3")
{
audioid = "1";
}
if (Event.SourceId == "2" || Event.SourceId == "4")
{
audioid = "2";
}
var str = "OLXA_LINE|"+audioid+"|ARM|";
var msg = CreateMsg();
msg.StringToMsg(str);
NotifyEvent(msg);
} |