Skip to content

Tidepool sync 2026-05-11#33

Closed
loopkitdev wants to merge 34 commits into
LoopKit:devfrom
loopkitdev:tidepool-sync/2026-05-11
Closed

Tidepool sync 2026-05-11#33
loopkitdev wants to merge 34 commits into
LoopKit:devfrom
loopkitdev:tidepool-sync/2026-05-11

Conversation

@loopkitdev
Copy link
Copy Markdown

Refreshed Tidepool → DIY sync from the tidepool-sync/2026-05-11 branch.

This supersedes and replaces the previous Tidepool Merge PR (#22), which is being closed in favor of this one.

nhamming and others added 29 commits September 25, 2023 15:51
…m-package

LOOP-4781 Types moved to LoopAlgorithm
…m-package

LOOP-4781 Types moved to LoopAlgorithm
…cheduled-presets

LOOP-5235 Changes for protocol updates
…cheduled-presets

LOOP-5235 Changes for protocol updates
Resolved 2 pbxproj region(s) per LOOPKIT_SYNC_PROCESS.md:
- Preserved DIY LOCALIZATION_PREFERS_STRING_CATALOGS = YES (Debug/Release)
@loopkitdev loopkitdev mentioned this pull request May 20, 2026
ps2 added 5 commits May 24, 2026 15:42
The Nightscout Remote CGM plugin only reads glucose, so a site that is
open for reading needs no API Secret. Authorize and persist with just a
URL, sending the api-secret header only when a secret is provided.
The verify path was silent on failure. Log the URL being checked and the
outcome (success with entry count, empty glucose, or the underlying error)
under subsystem com.loopkit.NightscoutRemoteCGM.
Avoids the contradictory 'Required' placeholder on the now-optional field.
The timer-driven fetch was silent. Log each actual fetch and its outcome
(entry/new-sample counts, no entries, or error) so polling is visible.
LoopAlgorithm's filterDateRange now uses a binary search that assumes the
array is sorted ascending by date. Nightscout returns entries newest-first,
so unsorted input produced erratic results (usually 0 new samples, sometimes
the whole batch). Sort ascending before filtering.

Also fix latestBackfill, which used an inverted comparator and selected the
oldest sample instead of the newest, defeating the fetch throttle and the
glucose display.

Also log the cutoff and newest-entry dates to aid diagnosis.
Copy link
Copy Markdown

@marionbarker marionbarker left a comment

Choose a reason for hiding this comment

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

This PR is approved by testing it as part of the LoopKit/LoopWorkspace#450.

When building with Xcode 26.5 on a Mac, the following files are updated. I can provide a PR or you can just commit the xcstrings changes after building.

modified: NightscoutRemoteCGM/Localizable.xcstrings

The changes were small enough that I did a code review.

I noticed the IPHONEOS_DEPLOYMENT_TARGET is set to 17.6. At this point does it make sense to push to iOS 18. All phones that can go to 17 can also go to 18. That simplify future updates if we can use features found with iOS 18. I'm only going to make that comment one time in this PR but of course it pertains to all the LoopWorkspace PR 450 submodules.

@loopkitdev loopkitdev closed this Jun 4, 2026
@loopkitdev loopkitdev deleted the tidepool-sync/2026-05-11 branch June 4, 2026 12:14
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