Skip to content

Ignore the previous pod's reservoir volume after a pod change - #783

Open
bjorkert wants to merge 2 commits into
devfrom
fix/pod-change-reservoir-carryover
Open

bjorkert wants to merge 2 commits into
devfrom
fix/pod-change-reservoir-carryover

Conversation

@bjorkert

@bjorkert bjorkert commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Loop uploads its last reservoir reading until it is 15 minutes old, whichever pod it came from, so the first records after a pod change carry the old pod's final volume under the new pod's ID. Since #746 carries a reading for 30 minutes, LoopFollow showed the old pod's volume for around 45 minutes after a change, and the low reservoir alarm could act on it.

For an Omnipod, volumes after a pump ID change are now ignored and the row shows 50+U until the new pod has uploaded a record without a volume or 15 minutes have passed. A new pod reports no volume until it is below 50U, so nothing real is lost. Records where Loop reports the Omnipod as Unknown, between deactivation and pairing, also read as 50+U, and the stored pump is kept through them so the next pod still reads as a change. Medtrum, which Loop always reports as Unknown, still shows its volume. Reading times are the record's pump clock.

Replayed against a month of Nightscout data from one Loop user with DASH, all five pod changes with carried over volumes now show 50+U.

Loop keeps uploading its last reservoir reading for 15 minutes after a pod change, under the new pod's ID. LoopFollow now ignores volumes for a new Omnipod until it has uploaded a record without one or 15 minutes have passed, and dates readings by the record's pump clock.
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.

1 participant