-
Notifications
You must be signed in to change notification settings - Fork 72k
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
mgdl -> mg/dl #3423
mgdl -> mg/dl #3423
Conversation
@AdrianLxM : the code uses Note that liter is often abbreviated with a capital See https://github.com/nightscout/cgm-remote-monitor/search?utf8=%E2%9C%93&q=units+mgdl+mmol&type= for occurences of the unit in the current code. |
@@ -483,7 +483,7 @@ To learn more about the Nightscout API, visit https://YOUR-SITE.com/api-docs.htm | |||
Treatment Profile Fields: | |||
|
|||
* `timezone` (Time Zone) - time zone local to the patient. *Should be set.* | |||
* `units` (Profile Units) - blood glucose units used in the profile, either "mgdl" or "mmol" | |||
* `units` (Profile Units) - blood glucose units used in the profile, either "mg/dl" or "mmol" |
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.
Something like. Use mgdl
for mg/dL
and use mmol
for mmol/L
The profiles created by NightScout use "mg/dl" and "mmol". This is why AndroidAPS checks for them. Storing the profile again from Nightscout leads to the correct (?) "mg/dl" that will be detected correctly. |
An example from the tests where units is set to "mg/dl":
So it seems that like with the display units, the internal representation is "mg/dl" and "mmol". |
Any news to this? |
Nightscout code uses "mgdl" for the internal representation and for interpreting this variable, so if we change the documentation, we need to change multiple parts in the logic to understand both formats. The user-facing presentation uses "mg/dl". What's the specific API that AndroidAPS uses that sees "mg/dl"? |
@AdrianLxM can you have a look at @sulkaharo question above. If not answered, I think I'll postpone this to Nightscout 0.11 as it's not clear of what that best way is to fix this for both Nightscout and AndroidAPS |
@AdrianLxM Postponed this to 0.11.0 because we're about to release a new version and this change probably needs more thought. Please have a look at my question of two weeks ago and drop in at https://gitter.im/nightscout/public to discuss this |
@AdrianLxM and @MilosKozak : can we close this PR or does is there anything we can do know to resolve it? |
@AdrianLxM and @MilosKozak last call for this PR. If there is no response soon I'll close this due to inactivity. Postponing this to 0.12 release for now. @sulkaharo question of May 18th has not been answered, see #3423 (comment) |
I neither use Nightscout at the moment nor the 600 Series Uploader. Back when I reported that either the behavior of NS or the documentation was wrong as they didn't fit. |
Nighscout according to @MilosKozak and from what it sends to AndroidAPS uses "mg/dl", not "mgdl"