nightscout / Trio

MIT License
64 stars 259 forks source link

Shortcuts - refactoring and add new functionalities #144

Closed avouspierre closed 3 months ago

avouspierre commented 3 months ago

Shortcuts open IAPS

this PR refactors the shortcuts and adds new shorcuts for open-IAPS.

Refactoring

List of shortcuts available

Some examples described in the picture :

When your iPhone alarm clock is ringing a Profile override is started/canceled. • When you get to your gym a Profile Override is started/canceled. • When you step inside your car (which has CarPlay) a profile override is started/canceled. • When you start an exercise a profile override is started. • When you end an exercise the active profile override is canceled. • .

Select a carb preset, add carbs associated and define a override preset List of shortcuts available Cancel temporary preset and/or override preset and adds carbs in the past
IMG_93A644ADB473-1 IMG_E62CF95824EE-1 IMG_F4A8EE137CD2-1
temporary preset with a date in 60 minutes When I start a fitness activity, start sport override except if my BG > 180, wait 30 min and notify me When you get a specific sms from your parent a specific profile override is started/canceled
IMG_16251E5F9A67-1 RPReplay_Final1714157264 https://github.com/nightscout/Open-iAPS/assets/4339604/5f0a81a8-4445-449a-94cf-6805fbf316b9

New UI for config shortcuts :

config config
Simulator Screenshot - iPhone 15 - 2024-05-01 at 18 23 50 Simulator Screenshot - iPhone 15 - 2024-05-01 at 18 24 00

Detail of the commit (squash all commits about shortcuts) : Refactoring the shortcuts with adding :

bjornoleh commented 3 months ago

Could we have an “abort bolus” functionality from shortcuts?

avouspierre commented 3 months ago

Update the PR with the last dev version of trio and fixes the unit label in temporary target shortcut.