cancel a Macro's actions if a specified Application was launched within a specified period of time prior to the Macro's trigger being fired?
Here's the backstory.
I need a way, if it can be done, to prevent the macros from running if I've had the sensor app open in the last 20 minutes. But, I still need the macros to at least turn the media volume back down to zero so I don't have to hear that god awful triple beep tone!
Here's the backstory.
I'm a Type 1 Diabetic, and I use the Freestyle Libre 2 CGM (Continuous Glucose Monitor). The app for these sensors is absolutely terrible.
The issue that I'm trying to eliminate is that if I open the app on my own and scan my sensor, and let's say my blood sugar level is at 95. At 90, it will trigger a low glucose alert. So, if I have the app open and scan the sensor and see a 95, I'm going to have some sugar... 5 minutes later the sensor reads 90, and triggers an alert. I don't need it! I already know, and have already taken care of it! Thanks for doing your job, but I'm good!
I thought I had remedied this by creating a separate macro that would trigger an empty action whenever I opened the app for the sensor. Then I added a constraint into my other macros that would prevent them from running if that new macro I made had been run within the last 20 minutes. However, it didn't go according to plan because it would then prevent the macros from doing anything at all, including turning down the media volume when the app sends an alert, so I would get my ears stabbed to death by the damn triple beep tone again!
- You can't change the tone played for the 4 different alerts, so you can't differentiate the alerts without looking at your phone.
- The tone they play is a very sharp, shrill triple beep melody that hurts the ears.
- The app changes your phone's media volume to 100% when it alerts, regardless of previous setting, vibrate mode, do not disturb...
- You cannot customize the frequency of the alerts, so they can repeatedly trigger if your blood sugar wiggles in and out of a trigger zone.
- I can go on, but it isn't important. You get the idea.
- Immediately reduce the media volume on my phone to 0% as soon as a notification from the app comes in matching 1 of 4 keywords.
- Wait 40 seconds to ensure the annoying triple beep tone has stopped playing...
- Select custom tones for each of the 4 different alerts so I can differentiate the alerts without looking at my phone.
- Raise my phone's media volume to a reasonable level, play the custom tone, then turn the volume back down.
- Set an alarm on my phone for 5 minutes in case I didn't hear the alert go off.
- Use constraints to prevent alerts during the night aside from severe low blood sugar.
- Use constraints to prevent repeat alerts by using the "Not Invoked For Xh Xm Xs" feature.
The issue that I'm trying to eliminate is that if I open the app on my own and scan my sensor, and let's say my blood sugar level is at 95. At 90, it will trigger a low glucose alert. So, if I have the app open and scan the sensor and see a 95, I'm going to have some sugar... 5 minutes later the sensor reads 90, and triggers an alert. I don't need it! I already know, and have already taken care of it! Thanks for doing your job, but I'm good!
I thought I had remedied this by creating a separate macro that would trigger an empty action whenever I opened the app for the sensor. Then I added a constraint into my other macros that would prevent them from running if that new macro I made had been run within the last 20 minutes. However, it didn't go according to plan because it would then prevent the macros from doing anything at all, including turning down the media volume when the app sends an alert, so I would get my ears stabbed to death by the damn triple beep tone again!
I need a way, if it can be done, to prevent the macros from running if I've had the sensor app open in the last 20 minutes. But, I still need the macros to at least turn the media volume back down to zero so I don't have to hear that god awful triple beep tone!
For example, the Low Blood Sugar Alert.
I have three more of these that are very similar in nature for the high blood sugar alert, the urgent low blood sugar alert, and the scan sensor alert (triggers 2 hours after a scan of the sensor as per the app's settings). Hopefully everything works.
- Trigger: Notification received from the Libre 2 app containing the word "Low."
- Action: Media volume = 0%
- If Clause 1: Device unlocked
- If Clause 1A: "Libre 2 Launch Detect Macro" not invoked for 15m
- If Clause 1B: This Macro not invoked for 30m
- If Clause 1C: "Libre 2 Urgent Low" not invoked for 30m
- Action: Floating text "Scan your sensor!"
- If Clause 2: Device locked
- If Clause 2A: "Libre 2 Launch Detect Macro" not invoked for 15m
- If Clause 2B: This Macro not invoked for 30m
- If Clause 2C: "Libre 2 Urgent Low" not invoked for 30m
- Action: Wait 40 seconds
- Action: Media volume 100%
- Action: Wait 3 seconds
- Action: Play: Signal (just the tone I chose from my phone's sound files)
- Action: Wait 1 second
- Action: Play: Signal
- Action: Wait 3 seconds
- Action: Media volume 0%
- Action: Wait 3 seconds
- Action: Set Alarm for five minutes
- Constraint: Time of Day 07:30 - 21:00
I have three more of these that are very similar in nature for the high blood sugar alert, the urgent low blood sugar alert, and the scan sensor alert (triggers 2 hours after a scan of the sensor as per the app's settings). Hopefully everything works.
Last edited: