-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add sound when pv enters alarm state #59
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
9657763
ENH: Add cmdline arg for enabling annunciate mode, atm does nothing i…
ceff361
WIP: Annunciate button disabled/enabled depending on flag
5cb899b
WIP: Make annunciate flag a switch-like flag, if present annunciate=T…
ed956cd
WIP: Added noise for when alarm is signaled
930165e
WIP: Printing out msg when annunciate is enabled in cmd line and for …
287ef5b
WIP: Clean up some unneeded passing of annunciate variable
7f2d70b
WIP: Remove annunciate debugging prints
5826957
BUG: Fix issue where pv with annunciate checked where not getting the…
cd92885
TST: Fixing tests after annunciate-mode changes
ad1f959
WIP: Fix issue where cryo sent different status string than lcls, add…
fb78c33
TST: Update annunciate test to check for bell character in stdout
6c299c0
STY: Apply pre-commit changes
4b156d3
BUG: check against STATE_ALARM string to see if alarm is active state
f1939a0
STY: Apply pre-commit changes
7240593
BUG: Switch to using alarmitem member function to check if in alarm s…
53e5237
DEV: Remove debugging prints
d59e8cb
STY: style fixes for annunicate feature
70b9aae
WIP: Fix test for annunciate mode
2e6cd30
STY: minor style fix related to add annunciate mode
6286bee
STY: Minor cleanup for annunciate mode changes
cd3deba
STY: minor style fix
b479fe0
STY: Improve some comments related to annunciate option
64ae0f9
STY: apply pre-commit changes
dd831fe
ENH: Add short-hand cmd line option for user-permissions
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,14 +8,18 @@ | |
|
||
def main(): | ||
parser = argparse.ArgumentParser(description="SLAC Alarm Manager") | ||
parser.add_argument("--topics", help="Comma separated list of kafka alarm topics to listen to") | ||
parser.add_argument("-t", "--topics", help="Comma separated list of kafka alarm topics to listen to") | ||
parser.add_argument( | ||
"-b", | ||
"--bootstrap-servers", | ||
default="localhost:9092", | ||
help="Comma separated list of urls for one or more kafka boostrap servers", | ||
) | ||
parser.add_argument("--user-permissions", default="admin", help="One of read-only, operator, admin") | ||
parser.add_argument("--log", default="warning", help="Logging level. debug, info, warning, error, critical") | ||
parser.add_argument("-u", "--user-permissions", default="admin", help="One of read-only, operator, admin") | ||
parser.add_argument("-l", "--log", default="warning", help="Logging level. debug, info, warning, error, critical") | ||
parser.add_argument( | ||
"-a", "--annunciate", action="store_true", help="Enable beep from alarms that have annunciate setting enabled" | ||
) # default=False | ||
Comment on lines
-11
to
+22
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. thanks for the easier command line options |
||
|
||
app_args = parser.parse_args() | ||
|
||
|
@@ -36,7 +40,7 @@ def main(): | |
topics = app_args.topics.split(",") | ||
|
||
app = QApplication([]) | ||
main_window = AlarmHandlerMainWindow(topics, kafka_boostrap_servers) | ||
main_window = AlarmHandlerMainWindow(topics, kafka_boostrap_servers, app_args.annunciate) | ||
main_window.resize(1536, 864) | ||
main_window.setWindowTitle("SLAC Alarm Manager") | ||
main_window.show() | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not currently used for tables but maybe could be useful in the future