Last active
August 29, 2015 14:11
-
-
Save crispincornett/07f101406e07a0f48869 to your computer and use it in GitHub Desktop.
Ignition Ack All Alarms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get all alarms | |
alarms = system.alarm.queryStatus() | |
note = "Acked by Zeus" | |
alm_ids = [] | |
# Add alarm id cast as string to alm_ids list | |
for row in alarms: | |
alm_ids.append(str(row.getId())) | |
# Ack all in the list | |
system.alarm.acknowledge(alm_ids, note) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment