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

NightscoutManager.swift: Upload both suggested and enacted to NS #14

Merged
merged 1 commit into from
May 2, 2024

Conversation

bjornoleh
Copy link
Contributor

in closed loop mode.
Partially reverts 55e9ede "Reduce NS data trafic", which uploaded only enacted in closed loop mode.

in closed loop mode.
Partially reverts 55e9ede "Reduce NS data trafic", which uploaded only enacted in closed loop mode.
@bjornoleh bjornoleh requested a review from mountrcg March 17, 2024 18:20
@mountrcg
Copy link
Contributor

I do not think I have this reverted. I remember switching my grafana board to use enacted instead of suggested in NS.
What is your reasoning to upload suggested as well @bjornoleh ?

@bjornoleh
Copy link
Contributor Author

bjornoleh commented Mar 23, 2024

To follow up this one: As a caregiver, I do find myself looking at “suggested” entries in the OpenAPS pill sometimes. They have tags such as “Waiting” and a couple of other ones, and are displayed with a warning ⚠️ icon on the OpenAPS devicestatus pill. Without uploading the “suggested” entries, there would simply be less information available.

@bjornoleh bjornoleh requested a review from dnzxy April 4, 2024 10:03
@dnzxy
Copy link
Contributor

dnzxy commented Apr 6, 2024

@mountrcg maybe an answer @scottleibrand gave to a similar question of mine on Discord can make the intent of this PR clearer:

Scott wrote

In short, pump comms are unreliable, and not to be trusted. OpenAPS / oref0 assumes that suggestions are worth producing, and uploading to Nightscout, every time the loop runs, but that not all of those will be successfully enacted on the pump, and just as importantly, not all of them need to be enacted on the pump. For example, if you have a 1U/hr basal, and need 0.5U of additional insulin, it might set a 2U/hr temp basal for 30m to deliver that. If 15m later you now need 0.2U of additional insulin, it would be counterproductive to cancel the 2U/hr high temp that has 15m left to run and replace it with a 1.4U/hr high temp with a duration of 30m. So instead, the suggestion is to do nothing, and there is no temp basal enacted. The Nightscout pill then shows both the most recently enacted suggestion, as well as the more recent do-nothing suggestion.

I think NS should show both and we should upload both.

+1 for this.

bjornoleh added a commit that referenced this pull request Apr 9, 2024
4438013 Merge pull request #11 from nightscout/issue-template
d76ed48 Update config.yml
8d4f4ff Merge pull request #14 from nightscout/revert_actualDate
a42e58f Revert "actualDate" changes to lib/meal/history.js
f10ef66 Edit  issue templates
@Sjoerd-Bo3 Sjoerd-Bo3 merged commit 49a4b83 into nightscout:dev May 2, 2024
@MikePlante1 MikePlante1 mentioned this pull request May 3, 2024
mountrcg pushed a commit to mountrcg/Trio that referenced this pull request Aug 1, 2024
Introduce 3-tab-history, fix loop status
mountrcg pushed a commit to mountrcg/Trio that referenced this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants