Skip to content

Add an Apple Watch app - #785

Open
bjorkert wants to merge 21 commits into
devfrom
feature/apple-watch
Open

bjorkert wants to merge 21 commits into
devfrom
feature/apple-watch

Conversation

@bjorkert

@bjorkert bjorkert commented Oct 19, 2026 •

Copy link
Copy Markdown
Member

Adds an Apple Watch app for Loop and Trio. It replaces #642, #641 and #594 and builds on ideas from all three; thanks to @aug0211 and @MtlPhil.

The watch shows BG, trend, IOB, COB and a graph, the phone's statistics and info table, and complications, and sends meal (with a bolus for Trio, as on the phone), bolus, override and temp target commands. The phone is the main source: it sends the data and checks and sends the commands with the same guardrails as its Remote screens. When the phone is off or out of reach, the watch fetches from Nightscout or Dexcom itself and sends commands directly, using credentials the phone copies to the watch keychain when they change. Insulin needs a full Digital Crown turn and an unlocked watch on the wrist. Requires watchOS 10 (Series 4 and newer).

Browser builders need to run Add Identifiers once and add the App Group to the two new watch identifiers; until then the build stops with a link to the instructions in loopandlearn/loopfollowdocs#72.

Loop glucose Loop graph Trio glucose Trio graph

Statistics Info Bolus Crown confirmation

Meal Sent Without the iPhone

…p and Trio

The phone sends glucose, chart data and remote settings to the watch over WatchConnectivity; the watch holds no credentials. Commands from the watch are validated and sent by the phone through the existing Loop APNS and Trio Remote Control paths, gated by a new Remote setting. Includes WidgetKit complications, watch targets in fastlane and tests for the watch protocol.
…t, and limit complication reloads to new readings

Remote tiles are disabled while the iPhone is out of reach.
…olbar, quick picks

The glucose page shows BG with trend and delta, IOB and age in the top bar, a two-hour sparkline, and Override, Meal or Bolus, and Temp Target in the bottom toolbar. The full chart has its own page. Bolus offers the AID's recommendation and the phone's Quick-Pick boluses before a custom amount; Meal shows Quick-Pick meals and carbs, with fat, protein, bolus and time under More. A successful send shows Sent, notes that Loop or Trio confirms with a notification, and returns to the glucose page.
…nly failure does not name the missing profile
@aug0211

aug0211 commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

If I am reading correctly, this loses the independence of watch-only operation.

Is this tethered only - always requiring a connection to the phone?

@bjorkert

Copy link
Copy Markdown
Member Author

It's work in progress, I am looking into adding untethered in the current PR (setting it to draft for now)

@bjorkert
bjorkert marked this pull request as draft October 19, 2026 13:02
@aug0211

aug0211 commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Got it. Can reference what was shipped in mine, hope it helps.

@bjorkert
bjorkert marked this pull request as ready for review October 19, 2026 14:40
… buttons the same size, and let Trio meals carry a bolus as on the phone

The crown symbol for setting an amount follows the wrist the watch is worn on.
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.

2 participants