Repository navigation
Show CGM sensor states from Nightscout notes - #763
Merged
Merged
Conversation
Loop and Trio can upload a note like "CGM: temporarySensorIssue" when the Dexcom has no reliable reading. These notes get their own marker on the graph, placed at the last reading before the note. While no newer reading has arrived, the state is shown under the BG on the main screen, the snoozer and the Live Activity, and is added to the Missed Reading and Not Looping notifications. Alarm behavior is unchanged.
# Conflicts: # LoopFollow/ViewControllers/BGDisplayView.swift
bjorkert
added a commit
to bjorkert/LoopFollow
that referenced
this pull request
Oct 17, 2026
marionbarker
approved these changes
Oct 17, 2026
marionbarker
left a comment
Collaborator
There was a problem hiding this comment.
Code change already approved.
Test the build to an ✅ SE 2nd gen iOS 18 and an ✅ SE 3rd gen iOS 27 phone.
kristinkand
added a commit
to kristinkand/LoopFollow
that referenced
this pull request
Oct 25, 2026
… own start date The merge brought upstream's loopandlearn#763 a second time (this branch had it already as 2d9a42c), so BGDisplayView declared cgmSensorState twice. The override pills' details (loopandlearn#781) use upstream's startDate, which this branch computes per entry: the entry's own start now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LgnnHLJbhxmQaEjQNYR5VZ (cherry picked from commit d25a62f)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Loop (with the cgm_sensor_notes customization) and Trio (nightscout/Trio#1420) can upload a note like "CGM: temporarySensorIssue" when a Dexcom G6 or G7 reading has no reliable glucose. LoopFollow now recognizes these notes.
They get an orange triangle on the graph, placed at the last reading before the note. Before this, a note newer than the last reading was drawn at 100. The pill shows the state in plain words, for example "Temporary sensor issue".
As long as no newer reading has arrived, the state is shown under the BG on the main screen, on the snoozer and on the Live Activity (lock screen and Dynamic Island). It is also added to the text of the Missed Reading and Not Looping notifications. The next reading clears it. Alarm behavior is unchanged.
Nothing changes for users whose uploader does not send these notes.