Skip to content

Remote Control

Remote Control Overview

Trio can accept remote commands from Nightscout or from LoopFollow. There are a variety of options, but the final control of whether remote commands will be enacted rests with the Trio user. They can enable or disable remote control.

Nightscout version must be 15.0.2 or newer

To properly display the OpenAPS pill with Trio 0.5.x (or newer), your Nightscout version must be 15.0.2 (or newer). If you do not see the expected treatments or pills in the Nightscout dashboard, follow the steps to Configure for OpenAPS.

The most powerful arrangement, for Trio 0.5.x (or newer), is to configure the LoopFollow app to use the Trio Remote Control (TRC) setting.

The limited use of remote control with Nightscout, i.e., entry of Carb Correction and Temporary Targets when Careportal is authenticated, continues to be supported with Trio.

Nightscout URL or App Options
Careportal Carb Correction
Temporary Target
Temporary Target Cancel

Additional remote capabilities are offered for Trio using the LoopFollow app with these versions:

  • Trio 0.5.x (or newer)
  • LoopFollow version 2.4.0 (or newer)
LoopFollow Remote Type Options
Nightscout Set and Cancel Temp Target
Trio Remote Control Meal (Carbs or Carbs & Bolus)
Bolus
Temp Target
Overrides
How does this differ from Trio 0.2.x?

Trio can use Nightscout Careportal to enter Carb Correction, and start and cancel Temporary Target.

  • This was available in Trio 0.2.x and continues to be available in Trio 0.5.x (or newer).

Trio 0.2.x supported other remote options (using announcements via Careportal).

  • Those options were replaced by the more secure Trio Remote Control for Trio 0.5.x (or newer)
  • Using announcements to provide remote control of the Trio phone is no longer supported

Trio Remote Control

Default: OFF

Remote control must be enabled on the Trio phone or no remote information is accepted by the Trio phone.

You can search for this screen in Trio settings or go through the sequence: Trio, Settings, Features, Remote Control.

Once Remote Control is enabled, a Shared Secret is available. This is only used if you want to Configure LoopFollow Trio Remote Control.

Trio remote control settings

When Remote Control is enabled on the Trio app and the LoopFollow phone is properly configured, you can add carbs, send boluses, set or cancel overrides or temporary targets from the LoopFollow phone to the Trio phone via Apple push notifications.

The SHARED SECRET should be copied from the Trio phone and added to the Shared Secret row of the LoopFollow Remote Settings screen as part of the configuration for using LoopFollow.

Important

The ability for the Trio app to be remotely controlled will be disabled when Enable Remote Control is turned OFF, even if you have LoopFollow configured with the correct shared secret or your Nightscout URL has Careportal access. This is for the protection of the Trio user, so that they always are the primary controller of their insulin dosing app.


LoopFollow Overview

Experienced LoopFollow users should still read this section - it touches on important configuration requirements for remote control.

The graphic below shows the LoopFollow features on the main screen of the app.

LoopFollow main screen

LoopFollow Settings

You tap on the settings icon at the bottom right of the toolbar to configure LoopFollow. The setting screen is shown in the graphic below.

LoopFollow settings

LoopFollow Data Source

You provide LoopFollow with information about the person you are following. At least one of these must be entered:

Add Nightscout

Nightscout Access

It is possible to have your Nightscout site readable by the world, in which case you do not need to add a token. If you choose to do that, just ignore references to entering the token below. The status will show up as OK (Read).

The only exception is if you choose to Use LoopFollow Nightscout Remote Control. In that case, you must have a token with careportal access.

For more information:

The Nightscout URL is required to enable display of the Information Table. It is recommended that you secure you Nightscout site so a token is required to view it. The type of token depends on the type of remote control desired. The table below indicates the minimum token access for each type of remote control available with Trio. When you enter your credentials, LoopFollow tries to reach the site and then provides the status.

LoopFollow Remote Type Minimum Token Access LoopFollow Status
None Read OK (Read)
Nightscout Read & Careportal OK (Read & Write)
Trio Remote Control Read OK (Read)

Do I need a token for Trio Remote Contol

The security for using LoopFollow Trio Remote Contol comes from the Shared Secret and the APNS credentials. Your Nightscout site can be readable by the world if you so choose. In that case, no token is required and status will appear as OK (Read).

The graphic below shows the display when you tap on the Nightscout Settings row.

To simplify setup, you can copy your Nightscout URL (including the token) from the Admin Tools in Nightscout. When pasted into LoopFollow URL row, the app will automatically extract and fill in both the URL and token.

enter nightscout credentials

Add Dexcom

The graphic below shows the display when you tap on the Dexcom Settings row.

The Dexcom Share credentials are optional, but can be useful when the Nightscout URL is unavailable.

enter dexcom credentials

LoopFollow Remote Setting Type

The Remote Settings row in the LoopFollow Settings screen is used to select the type of remote access you wish to use.

LoopFollow remote settings type

The Trio Remote Contol option is not available

The Trio Remote Control option is only available in LoopFollow if you have already entered a Nightscout URL with a default profile recognized as a Trio profile. Review Troubleshooting for possible reasons for not seeing the option.

  • Nightscout option
    • Remote control with LoopFollow is limited to starting and canceling Temp Targets
    • Available with Trio 0.2.x
  • Trio Remote Control option
    • Remote control with LoopFollow includes adding remote carbs, enacting remote bolus, and starting and canceling Temp Targets and Overrides
    • Requires Trio 0.5.x (or newer) and LoopFollow 2.4.x (or newer)
    • Continue with Configure LoopFollow Trio Remote Control to finish the configuration process

LoopFollow Remote Options

The LoopFollow app provides amazing display and alarm capabilities, whether remote control is enabled or not.

It can be used with the Trio or the Loop app with the Nightscout option for starting and stopping temp targets (Trio) or overrides (Loop).

The graphic below shows the top portion of the Remote Settings screen when None, Nightscout or Trio Remote Control is selected. The lower portion of the screen is found in the Guardrails section.

LoopFollow remote options - all types


Use LoopFollow Nightscout Remote Control

If you select Nightscout as the Remote Control Type for LoopFollow, this enables Temporary Targets to be set and disabled from LoopFollow.

This is the only remote option that works for Trio 0.2.x when using LoopFollow.

LoopFollow remote options - all types


Configure LoopFollow Trio Remote Control

This is supported for Trio 0.5.x (or newer) when using LoopFollow 2.4.0 (or newer).

When you select Trio Remote Control as the Remote Type in the LoopFollow app, you must fill in the (1) Shared Secret, (2) APNS Key ID and (3) APNS Key.

Default Remote Settings Configured Remote Settings
default remote trc settings LoopFollow settings

User

The person using the LoopFollow app should enter the name they want to show up as having entered this entry.

  • At the current time, this is not used by LoopFollow for Trio
  • It does show up as a notification on a Loop phone when LoopFollow is used with the Loop app
    • This feature might be added to LoopFollow for Trio at a later time

Shared Secret

This is the unique shared secret that can be generated or entered into the Trio app in the Remote Control screen. The shared secret in Trio and LoopFollow must match to provide the ability to remotely send commands to this Trio app.

Please use a secure secret - the automatically generated secret is recommended.

APNS Key ID

If you previously configured remote control with the Loop app, you already have an Apple Push Notification System (APNS) Key ID and Key. These were added to the config vars in your Nightscout site. See Existing APNS. The value of the LOOP_APNS_KEY_ID goes here. Be sure to read the Configure for OpenAPS section about steps to make Nightscout and LoopFollow work with Trio.

If you have never created an APNS (or have lost the credentials), follow the directions in New APNS and copy the APNS Key ID into LoopFollow and save the value in your Secrets Reference file.

When creating the APNS, you must be logged in as a developer. The developer ID for the APNS must be the same as the one used for creating your Trio app or remote control will not work.

APNS Key

If you previously configured remote control with the Loop app, you already have an Apple Push Notification System (APNS) Key ID and Key. These were added to the config vars in your Nightscout site. See Existing APNS. The value of the LOOP_APNS_KEY goes here.

If you have never created an APNS (or have lost the credentials), follow the directions in New APNS and copy the APNS Key into LoopFollow and save the value in your Secrets Reference file.

Guardrails

The maximum allowed entries for Bolus, Carbs, Protein, and Fat are configured in the guardrails section shown in the graphic below. This example is one in which the Shared Secret and APNS values have not yet been added.

default guardrails

Meal Settings

The user can decide to enable or disable two features independently.

  • Meal with Bolus
    • When enabled, a bolus command can be sent at the same time as the meal entry
  • Meal with Fat/Protein
    • When enabled, the user is presented with a Protein and Fat row in addition to the Carbs and Bolus Amount rows

Refer to the graphic in the Guardrails section.

Debug / Info

This section indicates if Trio has uploaded required information to Nightscout.

The graphic below shows a properly configured LoopFollow when the Trio app was built using the Browser Build method.

shows credentials entered into loopfollow are correct

If you have empty rows in the Debug / Info screen, the most likely problem is the default profile is not coming from Trio. See Update Profile. If you took those steps and still have missing rows, return to Configure LoopFollow Trio Remote Control and try again.


Use LoopFollow Trio Remote Control

Once the LoopFollow phone is configured, and while the Trio phone is handy, test sending Remote Commands. It is good to also have a browser open with the Nightscout URL displayed.

Remember to give the system time to update.

The sequence is LoopFollow to Apple Push Notifications to Trio, which uploads to Nightscout and then is displayed in the LoopFollow main screen.

loopfollow trio remote control choices

Remote Meal

The Remote Meal command allows you to log carbohydrates (and optionally fat and protein) to Trio from LoopFollow, with or without an accompanying bolus.

How to Send a Remote Meal

  1. Open LoopFollow and tap the Remote Control button
  2. Select "Meal" from the command options
  3. Enter the meal details:
    • Carbs (required): Grams of carbohydrates
    • Fat (optional): Grams of fat
    • Protein (optional): Grams of protein
    • Bolus (optional): Units of insulin to deliver with the meal
    • Schedule (optional): Time to log the carbs (for pre-bolusing)
  4. Tap "Send" to transmit the command

What Happens When Trio Receives a Meal Command

  1. Validation: Trio checks that:

    • At least one macronutrient (carbs, fat, or protein) is provided
    • Carbs don't exceed your Max Carbs setting
    • Fat doesn't exceed your Max Fat setting
    • Protein doesn't exceed your Max Protein setting
    • No newer carb entries exist (prevents accidental duplicates)
  2. Carb Entry Creation: Trio creates a carb entry with:

    • The macronutrients you specified
    • A note: "Remote meal command"
    • FPU (Fat Protein Units) enabled if fat OR protein is present
    • Scheduled time (if provided)
  3. Bolus Delivery (if bolus amount was included):

    • The bolus is delivered immediately (even if the meal is scheduled)
    • Bolus validation checks are performed (see Remote Bolus section)
  4. Upload to Nightscout: The meal entry is logged to Nightscout for your records

  5. Response Notification: If configured, LoopFollow receives a success or failure notification

Scheduled Meals with Bolus

When entering meals and choosing to schedule the meal, any bolus included in the meal is enacted immediately. Only the carb entry is entered according to the schedule.

Safety Features

  • Duplicate Prevention: Won't log carbs if a newer entry already exists
  • Limit Enforcement: Respects your Max Carbs, Max Fat, and Max Protein settings
  • FPU Calculation: Automatically enables Fat Protein Units for low-carb, high-fat/protein meals
  • Nightscout Logging: All remote meals are logged for audit trail

Use Cases

  • Pre-bolusing: Schedule a meal for 15-30 minutes in the future while delivering insulin now
  • Macronutrient Tracking: Log fat and protein for better extended bolus calculations
  • Meal + Bolus: Deliver a complete meal bolus remotely in one command
  • Caregiver Support: Parents can log meals for children at school

When entering meals and choosing to schedule the meal, any bolus included in the meal is enacted immediately. Only the carb entry is entered according to the schedule.

scheduled meal warning

Remote Bolus

The Remote Bolus command allows you to deliver insulin remotely via LoopFollow. This is one of the most powerful remote features and includes multiple safety checks.

How to Send a Remote Bolus

  1. Open LoopFollow and tap the Remote Control button
  2. Select "Bolus" from the command options
  3. Enter the bolus amount in units (U)
  4. Tap "Send" to transmit the command

What Happens When Trio Receives a Bolus Command

  1. Validation: Trio performs comprehensive safety checks:

    • Bolus amount is provided and greater than 0
    • Bolus amount doesn't exceed your Max Bolus setting
    • Current IOB (Insulin on Board) is calculable
    • Current IOB + bolus amount doesn't exceed Max IOB
    • No recent bolus >20% of the requested amount in the last 10 minutes
    • APSManager is available and functioning
  2. Insulin Delivery: If all checks pass:

    • Trio sends the bolus command to your insulin pump
    • The pump delivers the insulin
    • Trio monitors the delivery for completion
  3. Upload to Nightscout: The bolus is logged to Nightscout with:

    • Amount delivered
    • Timestamp
    • Note indicating it was a remote command
  4. Response Notification: LoopFollow receives success/failure notification

Safety Features

Max Bolus Protection Your Max Bolus setting (configured in Trio settings) prevents delivery of dangerously large boluses. A remote bolus request exceeding this limit will be rejected.

Example: If Max Bolus = 10 U, a remote request for 12 U will fail with error message.

Max IOB Protection Trio calculates your current Insulin on Board and ensures the new bolus won't exceed your Max IOB safety limit.

Formula: Current IOB + Requested Bolus ≤ Max IOB

Example: - Current IOB: 8 U - Max IOB: 12 U - Remote bolus request: 5 U - Result: REJECTED (8 + 5 = 13 U, which exceeds 12 U limit)

Duplicate Bolus Prevention Trio checks for recent boluses in the last 10 minutes. If a bolus greater than 20% of the requested amount was recently delivered, the remote command is rejected.

Example: - Remote request: 5 U - Recent bolus (8 minutes ago): 4.5 U - 20% of 5 U = 1 U - Since 4.5 U > 1 U, the request is REJECTED as a likely duplicate

Purpose: Prevents accidental double-dosing if LoopFollow doesn't immediately reflect a bolus you just delivered manually.

Time Window Validation All remote commands include a timestamp. Trio rejects commands that are: - More than 10 minutes old (prevents replay attacks) - From the future (prevents clock manipulation)

Error Messages

If a remote bolus fails, you'll receive a notification explaining why:

Error Meaning Action
"Bolus amount exceeds max bolus" Requested bolus > Max Bolus setting Reduce bolus amount or increase Max Bolus in settings
"IOB would exceed max IOB" Current IOB + bolus > Max IOB Wait for IOB to decrease, or increase Max IOB
"Recent bolus detected" Similar bolus in last 10 minutes Wait 10 minutes or verify this isn't a duplicate
"APSManager unavailable" Trio can't access pump Check Trio app is running and pump is connected
"Command too old" Timestamp > 10 minutes ago Check phone clocks are synchronized; resend command

Use Cases

  • Meal Boluses: Deliver insulin for meals when away from phone
  • Correction Boluses: Correct high blood sugar remotely
  • Caregiver Support: Parents can dose insulin for children
  • Emergencies: Deliver insulin if user can't access their phone

Important Safety Note

Remote bolus is a powerful feature that delivers real insulin. Always:

  • Verify the bolus amount before sending
  • Check current blood glucose and IOB before sending
  • Ensure the user is aware a bolus is being sent
  • Have emergency glucagon available
  • Never use remote bolus as a prank or without authorization

Temp Target

The Temp Target command allows you to set or cancel temporary glucose targets remotely via LoopFollow.

How to Set a Remote Temp Target

  1. Open LoopFollow and tap the Remote Control button
  2. Select "Temp Target" from the command options
  3. Enter the temp target details:
    • Target: Desired glucose target in mg/dL (or mmol/L)
    • Duration: How long the target should be active (in minutes)
  4. Tap "Send" to transmit the command

What Happens When Trio Receives a Temp Target Command

  1. Validation: Trio checks that:

    • Target value is provided and valid
    • Duration is provided and greater than 0
  2. Temp Target Creation: Trio creates a temporary target with:

    • targetTop and targetBottom both set to the specified target
    • Duration in minutes
    • Custom name indicating it's a remote target
    • Marked as a "local" entry
  3. Storage: The temp target is saved to Trio's temp target storage

  4. Sync to Nightscout: The temp target is uploaded to Nightscout

  5. UI Update: Trio posts notifications to update the UI immediately

  6. Response Notification: LoopFollow receives confirmation

How to Cancel a Remote Temp Target

  1. Open LoopFollow and tap the Remote Control button
  2. Select "Cancel Temp Target" from the options
  3. Tap "Send" to transmit the command

What Happens When Canceling

  1. Fetch Active Targets: Trio retrieves all currently active temp targets
  2. Create End Records: For each active temp target, Trio creates a TempTargetRunStored record marking it as ended
  3. Disable All: All active temp targets are marked as disabled
  4. Sync to Nightscout: Changes are uploaded
  5. UI Update: Trio interface updates to show no active temp targets

Common Temp Target Values

Target Use Case
80-100 mg/dL Before meals (tighter control)
110-120 mg/dL Sleeping/overnight (prevent lows)
140-160 mg/dL Exercise (prevent lows)
120-130 mg/dL After meals (less aggressive corrections)

Temp Targets and Algorithm Behavior

Temporary targets affect how Trio delivers insulin:

  • Higher targets → Less aggressive insulin delivery, fewer/smaller SMBs
  • Lower targets → More aggressive insulin delivery, more/larger SMBs
  • Temp targets override your normal target glucose setting
  • Trio respects your safety limits (Max IOB, Max SMB) regardless of temp target

Use Cases

  • Exercise: Set higher target before/during exercise to prevent lows
  • Sleep: Set higher target at bedtime for peace of mind
  • Pre-meal: Set lower target before eating to achieve tighter control
  • Illness: Adjust targets when sick
  • Cancel: Return to normal targets anytime

Overrides

The Override command allows you to activate or cancel override presets remotely via LoopFollow. Overrides are powerful tools that simultaneously adjust multiple settings (insulin sensitivity, basal rates, carb ratios, and targets) based on predefined presets.

Prerequisites

Before using remote overrides, you must:

  1. Create Override Presets in Trio:

    • Go to Trio Settings → Overrides
    • Create and name your override presets (e.g., "Exercise", "Sick Day")
    • Configure the percentage adjustments for each preset
  2. Configure LoopFollow with the exact preset names

How to Start a Remote Override

  1. Open LoopFollow and tap the Remote Control button
  2. Select "Start Override" from the command options
  3. Select the override preset from the dropdown (must match a preset name in Trio)
  4. Tap "Send" to transmit the command

What Happens When Trio Receives a Start Override Command

  1. Validation: Trio checks that:

    • Override name is provided and not empty
    • Override name matches an existing preset (exact match, case-sensitive)
  2. Fetch Presets: Trio retrieves all override presets from storage

  3. Find Matching Preset: Searches for a preset with the exact name specified

  4. Disable Other Overrides: All currently active overrides are disabled first

  5. Enable Requested Override: The matching override preset is:

    • Enabled
    • Timestamp set to current time
    • Marked as not yet uploaded to Nightscout
  6. Save to Core Data: Changes are persisted

  7. UI Update: Trio posts notifications to refresh the UI

  8. Upload to Nightscout: The active override is logged

  9. Response Notification: LoopFollow receives confirmation

How to Cancel a Remote Override

  1. Open LoopFollow and tap the Remote Control button
  2. Select "Cancel Override" from the options
  3. Tap "Send" to transmit the command

What Happens When Canceling

  1. Fetch Active Overrides: Trio retrieves all currently active overrides
  2. Create End Records: For each active override, Trio creates an OverrideRunStored record marking it as ended
  3. Disable All: All active overrides are marked as disabled
  4. Sync to Nightscout: Changes are uploaded
  5. UI Update: Trio returns to normal settings

How Overrides Work

Overrides modify your therapy settings by percentage:

Setting Override Adjustment Effect
Insulin Sensitivity (ISF) Percentage multiplier 50% = half the insulin, 200% = double the insulin
Basal Rates Percentage multiplier 150% = 1.5x normal basal
Carb Ratios Percentage multiplier 75% = less insulin per carb
Target Glucose Override target value Completely replaces normal target

Example "Exercise" Override: - ISF: 150% (more sensitive, less insulin) - Basal: 75% (reduced basal delivery) - CR: 120% (less insulin for carbs) - Target: 140 mg/dL (higher target to prevent lows)

Example "Sick Day" Override: - ISF: 50% (more resistant, more insulin) - Basal: 150% (increased basal delivery) - CR: 80% (more insulin for carbs) - Target: 110 mg/dL (tighter control)

Override Preset Name Matching

Exact Match Required

The override name sent from LoopFollow must exactly match a preset name in Trio:

  • Case-sensitive: "Exercise" ≠ "exercise"
  • Spacing matters: "Sick Day" ≠ "SickDay"
  • Spelling must be exact

If no match is found, the command will fail with an error message.

Use Cases

  • Exercise: Activate exercise mode remotely before/during physical activity
  • Illness: Switch to sick day settings when user is unwell
  • Travel: Adjust settings for time zone changes or schedule disruptions
  • Stress: Modify insulin delivery during stressful periods
  • Menstrual Cycle: Adjust for hormonal changes
  • Cancel: Return to normal settings anytime

Safety Considerations

  • Overrides are powerful: They affect multiple settings simultaneously
  • Test first: Test override presets locally before using remotely
  • Monitor closely: Watch glucose trends closely when an override is active
  • Duration: Consider setting automatic duration limits on override presets
  • Communication: Ensure the user knows when an override is activated remotely

Troubleshooting

Issue Cause Solution
"Override not found" Name doesn't match any preset Check spelling and capitalization in both Trio and LoopFollow
"Failed to enable override" Trio can't access storage Restart Trio app and try again
Override not taking effect Override successfully activated but settings unchanged Verify the override preset has non-zero percentage adjustments configured

Apple Push Notifications System (APNS)

Existing APNS

If you previously configured remote control with the Loop app, you already have an Apple Push Notification System (APNS) Key ID and Key. These were added to the config vars in your Nightscout site.

If you do not have existing APNS Keys, skip ahead to New APNS.

When you configured APNS for the Loop app and saved information in your Nightscout config vars, they used the names in the table below. The same APNS Key ID and Key are what you need to add to the LoopFollow app in Configure LoopFollow Trio Remote Control.

Config Var
Format of Config Var Value
LOOP_APNS_KEY_ID AAAAAAAAAA
LOOP_APNS_KEY -----BEGIN PRIVATE KEY-----
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAA
-----END PRIVATE KEY-----

New APNS

When using Trio, you do not need to add the config vars to Nightscout that are required for Loop remote control. If you already have them, it doesn't hurt anything, but you do not need to add them to use remote control with Trio.

When using Trio Remote Control with LoopFollow, the Apple Push Notification System is used directly. The Shared Secret provides additional security.

If you do not have APNS credentials, you need to create a key and grant it access to the  Apple Push Notification Service (APNS).

Note - these directions are copied from LoopDocs so it suggests you name the key Nightscout. It is probably best to stick with that naming for APNS keys.

Reminder

This only works with the paid Apple Developer ID.

Apple changed the APN system

Apple changed the way APN are created. Your old ones should still work, but it they don't, create new ones and update all the places where they are used.

When creating new APN keys, you have the option for "Sandbox", "Production" or "Sandbox & Production". Be sure to choose "Sandbox & Production".

  1. To get started, go to the Keys section under Apple Developer's Certificates, Identifiers & Profiles and login with the Apple ID associated with your developer team that you used to build the Trio app.
  2. If not already open in your browser (compare with the below screenshot),
    • Click on Keys (located in the left-hand column).
    • Either click on the blue Create a new key button OR the plus button () to add a new key.

      img/apns-add-key.png

  3. In the form that appears, do the following:
    • Click the checkbox for enabling Apple Push Notifications service (APNs)
    • Enter a name for the key such as Nightscout (you can name it however you want, just make sure you know what the key is for by the name you choose).
    • Then click the Configure button to the right of the name
    • Choose Sandbox & Production and then Save
    • Tap on the Continue button, upper right

      updated instructions for creating and configuring an APNS key

  4. In the screen that follows, click the blue Register button.

    img/apns-register.png

  5. In the screen that follows, click the blue Download button.
    This step will download a file with a name that starts with AuthKey and ends with .p8.

    img/apns-download.png

  6. Find your AuthKey downloaded file in your downloads folder. It's a good idea to store this file where you can find it again if you need it. The next task is to rename the file so you can open it. Highlight the filename and choose rename, then add ".txt" after ".p8". In other words, modify AuthKey_AAAAAAAAAA.p8 to AuthKey_AAAAAAAAAA.p8.txt and click on Use .txt when questioned.

    rename the p8 file

  7. Double-click to open the AuthKey_AAAAAAAAAA.p8.txt file. It will look similar to the screenshot below. You need to highlight ALL OF THE CONTENTS of that file and copy it and then paste it both into your Secrets Reference file and into the row for LoopFollow APNS Key. Yes, allllll of the contents.
    So, the easiest way is to:

    • Click inside that file
    • Highlight all the text, and then
    • Copy all the text to the clipboard (Cf. screenshot below).
      • On a Mac, press Cmd+A to select all, then press Cmd+C to copy the selection.
      • On a PC, press Ctrl+A to select all, then press Ctrl+C to copy the selection.

    img/apns-copy-key.png

  8. The APNS Key ID is the 10-character name embedded in the filename: AuthKey_AAAAAAAAAA.p8.txt. You can also see it if you return to Apple Developer's Certificates, Identifiers & Profiles as highlighted in this graphic. You copy that APNS Key ID and then paste it both into your Secrets Reference file and into the row for LoopFollow APNS Key ID

    APNS KEY ID is highlighted by red rectangle


Troubleshooting

This section covers known troubleshooting issues:

Configure for OpenAPS

The Nightscout version must be 15.0.2 (or newer) to properly display the OpenAPS pill with Trio 0.5.x (or newer). Check your revision: Nightscout URL, Menu, scroll to bottom and examine the About section.

If you transitioned from the Loop app, you must make some modifications to Nightscout before you will be successful viewing your Trio data in your Nightscout site.

In Nightscout, you need to modify these config vars:

Config Var Loop Trio
ENABLE loop openaps
SHOW_PLUGINS loop openaps
SHOW_FORECAST loop openaps

Remember to restart the Nightscout server (restart dynos) after updating these variables.

Stop Nightscout access from the Loop app

If you were previously running the Loop app:

  • Remove Nightscout from Loop Services
  • Add Nightscout credentials to Trio
    • You need the URL and the API_SECRET.

In addition to this step, you may need to force the profile (from Trio) to upload to Nightscout and overwrite the one stored as the default profile in Nightscout.

Update Profile

Must on Trio 0.5.x (or newer)

If you are on Trio 0.2.x, you might see the option for Trio Remote Control in LoopFollow Remote Settings, but you can't use it. See Use LoopFollow Nightscout Remote Control.

If you were previously running the Loop app, take the actions in the previous section and then force the profile to update.

To force a profile to update to Nightscout, go to the Trio app and toggle Allow Uploading to Nightscout off (disable) and then enable it again.

Once the user has toggled "Allow Uploading to Nightscout", LoopFollow needs to be refreshed (pull down glucose value to refresh) or re-started in order to fetch the correct information. LoopFollow will refresh eventually, but most users are impatient.

If the Debug Info in LoopFollow is missing a Device Token or a Bundle ID, as shown on the left side of the graphic, you need to make sure the Loop app is no longer uploading to Nightscout and force the profile to update.

LoopFollow debug info indicates a problem

Trio Remote Control Stops Working

Other signatures that you need to force the update are shown in the graphics below - for both these instances, Trio Remote Control (TRC) was working with LoopFollow and then stopped working:

TRC Option Not Allowed TRC Error
cannot select trio remote control LoopFollow settings

Build LoopFollow

Follow this link to the LoopFollow build instructions.