-
Hi folks, hope someone can help me here. I'm trying to understand what unit is used when xdrip sends the BG values to AAPS. Is it always in mg/dl even if the user uses the mmol/L units? "Send Display Glucose" tells me that its going to be mmol/L, (which I'm using) but the data stored in mongodb on NS suggests that mg/dL was received without any conversion. I see sgv entries in mongodb with values in mg/dl that cannot be obtained by multiplying either 18 or 18.0182, no matter what kind of round or int conversion is used. I checked the docs and the discussions here and I couldn't find my answer. What I'd like to have is that xdrip sends mg/dl values, given its higher graduation than mmol/L. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
As far as I know, everything is done in mg/dL. All calculations are done in mg/dL. All values are stored in the database in mg/dL. Now, you are making a valid observation with respect to the "Send Display Glucose" setting. Regardless of all of that, I am 90% sure the values broadcasted to AAPS are in mg/dL. |
Beta Was this translation helpful? Give feedback.
As far as I know, everything is done in mg/dL.
The only time xDrip may intervene and convert to (from) mmol/L is when:
1- It is displaying a value on the screen and the user has chosen mmol/L as their unit of choice.
2- The user is entering a glucose value (for example, when calibrating) and they have chosen mmol/L as their unit of choice.
All calculations are done in mg/dL. All values are stored in the database in mg/dL.
And, as I said, as far as I know, everything is broadcasted in mg/dL.
Now, you are making a valid observation with respect to the "Send Display Glucose" setting.
That setting is not a distinction between mg/dL and mmol/L. It is rather a distinction between the real value…