Skip to content
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

fix importing settings from Nightscout #170

Merged
merged 1 commit into from
May 11, 2024

Conversation

MikePlante1
Copy link
Contributor

Before this PR, two settings were not imported from Nightscout correctly for me.
My 95 mg/dL target glucose got imported as 72 mg/dL (the lowest allowed)
My 58mg/dL ISF got imported as 9 mg/dL

After applying this PR and building to a fresh now simulator, my settings were imported correctly.

I then reset the simulator and installed this PR again to test with somebody else's Nightscout which uses mmol/L and confirmed target glucose and ISF did get imported correctly as well.

Copy link
Contributor

@bjornoleh bjornoleh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested successfully with import of mmol settings from NS. No issues.

@bjornoleh bjornoleh added the bug Something isn't working label May 10, 2024
@pheltzel
Copy link

I believe Trio v0.1.0 is still doing this -- this happened to me too, today. My 2 segments of ISF (55 and 60) were imported as 9. And my target was set to 72.

@bjornoleh
Copy link
Contributor

I believe Trio v0.1.0 is still doing this -- this happened to me too, today. My 2 segments of ISF (55 and 60) were imported as 9. And my target was set to 72.

Yes, this PR has not yet been merged, so current dev still has this issue.

Copy link
Contributor

@dnzxy dnzxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me. Tested with mg/dl and mmol/L by Mike, and mmol/L by Bjørn, thus merging.

@dnzxy dnzxy merged commit 8a4a021 into nightscout:dev May 11, 2024
@pheltzel
Copy link

I know this was already merged, but I tested this morning -- the error occurred when importing, using mg/dl. I applied the fix, reimported from NS and then settings were imported correctly. Thanks!

@MikePlante1 MikePlante1 deleted the import_settings_from_nightscout branch May 11, 2024 13:15
@MikePlante1 MikePlante1 mentioned this pull request May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants