Closed burnedikt closed 2 years ago
:tada: This PR is included in version 0.2.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
@burnedikt thanks for this, I tested this and specifying "mmol/l" does not work. Perhaps the diasend API doesn't accept it, or maybe the unit is differently typed such as mmoll
or mmol
. However, "mg/dl" is converted successfully to mmol/l when I changed this back.
@boethius thanks for testing. You were right in that it didn't correctly work on the nightscout side. Sorry, I should've tested more thoroughly. Eventually, I found out that nightscout currently always expects the value to be in mg/dl and then converts it accordingly, depending on what DISPLAY_UNITS
is configured.
So I ended up removing the support for mmol/l
in this library again as it doesn't really help. Diasend can still return the values in mmol/l but nightscout can't handle it. Reference: https://github.com/burnedikt/diasend-nightscout-bridge/commit/625748780f6b68f17152c47f4bbd73fa9a43f1fc
Adds support for different types of units for glucose values (mg/dl and mmol/l). Addresses #2