nightscout / Trio

Trio - an automated insulin delivery system for iOS based on the OpenAPS algorithm with adaptations.
https://docs.diy-trio.org/en/latest/
MIT License
90 stars 464 forks source link

New bolus calculator #408

Open charlesstyves opened 1 month ago

charlesstyves commented 1 month ago

Is your feature request related to a problem? Please describe.

I presently use iAPS 4.8.0 and I would like to switch to Trio. To make it happen, I need 2 features to make the switch a success. First is iOS Shortcuts (annonced for Trio 1.0.0, great!) to activate automatically a profil (most important is a night profil with lower UAM/SMB minutes). Second, the subject of this request, is a new bolus calculator. Original iAPS calculator never work well for me and I was bolusing manually when I was on iAPS 2.3.3.

Describe the solution you'd like

Implement a new bolus calculator similar to the own on iAPS 4. Precisly, it's a bolus calculator who work as a traditional calculation. It's easy to understand and helpful for many people. Formula is : (COB/CR - IOB + (BG - Target)/ISF + [15 min trend])*Bolus ratio

Describe alternatives you've considered

Tuning ISF/CR/Basal + Bolus ratio on the old calculator. It didn't work well. Always too agressive on a BG up curve and giving no insulin on a BG down curve.

Additional context

Since 1 month, I had disabled the [15 min. trend] value of the formula. It work better for me without it. Maybe a Enable/Disable option could be great. I had forced it to zero directly into the code. Using Novorad insulin.

User Impact

It let them to work better on their CR/ISF/Basal rate if they are confident with the bolus calculator.

tmhastings commented 1 month ago

The new bolus calculator will be in Trio 1.0.0. It was developed by @polscm32

charlesstyves commented 1 month ago

Great to know! Thanks for fast feedback. Amazing!

Marvout commented 1 month ago

@tmhastings I think I didnt do anything for this repo. So I might think you got the wrong person. Or have you used some code from a repo of mine ? Then I might have done something. If not please edit the comment and address it to the right contributor ;)

Sjoerd-Bo3 commented 1 month ago

@tmhastings I think I didnt do anything for this repo. So I might think you got the wrong person. Or have you used some code from a repo of mine ? Then I might have done something. If not please edit the comment and address it to the right contributor ;)

She tagged wrong person. Sorry

Sjoerd-Bo3 commented 1 month ago

The new bolus calculator will be in Trio 1.0.0. It was developed by @Marvout.

@tmhastings you meant @polscm32

tmhastings commented 1 month ago

Apologies! Yes, I meant @polscm32