Skip to content
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

IOB limit on the profil doesn't limit at desire value #804

Closed
charlesstyves opened this issue Aug 8, 2024 · 9 comments
Closed

IOB limit on the profil doesn't limit at desire value #804

charlesstyves opened this issue Aug 8, 2024 · 9 comments
Labels
question Further information is requested

Comments

@charlesstyves
Copy link

20240807_113424000_iOS
20240807_113444000_iOS
20240807_113502000_iOS
20240807_113515000_iOS
log.txt
log_prev.txt
NightScout

As discussed in the Discord Channel, the IOB limit on the profil seem to doesn't been take in consideration. On the example, the Night ("Nuit") profil as was active with a limit of 0.5. The algorithm as continue to give micro-bolus after this limit has been reach 02h15 in the morning. See iAPS screen shot, NightScout commented and logs files for more details.

If you need more information, dont hesitate.

@Jon-b-m
Copy link
Member

Jon-b-m commented Aug 8, 2024

Problem is your screenshot is from 7:34 with IOB 1.34U and not from 02:15 when you're claiming the IOB was exceeding 0.5 U.

Can you please tell me when the override was enabled and exactly for how long and also show me the Loopalyzer screenshot (to see the actual IOB before and during this period.

@charlesstyves
Copy link
Author

You're right, LoopAnalyzer is better to show you the IOB value than de Nightscout with comments screen shot that I putted before. The override is enabled at 23h00 for 480 min. (until 07h00). The second graph is too confirm that the Night ("Nuit") profil was active. See below for the graphs.

LoopAnalyzer
Nightscout

@Jon-b-m
Copy link
Member

Jon-b-m commented Aug 9, 2024

Thanks. Yes If Loopalyser is 100 accurate then it seems the 0.5 limit was slightly exceeded for a period of time (around 40 minutes). Can I please see your logs also, to see what oref0 decisions (loops) were made during this period and if perhaps some issues were preventing loops (out of contact etc.).

@charlesstyves
Copy link
Author

See below the log files :

https://github.com/user-attachments/files/16536552/log.txt

https://github.com/user-attachments/files/16536553/log_prev.txt

Don’t know if it could change somethings, but I’m on iOS 16. Looking to change the iPhone to prevent some unwanted issue.

@Jon-b-m
Copy link
Member

Jon-b-m commented Aug 10, 2024

Your last log entry is at 01:19 08/07. Why? I need the logs for period of your issue, please. Unless I'm looking at the wrong date? Which date is it?

Did you cut pieces out from the logs? the log_prev is not containing the entire period (last entry is 22:17.29), meaning the override is not in the logs. It should end at end of day at 00:00 when logs are complete.

I unfortunately can't use these logs since the relevant time period is not included (cut out?)...

@Jon-b-m Jon-b-m added the question Further information is requested label Aug 10, 2024
@charlesstyves
Copy link
Author

I dont understand why the log period isn't there. No, I didn't cut anything. I had extract it in the morning, at the same time of the screen shot (07h34).

I just did a extraction of the log file again, just to see. It work as you describe, starting at 00:00 until now for log.txt file and the full yesterday period from 00:00 to 23:59 for the log_prev.txt. I suppose that the log file for 08/07 is now lost...

After the extraction, I did tonight the update to 4.8.0. I will continue to monitor the situation and if it happen again, I would came back here to put all the required file. If in some days I didn't see it happen again, I will probably made a test profil with a IOB limit of 0.1 to check if SMB/UAM are given or not.

Thanks.

@charlesstyves
Copy link
Author

After swithching to V4.8.0, I did the monitoring as describe before. I still see that the profil IOB limit of 0.5 wasn't respected overt the night. So, I decided to made a test by creating a Test profil with an IOB limit of 0.1. Surprise, no SMB/UAM was delivered on a rise BG period.

To push deeper the test, I did the following test this morning on my iPhone iAPS simulator (iOS 17 with V.4.8.0) :

9h30 to 10h00 : No profil active. SMB/UAM are delivered. iPhone wasn't lock open, so some loop hasn't been executed.
10h00 : Lock iPhone open with iAPS app open.
10h00 to 10h33 : Profil test with IOB limit of 0.5 activated throught iAPS. No SMB/UAM are delivered.
10h33 to 11h15 : Same profil test, but this time, activated throught iPhone shortcut. SMB/UAM are delivared and IOB was over 0.5.

During the test, basal rate was set to 0.1 with SMB/UAM minutes of 120 minutes (max. SMB/UAM of 0.2). Profil SMB/UAM minutes was set to 60 minutes. During 10h33 to 11h15, SMB/UAM delivered was 0.1, so it confirmed that the profil was really activated. Simply don't know why it doesn't consider the IOB limit if it's activated throught a shortcut.

Profil configuration : 100% 60SMB 60UAM MAX IOB: 0.5

Hope this would help to find the problem.

Log file :
log.txt

10h32 : Profil activated throught iAPS before activate him with the Shortcut app

  • The resume show clearly the IOB limit consideration
    10h32 - Picture 1
    10h32 - Picture 2
    10h32 - Picture 3

10h56 : Profil activted throught iPhone shortcut

  • The resume doesn't take care consideration of the IOB limit.
    10h56 - Picture 1

11h11 : Profil activted throught iPhone shortcut

  • The resume doesn't take care consideration of the IOB limit.
    11h11 - Picture 1

Full period graph :
Full periode graph

Jon-b-m added a commit that referenced this issue Aug 18, 2024
@Jon-b-m
Copy link
Member

Jon-b-m commented Aug 18, 2024

Resolved here 2c54e1b in dev branch.

The Max IOB property wasn't saved when enabling override preset via shortcut.

@Jon-b-m Jon-b-m closed this as completed Aug 18, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in iAPS Development Board Aug 18, 2024
@charlesstyves
Copy link
Author

Thanks!

Jon-b-m added a commit that referenced this issue Sep 3, 2024
1.  Hypo treatments (#801)
Activate a hypo treatment override preset when selecting Hypo Treatment in the meals View. The activated override: 45 min, SMBs off, 90%, 6.5 mmol/l target.
This will also skip the Bolus View.
Make the necessary updates to update the override/s in Nightscout.
Those who never records any hypo treatments in iAPS can disable this option in UI/UX settings.

2. Don't run TDD twice (dd5cc61)
An add some more printing to console to see time of each oref0 module.

3. Expand iAPS  Live Activity (#808).  Display Last loop, IOB, COB and eventual glucose prediction. Add support for both open loop mode and closed loop mode.
#808

4. Move max carbs (#811). Some users don't know about this new setting. It has now been moved to a more intuitive location. 

5.  Resolve Calender issue introdced in commit af1acf9 (#821)

6. Resolve issue #804

7. Refactor (#823)

8.  Fix the  rounding in small TIR chart. Every group together now always end up with 100 %.

9. Hide the COB chart when lacking carb entries. Hide the IOB chart when lacking insulin data.
#824

10. Add Glucose drop to Header View
Display rotating glucose drop.
Current Glucose, loop minutes ago and glucose delta is now in highest contrast.
The glucose delta is now an option in UI/UX settings (default is off). I recommend having “Always color glucose value” off in UI/UX settings, as this will make sure you’ll always get the glucose in highest contrast (black/white).
https://discord.com/channels/1120154740857245808/1123065808130691124/1277393884053504072

11. Add pump shadows..

12. Localize Header
Clean up.

13. Fix default glucose delta setting
* Display + in delta.
Round manual glucose values separately.

14. Move infoPanel to be a more integral part of the header View
Update animation duration.

15. Add label to the iAPS pill

16. Use original oref0 profile script (#805), by @bastiaanv https://discord.com/channels/1120154740857245808/1123065808130691124/1278662542511575041

17.  Edit "Error" to "Status" (#761)

18 Bring back display of before and after the dynamic adjustment in iAPS pill.
Bring back correct colour of Insulin 24h. Include CR.

19. New localizations and Crowdin translations. Thank you translators: Aleksandr Van-Zaam, Mirko Trierenberg, Typ1er, Mykola Yroslavadudko, Nicole van Elst - van den Hoek, Hung Nguyen, Salem Allebdi, aboeinas, Abdulrahman Alfantokh, 244877227, Alessandro Fogliani for new translations. We now have some Arabic translations.
@Jon-b-m Jon-b-m mentioned this issue Sep 3, 2024
Jon-b-m added a commit that referenced this issue Sep 3, 2024
* Release 5.0.0

1.  Hypo treatments (#801)
Activate a hypo treatment override preset when selecting Hypo Treatment in the meals View. The activated override: 45 min, SMBs off, 90%, 6.5 mmol/l target.
This will also skip the Bolus View.
Make the necessary updates to update the override/s in Nightscout.
Those who never records any hypo treatments in iAPS can disable this option in UI/UX settings.

2. Don't run TDD twice (dd5cc61)
An add some more printing to console to see time of each oref0 module.

3. Expand iAPS  Live Activity (#808).  Display Last loop, IOB, COB and eventual glucose prediction. Add support for both open loop mode and closed loop mode.
#808

4. Move max carbs (#811). Some users don't know about this new setting. It has now been moved to a more intuitive location. 

5.  Resolve Calender issue introdced in commit af1acf9 (#821)

6. Resolve issue #804

7. Refactor (#823)

8.  Fix the  rounding in small TIR chart. Every group together now always end up with 100 %.

9. Hide the COB chart when lacking carb entries. Hide the IOB chart when lacking insulin data.
#824

10. Add Glucose drop to Header View
Display rotating glucose drop.
Current Glucose, loop minutes ago and glucose delta is now in highest contrast.
The glucose delta is now an option in UI/UX settings (default is off). I recommend having “Always color glucose value” off in UI/UX settings, as this will make sure you’ll always get the glucose in highest contrast (black/white).
https://discord.com/channels/1120154740857245808/1123065808130691124/1277393884053504072

11. Add pump shadows..

12. Localize Header
Clean up.

13. Fix default glucose delta setting
* Display + in delta.
Round manual glucose values separately.

14. Move infoPanel to be a more integral part of the header View
Update animation duration.

15. Add label to the iAPS pill

16. Use original oref0 profile script (#805), by @bastiaanv https://discord.com/channels/1120154740857245808/1123065808130691124/1278662542511575041

17.  Edit "Error" to "Status" (#761)

18 Bring back display of before and after the dynamic adjustment in iAPS pill.
Bring back correct colour of Insulin 24h. Include CR.

19. New localizations and Crowdin translations. Thank you translators: Aleksandr Van-Zaam, Mirko Trierenberg, Typ1er, Mykola Yroslavadudko, Nicole van Elst - van den Hoek, Hung Nguyen, Salem Allebdi, aboeinas, Abdulrahman Alfantokh, 244877227, Alessandro Fogliani for new translations. We now have some Arabic translations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants