-
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 of mmol/L units #159
Comments
I am testing the use of
To format the glucose hud display. |
Thanks – the NSNumberFormatter significant digits setting is exactly how I planned to fix these cases. The screenshots are really helpful. Please add any more where things aren't correct to this ticket! |
I was thinking that maybe, excuse my swift, but a member of the HKUnit that formats blood glocose or a subtype of sorts that does it. then any string for a glucose uses that. |
Yeah, that's what's existed here: https://github.com/loudnate/LoopKit/blob/master/LoopKit/HKUnit.swift#L21-L28 |
The units updated after checking/unchecking |
- New labels that highlight eventual glucose, current IOB, total delivery, and COB - Fixes #159 - Dynamic selection of graph history length based on available display with. Rotate landscape to see more data. - New treatment for the recommended temp cell
* Graph improvements - New labels that highlight eventual glucose, current IOB, total delivery, and COB - Fixes #159 - Dynamic selection of graph history length based on available display with. Rotate landscape to see more data. - New treatment for the recommended temp cell * Displaying boluses
Fixes #130 Better use of space on iPhone SE and iPhone 7 Plus
* Add basal rate schedule * Move some Guardrail stuff into LoopKit * Support for basal rates and bolus volumes * PR Feedback
It looks like Loop is trying to display too many digits for mmol/L. Only 3 are ever needed at most. Actually , when the pump reports a bg <=99mg/dl only 2 are needed( so <=5.5mmol/L) but for consistency 3 is usually fine.
As one can see, this causes formatting bugs
![bg display](https://cloud.githubusercontent.com/assets/855156/18252868/ff94d482-735e-11e6-8eb0-e8a2d4efc5cc.jpg)
Seeing as the data from the pump expresses the info in mg/dl and generally has 3 significant digits this could be accomplished with a formatting flag of %.1f
The text was updated successfully, but these errors were encountered: