Skip to content

Create, edit, rename and delete Loop and Trio profiles remotely - #833

Open
bjorkert wants to merge 1 commit into
loopandlearn:devfrom
bjorkert:therapy-profiles
Open

bjorkert wants to merge 1 commit into
loopandlearn:devfrom
bjorkert:therapy-profiles

Conversation

@bjorkert

@bjorkert bjorkert commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

The Profiles screen under Remote can switch, create, edit, rename and delete profiles, and edit the scheduled starts, for Loop and Trio. It only shows these when the app lists the commands. Before sending, the review shows a diff and warns when a change gives more insulin, and a change to the active profile says that it changes dosing at once. When the reply push is lost, LoopFollow reports the command as applied once the uploaded profiles show the change. Loop with the Profile Save & Load customization keeps switch only. Loop push bodies are serialized without escaped slashes, so the size check measures what is sent. Glucose values in mmol/L are shown with one decimal.

Companion to LoopKit/LoopWorkspace#583 and nightscout/Trio#1766.

Screenshots and recordings from the simulator with invented data.

01-loop-remote-profiles
Loop: Remote → Profiles
02-loop-profile-preview-active
Active profile preview
03-loop-profile-preview-weekend
Profile preview
04-loop-editor-active-profile-warning
Editing the active profile
05-loop-values-editor-basal
Values editor
06-loop-review-more-insulin-warning
Review: more-insulin warning
07-loop-review-diff
Review: diff
08-loop-send-confirmation
Send confirmation
09-loop-result-profile-saved
Result
10-loop-scheduled-switches
Scheduled switches
11-loop-scheduled-start-editor
Start editor
12-trio-remote-profiles
Trio: Remote → Profiles
13-trio-profile-preview
Trio profile preview
14-trio-editor-single-glucose-target
Trio: one glucose target
15-trio-result-profile-saved
Trio result

Edit the active profile in Loop from LoopFollow

V1-lf-edit-active-basal-loop.mp4

The same, side by side with Loop

V1b-side-by-side-lf-and-loop.mp4

Edit the active profile in Trio from LoopFollow

V2-lf-edit-active-basal-trio.mp4

The same, side by side with Trio

V2b-side-by-side-lf-and-trio.mp4

@bjorkert

bjorkert commented Nov 12, 2026 •

Copy link
Copy Markdown
Member Author

Testing so far, for reviewers.

On real phones. LoopFollow ran on an iPhone SE against Loop and Trio on an iPhone XS Max, over real APNs, against test Nightscout sites. Both apps ran with an Omnipod DASH pod filled with water, lying on the table and not on a body.

  • Against both Loop and Trio:
    • switch, create, edit of the active profile, rename and delete;
    • deleting the active profile or Default is not offered, and the phone refuses it as well;
    • the scheduled-start editor (add, pause, resume, delete);
    • a conflict after a change on the phone, and a missing profile.
  • The review before sending: the diff, the more-insulin warning, and the warning that a change to the active profile changes dosing at once.
  • When the reply push is lost, the command is reported as applied once the uploaded profiles show the change. This happened in practice with both apps, and was also forced.
  • Loop with the Profile Save & Load customization: the Profiles button works for switching only, and create, edit, delete and scheduled starts are not offered. After Loop is upgraded to the profiles version, the full set appears.
  • Loop without the customization: the Profiles button is greyed out and explains why.
  • Switching the glucose unit in Loop and in Trio:
    • previews follow the uploaded profile document;
    • mmol/L values are shown with one decimal;
    • an edit made from a preview loaded before the switch is applied correctly or refused, never applied wrongly;
    • values the caregiver didn't change stay exactly as stored on the phone, in both Loop and Trio.

In the simulator. The full unit test suite, plus end-to-end runs against a mock Nightscout with Loop and Trio.

In daily use: I'm running this in vivo, with LoopFollow on an iPhone 16 Pro Max following Trio on an iPhone 17 with a Medtrum Nano.

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