-
Notifications
You must be signed in to change notification settings - Fork 71.9k
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
Support basic custom alarm thresholds set via env variable #271
Comments
Scott - I'm happy to help as I can. I'm not the expert node.js developer, but i think you're heading down the path that you and I chatted about in the forum re: pushover pushes based upon environment variable threshold. |
Thanks @gregwaehner. I think this might be exactly your idea: sorry I'd forgotten who came up with it. :-) I don't think we'll want to do push notifications in this first iteration, but simply getting the alerts configurable will be a big win and address a problem shared by a lot of people. |
Thanks Scott. Let me know where I can help. Via email, I'll let a test file... I stubbed out how the process and the existing URLs, etc. for how (in my mind) the alerting would work. And I've confirmed the pushover library in the existing build... looking forward to it. |
@scottleibrand For the basic alarm thresholding that you're talking about, are you thinking...
|
It's more complicated than just that, but yes, that's the first thing that
|
@scottleibrand Here's what I've pulled together regarding alerting and PushOver design. Environment VariablesPUSHOVER_LOW_BG null = do not alert If PUSHOVER_LOW_BG was a separate fixed BG, such as 70, then it's more reliable... fewer combinations of user settings, devices, etc. And the user could have a "low and high" for cgm-remote-monitor GUI, but have a separate PUSHOVER notification for, maybe, extreme low or high. I'm thinking conceptually like standard deviation... cgm-remote-monitor alarm browser after 1 standard deviation; PUSHOVER low and high set at 2 standard deviations... I think the two concepts need to be separate. Could have LOW_DEFAULT_PRIORITY_BG (80) vs LOW_HIGH_PRIORITY_BG (70) vs. LOW_EMERGENCY_PRIORITY_BG (60), but then you would need to consider which threshold level the BG falls into, and if you snooze in default priority, but then BG goes to high priority, do you override snooze. For now, keeping one threshold for low and high should suffice, letting the user define the priority of each. Finally, the PushOver alerting should be the specific BG from dexcom, not forecasted -- keep it simple, and allow cgm-remote-monitor render forecasting. PUSHOVER_LOW_PRIORITY (default value of 2 to bypass "quiet" hours, and force acknowledgement) PUSHOVER_LOW_SOUND null = user device default PUSHOVER_LOW_SNOOZE_MINUTES default = 30 minutes PUSHOVER_HIGH_BG null = do not alert PUSHOVER_HIGH_PRIORITY (default value of 1 to bypass "quiet" hours) PUSHOVER_HIGH_SOUND null = user device default PUSHOVER_HIGH_SNOOZE_MINUTES default = 60 minutes Event TriggerWhen cgm-remote-monitor "gets" the BG from the collection, logic should be called. Doing it from the "read" of the collection will cover Mongo and REST API methods. Function CallThe function call should include the LOW vs. HIGH attribute such as sendPushOverAlert("LOW") or sendPushOverAlert("HIGH") in order to let the function call know and not have to figure it out again. Simple case statement or IF/THEN. When call PushOver API for "non-emergency acknowledgement", the response is If you sent a priority=2 notification, you will also receive a receipt parameter in your response that can be used with our receipts API.
Pushover Alert Object Parametersdevice = Nightscout
Alert Snooze (one global ... snoozing or not)
CarePortal Integration for Treatment LoggingIf env(ENABLE)=careportal, then
I have sample forms that model the process. (and HTML file that can't be uploaded here).... So here is copy/paste /_/ Preparation - Edit the stub file
1. Create a Pushover alert
Note: Copy the Response ID for Step 2 and Step 3 Step 2: To record the Pushover Alert BG into Care Portal
Note: Need to be able to pass in "priority = -2". This is already recorded in PR 266 (#266) Step 3: Simulate Response to Emergency Notification & record response
Note: Need to be able to pass in "priority = 1". This is already recorded in PR 266 (#266) Want to send close-out alert in the close of emergency notification. |
I'm going to have some extra time over the next couple weeks and would like to take this on. |
Great! I haven't had any time to work on it yet, but would happy to help -Scott On Thu, Dec 18, 2014 at 11:05 AM, Jason Calabrese notifications@github.com
|
I’m going to finally get some vacation starting next week and I’m hoping to be able to focus on the pushover alerting that I was pushing as well… I’m nowhere as good as you guys, but I’ll be digging in.
From: Scott Leibrand [mailto:notifications@github.com] Great! I haven't had any time to work on it yet, but would happy to help -Scott On Thu, Dec 18, 2014 at 11:05 AM, Jason Calabrese <notifications@github.com mailto:notifications@github.com >
— |
@gregwaehner lets open a new issue for pushover based alarms, we can work on putting that together for E |
No description provided.
The text was updated successfully, but these errors were encountered: