-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Display CGM Data in mmol vs. mg/dL #87
Comments
Absolutely, though no setting is necessary because the setting exists in HealthKit. Please don't hesitate to file any additional issues you encounter with units. |
Is a code change required to enable this? My settings in HealthKit are in mmol. Interestingly, the Glucose value listed in loop (at the bottom of the app) is displayed in mmol. But the graph view is displaying in mg/DL. |
Yes, this is something I plan to fix. If you'd like to just quickly change your code in the meantime, you'll find two "TODO" items in this file. https://github.com/loudnate/Loop/blob/master/Loop/Managers/StatusChartManager.swift |
I just tried modifying the code, but I noticed that the glucose predictions are not being displayed properly when I change the units. The graph is also showing from 0 to 50 units, which makes the line almost flat regardless. I'm not sure how to change that -- my own lack of knowledge of this software language, I'm sure. If you have a chance to direct me at which lines I need to modify, in the meantime, that would be great. Thanks! |
I believe that scale is logarithmic, not linear, so even if it goes to 50 it should still show temps. |
I changed line 258 to adjust the scale. The segments where set to 25 units of whatever and a max of 4 of them. I changed it to 5 units per segment with a max of 5. |
* Rename xDripG5 framework to CGMBLEKit to avoid confusion with other xDrip projects
* Implement suspend threshold guardrails * Update project.pbxproj * Tweak suspend threshold description * Updates from design review * Integrate InsulinSensitivityScheduleEditor * Fix wonky suspend threshold animation
Was able to pull some CGM data from Dexcom Share. As a Canadian user I am displaying data in mmol; however, data is only being displayed in mg/DL in loop.
Could this be a configurable item for the CGM data graph?
The text was updated successfully, but these errors were encountered: