# Passing Alerts into the Operating Systems Notifier

**URL:** <https://forum.inductiveautomation.com/t/passing-alerts-into-the-operating-systems-notifier/2302>\
**Category:** Ignition\
**Created:** [October 28, 2010, 8:34pm UTC](https://forum.inductiveautomation.com/t/passing-alerts-into-the-operating-systems-notifier/2302 "2010-10-28T20:34:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [October 28, 2010, 8:34pm UTC](https://forum.inductiveautomation.com/t/passing-alerts-into-the-operating-systems-notifier/2302/1 "2010-10-28T20:34:48Z")

</div>

Im making a list of ways to parse the alert information into on screen notifiers. I have Ubuntu figured out, and also looking at Growl on a Mac.

Ubuntu  
Install libnotify-bin

```auto
sudo aptitude install libnotify-bin
```

Create either a DB Tag or a Client tag with the following expression script

```auto
runScript("system.alert.queryAlertStatus(activeAndUnacked=1,clearAndUnacked=1).rowCount",500)
```

Import the attached package into your project.

Finally, make the following tag change script, referencing the DB/Client Tag you previouly created.

```auto
alarms = system.alert.queryAlertStatus(activeAndUnacked=1,clearAndUnacked=1)
if alarms.rowCount > 0:
	app.notify.notifyAlarm(alarms.getValueAt(0,"Path"), alarms.getValueAt(0,"State Name"))
```

You should get something like the following screenshot  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/1X/94a8b21459b396e8843d9684a589bd27ba8de229.png)  
  
[notify.py](https://us1.discourse-cdn.com/inductiveautomation/original/1X/62a1e38d217cbb13f89a43681336387cff84af03.py) (310 Bytes)

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [November 4, 2010, 8:51pm UTC](https://forum.inductiveautomation.com/t/passing-alerts-into-the-operating-systems-notifier/2302/2 "2010-11-04T20:51:41Z")

</div>

Very cool! Thanks for posting this 😃
