1: Bug fixes and SwiftUI optimization. Minimum iOS 17 now required.
2: Added the optional algorithm Auto ISF, which adapts your ISF based on your glucose history.
Based on gazelle's AAPS Auto ISF 3.0.1, but with code refactored and easier to read and code put in separate module.
The Auto ISF code is contained in a separate module and open layer of iAPS, run before the vanilla oref0, like a middleware, making it easy to review, maintain and test, while keeping it insulated from the core vanilla oref0 code.
All of the added Auto ISF JavaScript code is open and unminimized (readable), residing in the two auto isf files: iAPS/FreeAPS/Resources/javascript/autoisf/autoisf.js and /iAPS/FreeAPS/Resources/javascript/autoisf/glucose-get-last-autoisf.js, only run in the Auto ISF layer, when using Auto ISF.
Like before iAPS is using the stable, well tested vanilla oref0 code https://github.com/openaps/oref0.git for the core algorithm (oref0).
Thank you @yurique for some of the improvements to the original Auto isf 3.0.1 in the form of an improved calculation of glucose averages and a fix for not treating good glucose values (at target) as plateaued. Thank you also for all the testing and issue resolving.
Other features differing from gazelle's's Auto ISF is the addition of B30 and the Keto protection.
3: B30 is an option to enact a high temporary basal after a meal to reduce/remove the postprandial glucose spike.
4: Keto protection is an option to enact a small temporary basal whenever you have negative insulin over 60 basalminutes to reduce the production of ketone bodies. Idea is from https://github.com/swissalpine/AndroidAPS/tree/sport-changes, in iAPS refactored to Swift code.
Even more iAPS updates in the form of
5: An optional Chart for iAPS Live activty, by @yurique.
6: New pump graphics in Home View for MDT and Dana pumps, dynamically illustrated with the insulin remaining in reservoir.
7: Whenever insulin reservoar < 15 % the insulin turns red.
8: New overrides for all the new Auto ISF settings, allowing for all sorts of overrides, shortcuts and automation.
9: New override option to only adjust ISF, CR or Basal insulin.
10: All settings in iAPS can now be entered with user-preferred glucose unit. Thank you @yurique
11: New testing script for testing of the OpenAPSManager. This script can also be used to test various new algorithms and oref0 suggestions.
12: And much more!
CAVE!
The middleware function parameter "dynamicVariables" has been removed in version 6.0.
To read/or change the dynamicVariables in middleware use: "profile.dynamicVariables" instead.
A big thank you to the Crowdin translators Hung Nguyen (phuteleco), Mykola (Yroslavadudko), Mirko Trierenberg (Mirko-t), Aleksandr Van-Zaam (vanzaam), davidprogramme (daviddetommasi), Typ1er and Nicole van Elst - van den Hoe!
The Auto ISF descriptions are from mountrcg iAPS fork.
Co-authored-by: yurique [email protected]