-
Notifications
You must be signed in to change notification settings - Fork 509
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
conversion of rT.variables in mg/dL #327
base: dev
Are you sure you want to change the base?
Conversation
I need a little help on the watch part, still throws an error in the conversion function
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interim fix. Will need changing with Trio 1.0.0, but for 0.2.0 okay.
I tested this now in Xcode / iPhone simulator, and it works great.
We will be diverging a little from openaps/oref0 by doing this, which is probably fine. @mountrcg, did you consider PRing the oref changes to upstream oref0? |
From my conversation with Robert, this actually is not something that diverges from oref0, but is a change that he introduced himself about 2 years ago, and we are making it so that ISF is treated like all other settings. |
Ok, thanks for the info, yes this rings a bell. But when checking relevant lines in determine-basal, it seems his changes then were not 1:1 with the current PR: The PR from 2021 is here: |
Needs to be done in parallel with nightscout/trio-oref#30
This concerns mainly ISF as transmitted from oref to suggestion / enacted. So far I only found one instance where ISF is used.
So far ISF is always transfered from oref in the current user glucose unit, so if mmol/L is used it comes in mmol/L. Therefore currently no conversion is applied in Trio to ISF originating from oref. Drawback is also that a change of user glucose unit will not be reflected in ISF unless a new loop is calculated. Refer also to nightscout/trio-oref#29
Also the watch app needs to adjusted as ISF may also be shown on watch.