You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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.
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.
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.
Activity
loudnate commentedon Jul 24, 2016
Absolutely, though no setting is necessary because the setting exists in HealthKit.
LoopKit/LoopKit#27 is a pre-requisite here.
Please don't hesitate to file any additional issues you encounter with units.
apabari commentedon Jul 27, 2016
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.
loudnate commentedon Jul 27, 2016
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
apabari commentedon Aug 2, 2016
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!
scottleibrand commentedon Aug 2, 2016
I believe that scale is logarithmic, not linear, so even if it goes to 50 it should still show temps.
beached commentedon Aug 3, 2016
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.
Graphing based on preferred unit
Graphing glucose using the system's preferred unit (#108)
Rename xDripG5 framework to CGMBLEKit (LoopKit#87)
[LOOP-453] Integrate InsulinSensitivityScheduleEditor (#87)