Skip to content

Syncing Surfacing of G5/G6 Sensor Lifecycle + Detect Anubis-modded G6 to LoopKit#215

Open
dnzxy wants to merge 2 commits into
LoopKit:devfrom
loopandlearn:dev
Open

Syncing Surfacing of G5/G6 Sensor Lifecycle + Detect Anubis-modded G6 to LoopKit#215
dnzxy wants to merge 2 commits into
LoopKit:devfrom
loopandlearn:dev

Conversation

@dnzxy

@dnzxy dnzxy commented Jul 1, 2026

Copy link
Copy Markdown

See loopandlearn#6
Tests are pending as of loopandlearn#7

dnzxy added 2 commits June 16, 2026 03:51
- Implement cgmStatusHighlight and cgmLifecycleProgress on G5/G6 so
  consumers can render sensor warmup, calibration state, sensor and
  session failure, and remaining-time UI. Status is driven by
  Glucose.state (CalibrationState); lifecycle is driven by
  sessionStartDate / sessionExpDate from the transmitter.

- Parse transmitterExpiryInDays from the version-rx frame (bytes 13-14)
  and expose isAnubis on G6CGMManager. Stock G6 reports a 90-day
  lifetime; Anubis-modded G6 reports 180 (heuristic borrowed from
  xDrip4iOS).

- Active-mode connect reads the version frame after glucose; passive
  mode catches it via the control-response listener. The field is
  persisted on TransmitterManagerState so isAnubis survives an app
  restart.

- The lifecycle ring fills against the actual warmup window: 2 h for
  stock G5/G6, 50 min for Anubis-modded G6.
Surface G5/G6 sensor lifecycle; detect Anubis-modded G6
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