# Buzzer when new alarm comes up

**URL:** <https://forum.inductiveautomation.com/t/buzzer-when-new-alarm-comes-up/49937>\
**Category:** Ignition\
**Created:** [August 15, 2021, 9:38pm UTC](https://forum.inductiveautomation.com/t/buzzer-when-new-alarm-comes-up/49937 "2021-08-15T21:38:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [August 15, 2021, 9:58pm UTC](https://forum.inductiveautomation.com/t/buzzer-when-new-alarm-comes-up/49937/2 "2021-08-15T21:58:36Z")

</div>

A few posts to assist on how to determine a new alarm.

> [@Sound buzzer on new alarm generated](https://forum.inductiveautomation.com/t/sound-buzzer-on-new-alarm-generated/25709):
>
> Hi, I have looked through some older posts and managed to get a script together to list currently active alarms that match certain ‘machine area’ properties by using system.alarm.queryStatus. But i can’t quite figure out how to get a boolean trigger when a NEW alarm is detected. I could examine the oldCount and the newCount from when the script was run last, but that wouldn’t work if one alarm is created, and one alarm is cleared in between script calls, as the counts would be the same. Is t…

> [@New Alarm Alert as a Popup](https://forum.inductiveautomation.com/t/new-alarm-alert-as-a-popup/15828/6):
>
> Hi, Thanks for this code! When I tried this code on Ignition 8+ it failed because the following import in the gateway startup/shutdown script is changed in Ignition 8+. from com.inductiveautomation.ignition.gateway import SRContext That line of code is changed to: from com.inductiveautomation.ignition.gateway import IgnitionGateway

To sound buzzer:  
[https://docs.inductiveautomation.com/display/DOC79/Sound+Player](https://docs.inductiveautomation.com/display/DOC79/Sound+Player)

---

_[View the full topic](https://forum.inductiveautomation.com/t/buzzer-when-new-alarm-comes-up/49937)._
