diff --git a/index.html b/index.html index 22dc3be0..d6e81850 100644 --- a/index.html +++ b/index.html @@ -285,7 +285,7 @@
The project started as Ivan Valkou's FreeAPS X implementation of the OpenAPS algorithm for iPhone and later forked and rebranded as iAPS. Since then, many developers have contributed substantial work, leading to a range of new features and enhancements.
-Following the release of version 3.0.0, the project's direction significantly changed due to differing views on development, open source, and peer review. This led to the separation from the Artificial-Pancreas/iAPS repository and the birth of Trio as a distinct entity. This transition marks the project's new phase, symbolizing its evolution and the collaborative development's dynamic nature.
+Following the release of version 3.0.0, the project's direction significantly changed due to differing views on development, open source, and peer review. This led to the separation from the iAPS repository and the birth of Trio as a distinct entity. This transition marks the project's new phase, symbolizing its evolution and the collaborative development's dynamic nature.
Trio continues to leverage a variety of frameworks from the DIY looping community and remains at the forefront of DIY diabetes management solutions, constantly evolving with valuable contributions from its community.
Before starting with Trio, you should evaluate all your closed-loop options, including:
Work-In-Progress
PLEASE NOTE THIS DOCUMENTATION IS STILL BEING WRITTEN BY OUR AWESOME COMMUNITY. UNTIL IT IS FINISHED, PLEASE DO NOT SET UP YOUR TRIO BASED ON THIS DOCUMENTATION ALONE. CONTACT THE COMMUNITY ON DISCORD OR FACEBOOK TO MAKE SURE YOU GET IT RIGHT AND STAY SAFE
"},{"location":"#what-is-trio","title":"What is Trio?","text":"Trio is an automated insulin delivery system for iOS based on the OpenAPS algorithm with adaptations for Trio.
The project started as Ivan Valkou's FreeAPS X implementation of the OpenAPS algorithm for iPhone and later forked and rebranded as iAPS. Since then, many developers have contributed substantial work, leading to a range of new features and enhancements.
Following the release of version 3.0.0, the project's direction significantly changed due to differing views on development, open source, and peer review. This led to the separation from the Artificial-Pancreas/iAPS repository and the birth of Trio as a distinct entity. This transition marks the project's new phase, symbolizing its evolution and the collaborative development's dynamic nature.
Trio continues to leverage a variety of frameworks from the DIY looping community and remains at the forefront of DIY diabetes management solutions, constantly evolving with valuable contributions from its community.
Before starting with Trio, you should evaluate all your closed-loop options, including:
Warning
Trio is a DIY, open-source community project. It has not been evaluated by any regulatory agency and is for use at your own risk.
"},{"location":"#getting-started","title":"Getting Started","text":"Before starting with Trio, you should understand carb ratio (CR), insulin sensitivity factor (ISF), and basal rates. If you have read the documentation and still require help identifying your settings, please seek advice from your healthcare provider.
To use Trio, you are required to build the application from the source code. This does not require substantial technical know-how but is a time-consuming process. You may need several sessions to complete your first build.
Upon installation, you will need to configure your settings appropriately. By default Trio acts no differently than your pump, with the exception that it may recommend temporary basals from time to time. The magic happens by turning on \"Closed Loop\", enabling Super Micro Bolus (SMB) features, and turning on dynamic features.
In general, these are the first three settings you will want to configure as you gain confidence in the app and your settings:
If you are considering a transition from another closed loop system, please read this section first.
"},{"location":"#contribution","title":"Contribution","text":"Trio is built by a volunteer community. If you are interested in helping as a programmer, you can contribute to the Trio or OpenAPS code base. Trio is mostly written in SwiftUI, and the OpenAPS algorithm is written in JS.
You can also provide support in online support groups by helping users adjust their settings and troubleshoot common errors.
"},{"location":"Analyze/EvaluateBasal/","title":"EvaluateBasal","text":""},{"location":"Analyze/EvaluateBasal/#evaluate-basal","title":"Evaluate Basal","text":"Not a Medical Advice
This is not medical advice. Understanding the changes you are making is important, and always be sure to exercise caution. When in doubt, consult your diabetes care team for settings guidance.
"},{"location":"Analyze/EvaluateBasal/#before-adjusting-basal-rates","title":"Before Adjusting Basal Rates","text":"Consider CR and ISF First
Are you in open loop?
Caution
Until you understand how the Trio algorithm works, you should only make basal adjustments after basal testing in an open loop.
Is this a one-time event, or does it happen consistently over multiple days? Make sure it happens twice at the same time of day before making any adjustments.
Tip
A general rule of thumb is to adjust the basal rate 1 hour before the CGM shows a change in glucose levels that you want to correct. This is determined by the approximate peak time of rapid-acting insulin.
Example
This person noticed an increase in their average CGM readings starting around 1:00 AM. They were in open loop and had no late-night snacks so that they could rule out CR and ISF as factors. Because the rise began at 1:00 AM, they should increase their basal rate at 12:00 AM.
"},{"location":"Analyze/EvaluateBasal/#nightscout","title":"Nightscout","text":"Nightscout (NS) is a valuable resource that provides detailed information for analyzing your settings. Nightscout reports and Loopalyzer can be great tools for understanding your data.
"},{"location":"Analyze/EvaluateBasal/#build-nightscout","title":"Build Nightscout","text":"Instructions to build Nightscout
"},{"location":"Analyze/EvaluateBasal/#using-nightscout-for-basal-adjustments","title":"Using Nightscout for Basal Adjustments","text":"How to use Loopalyzer
"},{"location":"Analyze/EvaluateCR/","title":"EvaluateCR","text":""},{"location":"Analyze/EvaluateCR/#evaluate-cr","title":"Evaluate CR","text":"Not a Medical Advice
This is not medical advice. It is important to understand your changes and always exercise caution. When in doubt, consult your diabetes care team for settings guidance.
"},{"location":"Analyze/EvaluateCR/#before-adjusting-cr","title":"Before Adjusting CR","text":"With Trio, there is a reduced requirement for precise carb entries, although some precision will still improve outcomes. Some users prefer overestimating carb entries and giving a smaller percentage of the upfront bolus. Note: If you overestimate the carb entry and bolus for 100% upfront, the algorithm is limited in its ability to only suspend insulin as a means to prevent hypoglycemia following a meal.
If you have been giving 100% of the needed bolus for meals, it might be best to try a smaller percentage upfront rather than adjusting your CR.
"},{"location":"Analyze/EvaluateCR/#nightscout","title":"Nightscout","text":"Nightscout (NS) is a valuable resource that provides detailed information for analyzing your settings. Nightscout reports and Loopalyzer can be great tools for understanding your data.
"},{"location":"Analyze/EvaluateCR/#build-nightscout","title":"Build Nightscout","text":"Instructions to build Nightscout
"},{"location":"Analyze/EvaluateCR/#how-to-use-nightscout-for-cr-adjustments","title":"How to Use Nightscout for CR Adjustments","text":"How to use Loopalyzer
Nightscout reports can provide crucial information to observe how fast the carbs decay. Open the day-to-day report in Nightscount and check the COB box and IOB box. You will see COB as orange \u201ctriangles.\u201d If they decay too soon (in less than 2 hours or so, depending on the type and size of the meal), the carbs were either underestimated, CR could be too high a number, or ISF could be too low (carb decay is related to the fraction of CR/ISF) If you carbs take too long to decay, your insulin to carb ratio may be too strong. This can get complicated if meals overlap, but it is still possible. You may want to utilize the day-to-day report when that situation occurs.
If the carb absorption observed by the algorithm is too slow, COB will eventually be cut down. This presents as a vertical drop in COB in the day-to-day report. This helps avoid overdosing on overestimated or not-eaten carbs or if physical activity delays digestion or mutes the BG rise.
"},{"location":"Configuration/Configure/","title":"Device Configuration","text":"This section covers the first two sections of Trio settings: Closed Loop and Devices
"},{"location":"Configuration/Configure/#closed-loop","title":"Closed Loop","text":"Closed loop is turned off by default. This means Trio cannot make adjustments autonomously. Until you enable closed loop, the system relies on your approval of its actions.
"},{"location":"Configuration/Configure/#when-should-i-close-the-loop","title":"When Should I Close the Loop?","text":"Closed loop allows the system to make insulin adjustments automatically. Your goal for looping is to enable this setting to reduce the time spent managing your diabetes. However, entering closed loop too early can make it difficult for new loopers wanting to optimize their application settings. If this is your first time looping, this setting should remain disabled until your profile settings (CR, ISF, basal rates) are correctly set. You should monitor Trio's predictions and suggestions to see if they are appropriate for you. Please look at the corresponding CR, ISF, and basal rates sections for more information on their adjustment.
"},{"location":"Configuration/Configure/#settings","title":"Settings","text":"I've been using Loop. Can I copy my settings?
No. Users coming from Loop usually adjust their ISF and CR settings to compensate for fluctuations in insulin needs throughout the day. When using those settings for Trio, the algorithm also adjusts to compensate for the fluctuations, which may result in over- or under-dosing. Please review the steps of monitoring Trio predictions and change your settings accordingly. It would help if you also read the section on Coming from Other AID Systems.
Tip
Remember that everyone's diabetes is different, and there is no one-size-fits-all, so take the time to optimize your settings for the Oref algorithm.
"},{"location":"Configuration/Devices/","title":"Devices","text":"Adding devices to Trio is easy. You can only have one pump and one CGM active simultaneously. If you want to switch to another pump or CGM, delete the current device first. When you select a device, you will be guided through its setup with an on-screen guide.
"},{"location":"Configuration/Devices/#pump","title":"Pump","text":"This section asks you to select your insulin delivery system. For more information on supported pumps, you can find them under Compatible Pumps. Omnipod Eros and older Medtronic devices don't support Bluetooth. These devices require a Rileylink, OrangeLink, or EmaLink to translate communication between your phone's Bluetooth signals and the pump's radio communication signals.
During pump setup, you will be asked to choose your insulin type. This will determine your duration of insulin action and peak action time. These settings can be changed later, though it is not recommended."},{"location":"Configuration/Devices/#cgm","title":"CGM","text":"
This section asks you to choose your glucose data source. Most options are self-explanatory. For more information on supported CGMs, please visit Compatible CGMs.
"},{"location":"Configuration/Devices/#changing-transmitter-on-dexcom-g6","title":"Changing transmitter on Dexcom G6","text":"If you are using a Dexcom G6 sensor, you must remember to change your transmitter ID in the Trio app whenever you change transmitters.
"},{"location":"Configuration/Devices/#changing-dexcom-g6-or-g7-sensor","title":"Changing Dexcom G6 or G7 sensor","text":"Change the sensor through the Dexcom G6 or G7 app. Trio will automatically pick up the reading; you don't need to do anything else.
"},{"location":"Configuration/Devices/#xdrip-as-bg-source","title":"xDrip as BG source","text":"xDrip is not recommended with the Trio app, as native connections to CGM are more stable.
"},{"location":"Configuration/Devices/#watch","title":"Watch","text":"This section asks you to add a watch to Trio. Apple Watch and some Garmin watches are compatible. On an Apple Watch, you can add carbs and boluses, set a temporary target, and show BG, IOB, COB, etc. Garmin watches only display data and will not let you interact by adding carbs or insulin.
"},{"location":"Configuration/transition-qa/","title":"Transition from other closed-loop solutions","text":"If you've been using other closed-loop solutions, it's essential to understand the differences between the one you're used to and Trio.
In this section of the documentation, we'll explain the differences from a user perspective.
"},{"location":"Configuration/transition-qa/#coming-from-androidaps","title":"Coming From AndroidAPS","text":"AndroidAPS and Trio are based on the same algorithm (Oref) and base system (Artificial Pancreas System, APS). While there are several differences between AndroidAPS and Trio, the main algorithm is the same, meaning you can expect Trio to behave the same way AndroidAPS does generally.
Benefits of AndroidAPSTake some time to read the docs and fine-tune your settings. Once your settings are in order, consider switching to Trio.
"},{"location":"Configuration/transition-qa/#coming-from-ios-loop","title":"Coming From iOS Loop","text":"iOS Loop uses different algorithms, meaning it has a different approach than Trio. If you're coming from iOS Loop, you must change how you think. Please read that statement again three times, as it is crucial.
Benefits of LoopYou should consider switching to Trio if you've been using Loop for a while and have issues that Loop can't solve even after tweaking and re-tweaking your settings and profile."},{"location":"Configuration/transition-qa/#common-reasons-users-switch-from-loop-and-how-trio-addresses-them","title":"Common Reasons Users Switch from Loop and How Trio Addresses Them","text":"Incorrect or missing carb entries
Trio has a feature called Unannounced Meals (UAM). With this option enabled and properly configured, Trio will react to rising BG by giving insulin through a Super Micro Bolus (SMB) even if no carbohydrates are registered. UAM helps in two scenarios: forgetting to add carbohydrates for a meal and entering carbohydrates but not the correct amount.
Lots of manual corrections and \"fake carbsWith UAM and SMB active and properly configured, Trio will make any necessary corrections. There is no need to add \"fake carbs\" to make Trio give insulin, as many Loop users are used to.
Persistent highs because of variations in Insulin Sensitivity Factor (ISF) and Insulin-to-Carbohydrate Ratio (CR)Many people with diabetes need more insulin as their BG rises. Because Loop uses constant, pre-set ISF and CR values; it cannot address the unexpected change in sensitivity. With dynamic ISF and dynamic CR enabled and properly configured, Trio will give enough insulin to lower those highs without user interaction. More aggressive settings might lead to a low. With less aggressive settings, it will take Trio some time to get BG back in range. The key is to find the effective balance between conservative and aggressive to meet your needs.
Recurring/Rebound LowsProperly configured, Trio will not give you insulin if you don't need it. A typical issue with Loop is that it stops delivering insulin when BG falls and then gives insulin from the \"negative IOB\" once BG starts rising again. For some users, this is too much insulin and leads to recurring lows. Properly configured, Trio will not overcompensate for the rapid BG rise after a low.
Difficulties dealing with exerciseExercise is good for everyone, including people with diabetes. People with insulin-dependent diabetes often struggle with lows during exercise and highs afterward. Trio has a built-in exercise mode that will reduce basal and ISF whenever you set a higher temporary BG target. Trio also has Profile Presets that can help you get the right amount of insulin during exercise. Profiles can also adjust CR, unlike temporary targets.
Frequent, consistent variations in profile (Basal, ISF, CR)Illness, menstrual cycle, inactive days, active days, home office days, stressful events... In these situations, the overall insulin need differs from your usual need. Like Loop's Overrides, Trio has Profiles that can change basal rate, ISF, CR, and target BG within a pre-set timeframe. What Trio Profiles do that Loop Overrides do not do is provide the option to temporarily disable SMBs and apply adjustments to only basal, basal, and ISF, basal and CR, or all three.
If any of those sound familiar, consider a switch to Trio
Important
You must read extensively and adapt to a new approach to diabetes management.
What's All That Talk About Changing the Way I Think?
Loop is carb-centric. Loop users have been instructed to enter carbs, including future carbs (fat, protein), to ensure Loop gives the right amount of insulin. Some users also enter \"fake carbs\" to force Loop to give more insulin.
The Trio algorithm does not consider future carbs. What does this mean? The algorithm considers many factors, adds guardrails, and then acts by setting a temporary basal, administering a bolus (SMB), or both. Future carbs are not considered. The algorithm does not care about any future carbohydrates you might have entered.
Wait, what!? You have to consider carbohydrates, right? Why else would I add them? Trio considers carbohydrates only once absorbed and part of Carbohydrates On Board (COB).
"},{"location":"Configuration/transition-qa/#mealtime-strategy","title":"Mealtime Strategy","text":"So what's the mealtime strategy then?No
What are the alternatives?Most Trio users take a bit of all these approaches. They have an apple without entering anything into the app. Then, they pre-bolus for lunch because it is high in carbohydrates. Then, they use the calculator for dinner. This is all OK, and it comes down to the variation you accept for your BG.
"},{"location":"Configuration/transition-qa/#coming-from-iaps","title":"Coming From iAPS","text":""},{"location":"Configuration/transition-qa/#iaps-ver-233-or-earlier","title":"iAPS Ver 2.3.3 or Earlier","text":"Transitioning from iAPS 2.3.3 to Trio is currently straightforward. The screens and menus will be very familiar.
"},{"location":"Configuration/transition-qa/#settings","title":"Settings","text":"Your settings will need to be entered manually, but they can all be entered one-by-one from your iAPS settings without adjustment. If you have Nightscout, you can import your Pump Settings, Basal Profile, ISF, CR, Target Glucose, and previous CGM readings from the Nightscout Menu.
Import Settings With Nightscout
Nightscout
to open the Nightscout MenuConnect >
Connect to Nightscout
Glucose Units
in the Trio app match the units used in Nightscout (If they do not match, the import will fail)Preferences
to open the Preferences MenuGlucose Units
are correctNightscout
to open the Nightscout MenuImport settings
Dynamic Settings
Because Trio is a separate app, your historical data from iAPS will not transfer. It is recommended that you wait 7 days before you enable dynamic settings. In the meantime, you may notice some adjustments made by autosens.
"},{"location":"Configuration/transition-qa/#iaps-ver-30-or-later","title":"iAPS ver 3.0 or Later","text":""},{"location":"Configuration/transition-qa/#settings_1","title":"Settings","text":"As with iAPS ver 2.3.3, your settings must be entered manually and/or transferred from Nightscout. It is also recommended that you wait 7 days before enabling dynamic settings. In the meantime, you may notice some adjustments made by autosens.
"},{"location":"Configuration/transition-qa/#other-differences","title":"Other Differences","text":"Trio was forked from iAPS ver 2.3.3. If you used iAPS prior to February 2024, you may recognize the main screen. As the Trio app develops, the screen and menus will diverge substantially from iAPS 2.3.3 and 3.0+. For now, the focus has been on the code behind the scenes. For a comprehensive list of all changes and updates made to create Trio, please view the PR that merged all the foundational, developmental work into the main version used today.
"},{"location":"Configuration/transition-qa/#coming-from-commercial-closed-loop-systems","title":"Coming From Commercial Closed-Loop Systems","text":"Are you using a commercial closed-loop system like Insulet's Omnipod 5, Tandem's Control IQ, Medtronic's 780G, etc.? If you're happy, please stay; if you're not getting the desired results, take the time to read through the Coming From iOS Loop chapter to see the main issues Trio solves.
I Want to Try Trio. How Do I Proceed?
If you have any questions, feel free to reach out on Discord or Facebook. But please read the docs first.
"},{"location":"Configuration/transition-qa/#watch-the-loop-and-learn-videos-on-trio-previously-referred-to-as-iaps","title":"Watch the Loop and Learn Videos on Trio (Previously Referred to as \"iAPS\"):","text":"Trio is an open-source artificial pancreas system based on the OpenAPS (Oref0) algorithm. Using your entered settings, carbohydrates, and historical data, it aims to automate insulin delivery to reduce the time spent managing your diabetes. Before starting with Trio, you should consider alternative commercial options such as the Tandem Control-IQ and Omnipod 5 or other open-source applications like Loop and AndroidAPS.
Important
Trio is not approved by any healthcare authority. You build and run this system at your own risk.
"},{"location":"Getting-Started/Overview/#getting-started","title":"Getting Started","text":"Before starting with Trio, you should understand CR, ISF, and Basal Rates.
If you do not understand the terminology, please read the appropriate documentation here:
Carb Ratio (CR)
Insulin Sensitivity Factor (ISF)
Basal Rates
If you require help defining and determining those settings, please seek assistance from your diabetes healthcare team.
To use Trio, you are required to build the application from the source code. This does not require substantial technical know-how but is a time-consuming process. You may need to carry this out through several sessions on your first attempt.
Upon installation, you will need to configure your settings appropriately. For step-by-step instructions on using the app, follow the start-up guide.
Ready to Get Started? Head to the New User Guide to get started!
"},{"location":"Getting-Started/cgm/","title":"CGM","text":"This section allows you to choose your glucose data source. Most options are self-explanatory. For more information on compatible CGMs, please see the following: link
CGM selection includes the following: * Nightscout * xDrip * Dexcom G5/Dexcom G6/Dexcom ONE * Dexcom G7/Dexcom ONE+ * Glucose Simulator * Libre Transmitter * Glucose Direct * Medtronic Enlite
"},{"location":"Getting-Started/cgm/#nightscout","title":"Nightscout","text":"While using Nightscout as a CGM is an option, it should be avoided if possible because it does not keep Trio running in the background like other CGM options.
"},{"location":"Getting-Started/cgm/#xdrip-xdrip4ios","title":"xDrip (xDrip4iOS)","text":"To use xDrip4iOS as a cgm source, you must build it yourself with the same Apple Developer account you used to build your Trio app. You cannot use Shuggah or a version distributed by someone else's TestFlight. Please see the following for instructions on how to build xDrip4iOS yourself: link
However, if you are using Dexcom G6 or ONE with xDrip4iOS, you can choose the Dexcom G6 option in Trio rather than xDrip4iOS, and Trio will intercept the glucose readings even if you're using Shuggah or someone else's TestFlight of xDrip4iOS.
"},{"location":"Getting-Started/cgm/#dexcom-g5-g6-and-dexcom-one","title":"Dexcom G5, G6 and Dexcom ONE","text":"Trio can intercept glucose readings between the transmitter and the Dexcom app. If you are using a Dexcom G5, G6, or ONE sensor, tap Configuration CGM to enter your transmitter's 6-digit ID. Dexcom Share Credentials are not necessary. When you switch transmitters, you must delete your current transmitter from Trio by tapping Configuration CGM, scrolling down, and tapping Delete CGM. Once you do this, you can add the new transmitter with its Transmitter ID.
"},{"location":"Getting-Started/cgm/#dexcom-g7-and-dexcom-one","title":"Dexcom G7 and Dexcom ONE+","text":"As long as the Dexcom G7 or ONE+ app is installed on the same phone, Trio can intercept its glucose readings. When a new G7 or ONE+ sensor is paired to the Dexcom app, Trio will automatically start reading it.
"},{"location":"Getting-Started/cgm/#glucose-simulator","title":"Glucose Simulator","text":"This option should only be used when learning how to interact with the app. It should not be used to learn how the algorithm will respond, nor should it ever be used on a living being.
"},{"location":"Getting-Started/cgm/#libre-transmitter","title":"Libre Transmitter","text":"This option can be used to pair a compatible Libre cgm directly to Trio without going through a separate app like xDrip4iOS or Glucose Direct.
"},{"location":"Getting-Started/cgm/#glucose-direct","title":"Glucose Direct","text":"Until the providers of Glucose Direct add a Trio App Group to Glucose Direct, you cannot use this app with Trio. If that happens, then you must build it yourself with the same Apple Developer account you used to build your Trio app. You cannot use a version distributed by someone else's TestFlight.
"},{"location":"Getting-Started/cgm/#medtronic-enlite","title":"Medtronic Enlite","text":"The Minimed Enlite CGM, available with the Medtronic 522/722, 523/723, and 554/754, wirelessly sends glucose readings to the pump. Trio can read the Medtronic CGM data directly from the pump using a RileyLink-compatible device.
"},{"location":"Getting-Started/iphone/","title":"iPhones & Watches","text":""},{"location":"Getting-Started/iphone/#compatible-devices","title":"Compatible Devices","text":"Trio requires a relatively recent iPhone. The faster the phone, the better for the algorithm and battery life. You need a minimum version of the mobile operating software, called the phone's \"iOS\", to be installed on your iPhone. Trio is compatible with iPhones running on iOS 16 or newer.
"},{"location":"Getting-Started/iphone/#iphone","title":"iPhone","text":"These devices are compatible with iOS 16 and newer iOS.
Find Your iOS Version
Your phone's iOS version can be found under the phone Settings -> General -> About display. The iOS number is found on the Software Version
line. When you start looping, you should delay iOS updates until others have confirmed the software functions as normal on the newest update.
Warning
Using iOS Beta versions on the iPhone used for insulin delivery is never recommended.
Developer Mode - Mac Build
With iOS 16 and watchOS 9, Apple added a feature called \"Developer Mode.\" This feature must be enabled on your iPhone and Apple Watch to allow the installation of Trio. To learn more, click on this link: Apple Link about Developer Mode.
When you build Trio on your phone from Xcode directly, you must enable Developer Mode. This is also required in order to use the Trio app on a watch paired to your phone.
Developer Mode with iOS 16, watchOS 9
If you already have Trio, built with Xcode on a Mac, on your phone/watch, when you update to iOS 16/watchOS 9, you will be told that Trio requires Developer Mode to run.
You cannot run Trio on your phone (or watch) until you have enabled Developer Mode on the device(s).
"},{"location":"Getting-Started/iphone/#automatic-updates","title":"Automatic Updates","text":"Apple provides frequent updates to the iOS. These updates often include critical security patches and improved new features. Updates to iOS could make Trio stop working. Minor updates (like 16.5 -> 16.5.1) are usually not an issue. Major updates (like 17.x -> 18.x) often contain changes that Trio developers need to include in the app.
Turn Off Automatic Update Installs!
Make sure your phone's battery is functioning optimally. Your phone will become a critical health device, and you want it to keep working.
Low Power Mode
Some people have reported that Trio continues working in the background (phone locked) even in Low Power Mode. Others have reported that they still get red loops. You can experiment to determine if your phone/iOS/app is able to maintain green loops in low-power mode. Otherwise, the best practice is to avoid Low-Power Mode.
"},{"location":"Getting-Started/iphone/#apple-watch","title":"Apple Watch","text":"Trio has a companion app for the Apple Watch. The companion app shows the loop status and current insulin and carbs onboard. It also lets you add carbs, do a manual bolus, and set a temporary target. However, the companion app only serves as a remote control for the iPhone app; connection to the CGM and pump is still done through your iPhone, and you will have to bring it with you.
Apple Watch Series 3 and newer are supported. Newer versions of the Apple Watch have better battery life and support always-on display.
"},{"location":"Getting-Started/pump/","title":"Pumps","text":""},{"location":"Getting-Started/pump/#compatible-pumps","title":"Compatible Pumps","text":"There are three pumps compatible with Trio:
No other pumps work with Trio at this time, but other open-source closed-loop options, such as AAPS: Android Artificial Pancreas System and OpenAPS, support other pumps.
"},{"location":"Getting-Started/pump/#omnipod-pumps","title":"Omnipod Pumps","text":"Reminder and Disclaimer
The use of Omnipod pumps with Trio is not supported by Insulet, although they are aware it is happening. Do not call Insulet asking for help with your Trio build, setup, or operation. You are fully responsible for your use of Trio and do so at your own risk. Please read these documents and familiarize yourself with Trio before using the app.
"},{"location":"Getting-Started/pump/#omnipod-eros","title":"Omnipod Eros","text":"Eros pods were launched in 2013 and continue to be sold by Insulet. As of December 2023, they are no longer available in the US but are obtainable in other countries for now. Eros pods are also referred to as \"Omnipod System\", \"Omnipod Classic\", or \"Gen3\". The Eros uses radio waves for communication between the Pod and the PDM. The iPhone does not support these radio waves, so in order to use Eros with Trio, you need to get a separate device that can translate radio waves to Bluetooth. These devices are called RileyLink, EmaLink, etc.
"},{"location":"Getting-Started/pump/#omnipod-dash","title":"Omnipod DASH","text":"The DASH pods were launched in 2019 and use Bluetooth, so they don't require a RileyLink or similar device as they connect directly to the phone. DASH pods are easy to identify with their blue tab instead of the clear tab used on Eros and Omnipod 5.
Omnipod 5
Omnipod 5 pods are NOT compatible with Trio
"},{"location":"Getting-Started/pump/#medtronic-pumps","title":"Medtronic Pumps","text":"{align=center})
There are a number of Medtronic insulin pumps manufactured between 2006 \u2013 2012 which are Trio compatible. Compatibility has two requirements: (1) pump model and (2) firmware.
If you have one of the pumps listed above, you are good to go on Trio! Congrats!
"},{"location":"Getting-Started/pump/#medtronic-pump-model","title":"Medtronic Pump Model","text":"To determine your pump model, look at the backside of your pump. There should be a sticker on the underside of the pump. On the right-hand side of the sticker, it says REF MMT-XXXXXX
* MMT ---> Pump Manufacturer Model (MiniMed Medtronic)\n* 722 ---> Pump Model Number\n* NA ---> Pump Region (NA=North America, CA=Canada/Australia, WW=Worldwide)\n* S ---> Pump Color (S=Smoke, L=Clear/Lucite, B=Blue, P=Pink/Purple)\n
Some pumps may have an \u201cL\u201d or \u201cS\u201d or \"R\" before the pump region, e.g., a model number like MMT-722LNAS. This does not affect Trio compatibility.
"},{"location":"Getting-Started/pump/#medtronic-pump-firmware","title":"Medtronic Pump Firmware","text":"A pump\u2019s firmware is the internal software that runs your pump. Older Medtronic firmware allows Trio to act as a \u201cremote control\u201d to set temp basals and report back pump data. Newer firmware has disabled that \u201cremote control\u201d access and, therefore, cannot be used with these DIY closed-loop systems. There is currently no ability to downgrade a pump\u2019s firmware or replace it with older firmware. Before you buy a used pump, make sure you are getting one with compatible firmware. You cannot change the firmware on a Medtronic pump.
The firmware on all 515/715 and 522/722 model Medtronic pumps is compatible with Trio. You will only need to check the firmware version for 523/723 and 554/754 model Medtronic pumps.
To find your pump\u2019s firmware, you will need to power it on. If the pump has not been powered on for some time (i.e., it has been in storage without a battery for a while), it will run through a start-up count, and the firmware version will appear on the bottom right of the pump\u2019s screen. Don\u2019t turn away, as the version number will only be displayed for a little while before the screen moves on to other information displays.
If the pump has been active recently or has a reservoir installed, follow these steps:
Press the button on your pump.
Scroll down to the bottom of the status display by clicking the button.
Read the bottom line of the display.
If you are in the position of being able to shop around for different pump models, there are some slight differences between the Trio-compatible Medtronic pumps.
500 vs 700: The difference between the Medtronic 500 series and the 700 series pumps is the size of the insulin reservoirs. The 500 series pumps use a 180-unit reservoir, and the 700 series pumps use a 300-unit reservoir (or a smaller 180-unit reservoir, if you want).
x15/x22 vs x23/x54: The noteworthy differences between the x15 and x22 pumps versus the x23 and x54 series pumps are:
Additionally, because of the way Trio fetches information from the pump, the x23/x54 series of pumps are slightly better at conserving battery life through the use of the MySentry packets to collect information from the pump. x22 pumps do not use MySentry.
The x23/x54 series pumps are also faster at delivering boluses greater than 10 units. On an x23 pump, a 13-unit bolus takes 5:00 minutes to complete. On an x22 pump, a 13-unit bolus takes 8:40 minutes to complete.
Finding a compatible Medtronic pump is probably the most difficult part for most new Trio users. Our suggestions:
Talk to friends in the diabetic community.
Ask your endocrinologist.
Ask at a local JDRF chapter meeting if someone has an old backup pump they'd be willing to donate to you.
Join diabetic supply groups on Facebook, both for-trade and for-sale groups. Looping in a time of COVID is a group focused on DIY looping devices and supplies. Be sure to read their rules before joining.
Check Craigslist often and be willing to expand your search area to include larger cities.
Check out the HelpAround, NextDoor, OfferUp, and LetGo apps for pumps.
The most successful results appear to come from either one-on-one discussions with fellow diabetics/doctors or the use of apps (Craigslist, NextDoor, LetGo, HelpAround). If you are using Craigslist, you may use an app on your iPhone to make the searching easier. There are apps to search multiple cities for pre-set keywords and set up alerts.
"},{"location":"Getting-Started/pump/#safe-purchasing","title":"Safe Purchasing","text":"If you choose to purchase from a remote or unknown seller, here are some tips for safe purchasing:
Use PayPal and purchase using the \"Goods and Services\" payment option. This costs nothing for the buyer, but the seller will lose 2.95% of the sale to PayPal fees. PayPal offers some protection for both buyer and seller in the event of fraud.
Ask for photos of the pump. Check the serial number on the backside of the pump and verify it matches the pump's serial number shown in the display menu. Ask for a short video of the pump or at least a photo of the pump turned on so that you can see the pump's firmware and model number. Cracks and some wear on these pumps are expected. These pumps are not usually free of marks. Many people are successfully looping on pumps with cracks and rub marks, but you may want to ask if you are concerned about any you see in photos.
Beware if the bottom of the reservoir/motor sleeve has the drive support cap pushed out, as shown here. Those pumps will generally not work (or only work intermittently); however, some people have successfully repaired those pumps, as shown in that link. Just to make sure you know, it should be checked in advance.
Repairs to cracks or missing bits of plastic on battery cap area and reservoir caps are possible and not very difficult in most situations. You can read more about how to repair those here.
Ask for shipping that includes a tracking number. USPS Priority Mail's smallest box is a great option. It's only $10.40 domestically in the US and provides tracking. Ask the seller to add some packing protection around the pump, such as bubble wrap, to keep it safe during shipping. Ensure you get a tracking number within a reasonable period after you have paid.
Red flags that may indicate a scam:
Asking for payment through \"friends and family\" on PayPal, especially if you don't know the person or have any solid references for them. Paying in that way offers you no buyer protection. It's just like giving the seller cash, so you had better trust the seller.
Offering an \"almost new\" pump is a big red flag. These pumps were manufactured between 2006-2012. It is highly unlikely that a pump of that age is unused and sitting in shrink wrap. There are some out there, but they are scarce.
The seller is not able to provide new pictures of the pump when requested. Sure, they posted some photos with the ad, but what if they downloaded them from other people's ads? The seller should be able to furnish a couple of \"new\" photos at your request. A good one to ask for is the battery and reservoir tops so you can see their condition.
Medtronic will not typically sell pump supplies directly to customers who have yet to purchase a registered Medtronic pump. Ask your insurance about purchasing pump supplies through a durable medical equipment (DME) provider. Typically, the DME provider will coordinate with your insurance and doctor's office to get the necessary insurance approval and prescriptions for the supplies. If you are brand new to Medtronic infusion sites, ask for help from friends to try a variety of infusion sets before purchasing an entire 90-day supply of any type in particular.
"},{"location":"Setup/New-User-Setup/","title":"New User Setup","text":"Welcome to the New User Setup Guide! This guide walks you through how to set up your Trio app once you have installed it on your phone. If you still need to install the app, head to the Build Instructions and come back here when you are ready to start the setup process!
To set up your Trio app, touch the settings icon \u2699\ufe0f located on the bottom right of the main screen. Each step contains links to information on setting up each part of your Trio app. Use this as your home base to refer back to as you set up your app.
"},{"location":"Setup/New-User-Setup/#step-1-connect-your-devices","title":"Step 1: Connect your Devices","text":"The first step in setting up your Trio app is to connect your devices to the app.
"},{"location":"Setup/New-User-Setup/#verify-compatibility","title":"Verify Compatibility","text":"If you have not already, please verify that your devices are compatible:
Once you have verified that you are using compatible devices, you can connect them in the Trio app settings menu.
The next step is to enter your main profile settings: Basal, ISF, CR, and Target Glucose.
Important
If you use mg/dL
, you must first change the 'Glucose Units' before entering your profile settings.
This is found in the Trio Settings menu under 'Preferences'
The next step is to adjust the standard safety limits that will allow Trio to function effectively. There are many more settings that are not mentioned in this section. It is not advised to adjust those until you have familiarized yourself with the system by using it for a while.
Warning
DO NOT ENABLE DYNAMIC SETTINGS YET
It is essential that Trio have enough data to make sound recommendations. It is essential that your settings are tuned to be used in an Oref algorithm and you feel comfortable using the Trio app. It is not recommended to enable dynamic settings until ALL criteria below are met:
Closed loop functionality is turned off by default. This means Trio cannot make adjustments automatically. The system relies solely on you to make any recommended adjustments while Closed Loop is OFF. You can control your pump and bolus with the Trio app, but nothing can be done without your approval. This is often referred to as running an 'open loop.'
More on closing the loop
"},{"location":"Setup/New-User-Setup/#step-5-change-app-icon-optional","title":"Step 5: Change App Icon (Optional)","text":"Under \"App Icons\" in the Settings Menu, you can find various icons for your Trio app.
Have a special icon in mind? You can use your own custom icon by following the instructions under Customizations.
Congratulations! You've completed the New User Setup for Trio!
"},{"location":"operate/build/","title":"Build and Update","text":"Jump to... Build with GitHub | Mac-Xcode | Script Update with GitHub | Mac-Xcode Special Section on Trio App Group Special Section on Trio App Group
"},{"location":"operate/build/#build-trio-with-github","title":"Build Trio with GitHub","text":"The Trio repository contains instructions for building the Trio app using a browser and GitHub. More detailed instructions are also available in LoopDocs.
Tip
If using the LoopDocs instructions you need the important information below to build Trio instead of Loop
Every app you build will use the same 6 Secrets.
Trio App Group
for Trio, see Create the Trio App Group
Trio App Group
to these identifiers:Trio
Trio Watch
Trio WatchKit Extension
App Store Connect
, the Bundle ID
for Trio will be: org.nightscout.TEAMID.trio
Trio App Group
","text":"If you already have a Trio App Group
Trio App Group
was created from a Mac with Xcode, you may choose to edit the Description to make the NAME matchIf you do not have a Trio App Group
:
.
is replaced with a space, the example for Trio is shown in detailTrio
at the beginning of each IDENTIFIER and the full NAME may be slightly differentOpen the App IDs Identifier page for your Apple Developer Account.
Click on the Trio
Identifier and assign the Trio App Group
to the Identifier - see graphic below.
Repeat this for the other 2 identifiers that need to have an App Group assigned: Trio Watch
and Trio WatchKit Extension
Follow the directions in LoopDocs, but use the Trio Bundle ID
App Store Connect
, the Bundle ID
for Trio will be: org.nightscout.TEAMID.trio
Follow the directions in LoopDocs but run the Create Certificates
action for the Trio fork.
Follow the directions in LoopDocs but run the Build Trio
action for the Trio fork.
The Trio build can be configured to display the branch name and commit ID as test notes in TestFlight. This is an optional step, which can be especially useful if building the dev
branch.
First, you must have already built Trio and have it available on Apple App Store Connect.
TestFlight
tabTest Details
section, type anything you wantAfter you have done this one-time step, each successive build will include the branch name and commit automatically.
You can add additional tests notes for any build if you desire.
Top of Page
"},{"location":"operate/build/#update-trio-with-github","title":"Update Trio with GitHub","text":"First, make sure any Apple License agreements have been accepted:
Second, make sure you have a valid Distributor certificate; if not, see Distribution Certificate:
If you built previously, before the App Group changed from Loop
to Trio
, you need to do this step. Then you can Continue Updating.
Trio App Group
Trio App Group
for the Identifiers (Trio, Trio Watch and Trio Watchkit Extension)Trio App Group
Open your fork at github.com/YOUR-USERNAME/Trio
with your GitHub username instead of YOUR-USERNAME
When you first build using GitHub, a Distribution Certificate is generated. It typically is valid for one year. You should get an email from Apple when you are within 30 days of that certificate expiring. When it expires, you can no longer build a new app. (Existing apps in TestFlight are not affected, they get the full 90 days.)
The directions to renew your Distribution Certificate are found in LoopDocs: Renew Certificate.
"},{"location":"operate/build/#build-trio_1","title":"Build Trio","text":"Select Actions: 4. Build Trio and wait about an hour for your updated app to appear in TestFlight.
Top of Page
"},{"location":"operate/build/#build-trio-with-xcode","title":"Build Trio with Xcode","text":"If you build Trio on your Mac using Xcode, the recommendation is to use the TrioBuildSelectScript to build your code.
"},{"location":"operate/build/#build-trio-with-script","title":"Build Trio with Script","text":"The TrioBuildSelectScript
is similar to the script used to build Loop. If you need it, extensive instructions for that script are provided at these links: LoopDocs: Build Select Script and Loop and Learn: Build Select Script.
The TrioBuildSelectScript
offers the choice to:
Build Trio
Build Related Apps
Run Maintenance Utilities
Exit Script
To execute the TrioBuildSelectScript
, open a terminal on your Mac and copy and paste the command below into the terminal. Then, read and follow the directions.
/bin/bash -c \"$(curl -fsSL \\\n https://raw.githubusercontent.com/loopandlearn/lnl-scripts/main/TrioBuildSelectScript.sh)\"\n
"},{"location":"operate/build/#build-trio_2","title":"Build Trio","text":"When you select Build Trio
, you will be provided with a choice of branches with information to guide your selection and URL for documentation. This script will then download a fresh copy of your selected branch and guide you through building with Xcode on your Mac.
The download is placed in your Downloads
folder in a directory called BuildTrio
. The downloaded clone is found in a folder with the branch name, date, and time encoded.
When you select Build Related Apps
, you will be provided with a choice of apps that users of Trio often use. Once you make your selection, the script will provide similar steps to download and build the selected app.
The choices are:
Build Loop Follow
Build xDrip4iOS
Build Glucose Direct
Return to Menu
When you select Run Maintenance Utilities
, you will be provided with a choice of utilities helpful for Mac builders.
The following options are offered:
Delete Old Downloads
Clean Derived Data
Xcode Cleanup (The Big One)
Clean Profiles
Return to Menu
For more information, refer to Loop and Learn: Maintenance Utitilites documentation.
"},{"location":"operate/build/#build-errors","title":"Build Errors","text":"If you encounter any build issues, please look at the LoopDocs Build errors page. Only some things on that page are relevant for building Trio, but many potential issues will likely be covered there. You will also get helpful advice about what info to provide if you need to ask for help. When you have identified the error message(s), you can use the search tool in LoopDocs to see if your error is mentioned.
If you need it, you are most likely to get help in one of these groups:
Important
LibreTransmitter is provided as part of Trio. Neither xDrip4iOS nor Glucose Direct are required to interact with your compatible Libre sensor using Trio.
Important
Until the providers of Glucose Direct add a Trio App Group to their app, you cannot use this app with Trio.
If you want to use xDrip4iOS as a CGM source via \u201cshared app group,\u201d you must also build that app from a source with the same developer ID used for building Trio. Scripts are available for these apps as well. All scripts follow the same download and build pattern and configure automatic signing files for you.
The download is placed in your Downloads
folder in a directory called BuildxDrip4iOS
or BuildGlucoseDirect
, respectively. The downloaded clone is found in a folder with the branch name, date, and time encoded.
These can be accessed using the TrioBuildSelectScript menu options mentioned above. Or you can run each script individually.
"},{"location":"operate/build/#xdrip4ios","title":"xDrip4iOS","text":"Important
You must build xDrip4iOS version 5.3.1 or newer to have access to the Trio App Group required to work with Trio.
/bin/bash -c \"$(curl -fsSL \\\n https://raw.githubusercontent.com/loopandlearn/lnl-scripts/main/BuildxDrip4iOS.sh)\"\n
"},{"location":"operate/build/#glucose-direct","title":"Glucose Direct","text":"Important
Until the providers of Glucose Direct add a Trio App Group
to their app, you cannot use this app with Trio.
/bin/bash -c \"$(curl -fsSL \\\n https://raw.githubusercontent.com/loopandlearn/lnl-scripts/main/BuildGlucoseDirect.sh)\"\n
"},{"location":"operate/build/#alternative-branch-for-trio","title":"Alternative Branch for Trio","text":"Sometimes, specific branches are offered for testing. Any desired branch can be cloned using the Build Trio
script. After the final quote of the script command, add a space, hyphen, space, and branch_name. An example is shown below: replace branch_name
with your desired branch. Note that specific branches like this are not deleted as part of the Delete Old Downloads
utility discussed in Maintenance Utilities.
/bin/bash -c \"$(curl -fsSL \\\n https://raw.githubusercontent.com/loopandlearn/lnl-scripts/main/BuildTrio.sh)\" - branch_name\n
Top of Page
"},{"location":"operate/build/#update-trio-with-xcode","title":"Update Trio with Xcode","text":"Because Trio uses submodules, there are actions you need to perform when updating that are easiest using the command line interface (CLI) in a terminal opened in the same folder as the Trio workspace.
If you prefer, you can use the Build Script to download and build a fresh copy.
This section tells you how to update the version you already have on your computer.
Open Xcode. If your Trio workspace is not already open, you can usually find it in the recent projects, as shown in the graphic below. You can also pull down the Xcode menu for File
, select Open Recent
, and find your workspace.
Once you have Xcode open with your previous build of Trio, the first thing to do is open a terminal. Here are two methods - choose one:
Behaviors
, Open Terminal
if you configured Xcode BehaviorsTrio
folder using Where is my DownloadAlways attempt to Update your Code first. Typically, your customizations can be left alone and git
will merge the new code without requiring any additional action on your part.
In the terminal, you will copy and paste this pair of commands to update your workspace and all your submodules.
git fetch\ngit pull --recurse\n
The first command git fetch
brings down any updates about the state of the Trio workspace repository from GitHub.
The second command git pull --recurse
does several things:
Fetching submodule XXXX
repeated for each submoduleThere can be errors in several places, for example:
error: Your local changes to the following files would be overwritten by merge:\n FreeAPS/folder/file.swift\nPlease commit your changes or stash them before you merge.\nAborting\n
The pull
command halts at this error and does not move on updating the submodules. You must first fix the Trio workspace files using Fix Trio Conflicts.
Updating
with the list of files changed.Already up to date
Submodule path 'ModuleName': checked out 'f11abde5e2eea2cbf7ac80f3f4bc4bc6e7f6de56'\n
If you see the word error
or conflict
on the output, similar to the following, head over to Fix Submodule Conflicts.
error: Your local changes to the following files would be overwritten by checkout:\n SubModuleName/folder/file.swift\nPlease commit your changes or stash them before you switch branches.\nAborting\nfatal: Unable to checkout 'f11abde5e2eea2cbf7ac80f3f4bc4bc6e7f6de56' in submodule path 'SubModuleName'\n
If you saw no errors, you are ready to build.
"},{"location":"operate/build/#fix-trio-conflicts","title":"Fix Trio Conflicts","text":"If you have customizations in the Trio code (in the workspace) that cause a conflict when you pull
, it is best to delete those and start fresh. (Expert users know how to handle this, these directions are for novices):
git reset --hard\ngit clean -fd\ngit pull\n
You should see the words: Your branch is up to date with origin/main
(or dev
or other branch if you are not running main
.)
Now you need to continue to update the submodules with this command:
git submodule update\n
If there are no conflicts, you are ready to build the Trio app to your phone.
If there are conflicts similar to those shown in Submodule Update, fix them before building.
"},{"location":"operate/build/#fix-submodule-conflicts","title":"Fix Submodule Conflicts","text":"If you have customizations in the submodules that conflict with the update, you see a message fatal: Unable to checkout
the submodule. It is easiest to discard the customizations and reapply them manually after the update:
checkout
cd modulename
git reset --hard; git clean -fd
cd ..; git submodule update
If another submodule fails to checkout, repeat the steps for that modulename
.
If there are no errors, the Trio code is now updated.
If Xcode is not open, you can open it by typing xed .
in the Trio folder of your terminal window.
You can now build the updated Trio app to your phone.
"},{"location":"operate/build/#first-xcode-build-with-trio-app-group","title":"First Xcode Build with Trio App Group","text":"If you previously built using Xcode when the Loop App Group was used, you may need to let Xcode connect with Apple to update the new Trio App Group
. See instructions at Mac Build after App Group Change.
Top of Page
"},{"location":"operate/build/#xcode-behaviors","title":"Xcode Behaviors","text":"You can add Behaviors to your version of Xcode. These custom Behaviors only need to be added once.
You will create a shell script and add it to Xcode.
Open Terminal
will open a terminal in the workspace or project folder currently in use by XcodeOpen a new terminal:
Step 1: Create a folder to store your shell scripts by copying and pasting the next line (only do this one time or you will get an error message):
mkdir ~/scripts\n
Step 2: Copy and paste this command into your terminal to prepare the Open Terminal
shell script:
touch ~/scripts/open_terminal.sh; open -e ~/scripts/open_terminal.sh\n
Copy and paste the following lines into the editor and then save and close the file.
#!/bin/bash\nopen -a Terminal \"`pwd`\"\n
Step 3: Make the shell script executable; Copy and paste this command into your terminal:
chmod +x ~/scripts/*.sh\n
"},{"location":"operate/build/#add-behaviors-to-xcode","title":"Add Behaviors to Xcode","text":"Under the Xcode menu item, select Behaviors
, Edit Behaviors
Follow these steps (refer to the graphic below):
+
signCustom
section, you should see the New Behavior
row, enter Open Terminal
Run
, then Choose Script
marion
) and find the scripts
directoryopen-terminal.sh
and then select Save
The Behavior Open Terminal
is now ready for you to use, as shown in this graphic.
Return to Open Terminal.
"},{"location":"operate/build/#where-is-my-download","title":"Where is my Download","text":"If you have Xcode open, you can right-click on any file and select Show in Finder
. Then at the bottom of the Finder window, right-click on the Trio folder and select New Terminal at Folder
.
If you do not have Xcode open, you can use Finder to locate the directory where the BuildTrio
script saved the code. The directory is named after the branch with the date and time for the download:
~/Downloads/BuildTrio/Trio_main-220122-1352/Trio
~/Downloads/BuildTrio/Trio_dev-220108-1827/Trio
Use Finder to open a Terminal window at the Trio
directory by right-clicking on it and selecting New Terminal at Folder
.\u00a0
To open Xcode, type xed .
in the Terminal.
Return to Open Terminal.
"},{"location":"operate/build/#special-section-on-trio-app-group","title":"Special Section on Trio App Group","text":"Trio App Group
: return Top of PageTrio App Group
(or are not sure), please read this section for hints and helpInstructions for GitHub | Mac-Xcode
"},{"location":"operate/build/#browser-build-after-app-group-change","title":"Browser Build after App Group Change","text":"In order to build the Trio app with Browser Build, you must assign the Trio App Group
to 3 of the 4 identifiers for Trio.
Trio App Group
: List your App GroupsTrio App Group
if you don't have one: Register an App GroupReturn to Add Trio App Group to Identifiers
"},{"location":"operate/build/#mac-build-after-app-group-change","title":"Mac Build after App Group Change","text":"The first time you build Trio after the change from Loop App Group
to Trio App Group
, you are likely to see the build error in the first graphic.
You must be connected to the internet and must allow Xcode to connect to Apple to update your app group. Tap in the four locations (in order): (1) Folder Icon, (2) FreeAPS folder, (3) Signing & Capabilities and (4) Target: FreeAPS, as indicated in the graphic below. The app group may momentarily appear in red font, then will update to black font for the trio-app-group. Continue until you have examined three targets FreeAPS
, FreeAPSWatch
and FreeAPSWatch Watchkit Extension
. When those targets show the correct App Group, press the build symbol again.
Trio App Group
","text":"If you use xDrip4iOS or GlucoseDirect as your CGM for Trio, they need to support the same App Group
as Trio.
Trio App Group
Here are a few ways to customize the Trio code to suit your needs better. Please be very careful when editing any code.
"},{"location":"operate/customize/#bypass-authentication-for-bolusing","title":"Bypass Authentication for Bolusing","text":"Warning
Depending on your iPhone settings and model, you may have Face ID or Touch ID enabled. Those security features will also be used to authenticate bolus delivery in Trio. You can disable authentication (i.e., not require Face ID, Touch ID, or passcode for bolusing) through the following code customization.
Steps:
Edit line 28 of the file FreeAPS/Sources/Services/UnlockManager/UnlockManager.swift
Code before modification:
if context.canEvaluatePolicy(.deviceOwnerAuthentication, error: &error) {\n
Code after modification:
if false, context.canEvaluatePolicy(.deviceOwnerAuthentication, error: &error) {\n
"},{"location":"operate/customize/#omnipod-add-extra-insulin-on-insertion","title":"Omnipod: Add Extra Insulin on Insertion","text":"The default value is 0.0 U of extra insulin. If you use this customization, start with a small number and work your way up. If you come from manual podding and routinely gave yourself an extra bolus with your PDM at pod change time, you may not need nearly as much with Trio - be conservative.
It is important to know
Trio does not include the amount of insulin in the prime or insertion steps in your IOB.
Eros Pods and Dash Pods have different locations for this change. Some change both files just in case, but that is unnecessary if you're only using one type of pod.
"},{"location":"operate/customize/#dash","title":"Dash","text":"Edit line 82 of the file OmniBLE/OmniBLE/OmnipodCommon/Pod.swift
Code before modification:
public static let cannulaInsertionUnitsExtra = 0.0\n
Code after modification adding 0.25U of insulin:
public static let cannulaInsertionUnitsExtra = 0.25\n
"},{"location":"operate/customize/#eros","title":"Eros","text":"Edit line 84 of the file OmniKit/OmniKit/OmnipodCommon/Pod.swift
Code before modification:
public static let cannulaInsertionUnitsExtra = 0.0\n
Code after modification adding 0.25U of insulin:
public static let cannulaInsertionUnitsExtra = 0.25\n
"},{"location":"operate/customize/#add-custom-icon","title":"Add Custom Icon","text":"There are several different app icon options built into Trio, but you can still add your own if you'd like. You'll need to convert the image you want into a PNG file with a resolution of 1024x1024. For this guide, we'll use this icon and call it ivan.
Go into the folder FreeAPS/Resources/Assets.xcassets/
and create a new folder called ivan.appiconset
Add two copies of the 1024x1024 PNG file into this folder, called ivan.png
and ivan 1.png
Add a file called Contents.json
with the following contents:
{\n \"images\" : [\n {\n \"filename\" : \"ivan.png\",\n \"idiom\" : \"universal\",\n \"platform\" : \"ios\",\n \"size\" : \"1024x1024\"\n },\n {\n \"filename\" : \"ivan 1.png\",\n \"idiom\" : \"universal\",\n \"platform\" : \"watchos\",\n \"size\" : \"1024x1024\"\n }\n ],\n \"info\" : {\n \"author\" : \"xcode\",\n \"version\" : 1\n }\n}\n
Insert a new line after line 14 in the file FreeAPS/Sources/Models/Icons.swift
containing the following text: case ivan = \"ivan\"
...\n case loop = \"trioLoop\"\n var id: String { rawValue }\n}\n
...\n case loop = \"trioLoop\"\n case ivan = \"ivan\"\n var id: String { rawValue }\n}\n
The main screen of Trio can be divided into three sections:
Status | Graphs & Statistics | Actions
"},{"location":"operate/interface/#status","title":"Status","text":"The Status section shows your current insulin on board (IOB), carbs on board (COB), blood glucose, pump status, and looping status. The looping indicator will be grey if no data is present. It will be green when it has been less than 5 minutes since a successful loop cycle. It will turn yellow if no loop cycle has been completed for over 5 minutes. If more than 10 minutes go by without a successful loop cycle, the loop circle will turn red. The section to the left of the loop circle shows you the approximate units of insulin left in your pump. If you're using Omnipod, 50+ U means more than 50 units of insulin are left. Below the insulin left, you will see your pump battery status if you're using a Medtronic pump and the days/hours left if you're using an Omnipod.
Tapping the top of the screen will bring up a History screen with information on changes implemented by the most recent loop cycle. Tapping the pump status will bring you to pump settings.
"},{"location":"operate/interface/#graphs-and-statistics","title":"Graphs and Statistics","text":"The middle of the screen graphs your current blood sugar data and inputted carbs overlaid with Trio's insulin delivery and blood sugar predictions.
Below the graph is the prediction line legend so you can determine the meaning of your prediction lines.
The zero temp (ZT) line predicts where your blood sugar would be if insulin delivery and carb absorption ceased. The IOB line predicts where blood sugar would be if insulin delivery was ceased and carb absorption was minimal. The unannounced meal (UAM) line predicts how long blood glucose will continue to rise, to dose insulin accordingly. The COB line predicts the effects of entered carbs on future blood glucose. For more information on prediction lines, see the OpenAPS documentation.
If enabled, statistics detailing your time in range, coefficient of variance (CV), and average glucose are displayed underneath these graphs. Tapping in this area allows you to change the time interval used to calculate these statistics.
"},{"location":"operate/interface/#actions","title":"Actions","text":"At the bottom of the screen, you have five action icons:
Meal Bolus The Meal Bolus option allows you to enter Carbs and bolus accordingly. If you have \"Fat And Protein Conversion\" enabled, you will also be provided the option to enter fat and protein content in grams. Temp Target The Temp Target icon allows you to set temporary blood glucose targets. The most common targets are a high target for exercise and a low target for meal preparation. Bolus The Bolus icon allows you to give manual correction boluses. Manually correcting is not recommended if you are using Trio's SMB and UAM features. Statistics The Statistics Icon shows your statistical data in the app. Settings The Settings icon allows you to access your Trio settings. The settings screen allows you to adjust your configuration. Please see [Configure](../settings/devices/pump.md) for more information on each configuration option."},{"location":"operate/temptarget/","title":"Temporary Targets","text":""},{"location":"operate/temptarget/#exercise","title":"Exercise","text":"Tips
Exercise can have immediate and long-term effects on glycemic control. Generally, individuals will find their blood sugar drops during intense exercise and continue to drop for 3-4 hours after. They may also experience increased insulin sensitivity for 24 hours after exercise.
Consuming enough slow-acting carbohydrates before and after your exercise session is important. Pack a snack in case you need a source of simple carbohydrates during your routine.
Trio has some quality-of-life features that make exercise easier while looping. When you plan to exercise, increase your target approximately 2 hours before your exercise. If you have SMB enabled, be sure that \"Allow SMB With High Temptarget\" is disabled. Finally, you can enable \"High Temptarget Raises Sensitivity\" to prevent Trio from providing too much insulin during exercise.
"},{"location":"operate/temptarget/#pre-meal","title":"Pre-Meal","text":"Tips
If you plan to eat soon, you may want Trio to provide you extra room to fill up on carbs. One way you can do this is by setting a temp target approximately 1 mmol/L or 18 mg/dL below your target, 1-2 hours prior to meals. You can also enable \"Low Temptarget Lowers Sensitivity\" to give yourself more insulin for the upcoming meal and to bring your blood sugar down faster to the pre-meal range.
"},{"location":"operate/troubleshoot/","title":"Common Issues","text":"Adapted from looptips
"},{"location":"operate/troubleshoot/#site-change-and-site-failures","title":"Site Change and Site Failures","text":"Tips
Pump site changes can negatively impact your immediate glycemic control. Different delivery sites' ability to absorb insulin varies, impacting your perceived insulin sensitivity. Trio should be able to accommodate this change by resetting its Autosens measurements (assuming \"Rewind Resets Autosens\" is on) and adapting as needed.
For Omnipod If you think you need more insulin primed in the new pod, consider customizing that line of code with these instructions.
"},{"location":"operate/troubleshoot/#site-failure","title":"Site Failure","text":"Pump failures can result from kinks or improper insertion of the cannula. As a result of a pump failure, Trio may assume that more insulin is on board the patient than what was delivered, leading to sustained highs even after the pump is replaced.
When you find out your pump has failed, immediately open loop to prevent Trio from trying to deliver more insulin. Upon your next pump installation, you can then close loop and be patient. Trio will wait for the calculated insulin on board to drop before delivering insulin.
"},{"location":"operate/troubleshoot/#low-treatment","title":"Low Treatment","text":"Tips
Low blood sugar events can happen from time to time, but you will typically not require as many carbs to treat your lows as opposed to MDI or using a pump. When you treat a low, you should enter the carbs consumed into the Trio system so its autotune functionality can make better choices on your ICR, ISF, and basal rates.
If you experience a roller coaster pattern of highs and lows after treatment, your insulin sensitivity factor (ISF) is most likely to blame. Consider making your insulin sensitivity less aggressive by 10% or reducing your adjustment factor by 0.1 increments.
"},{"location":"operate/troubleshoot/#rebound-lows","title":"Rebound Lows","text":"Tips
To avoid a second low, you can instruct Trio not to give any SMBs for a while after a low, giving your BG time to stabilize. Set up a Temporary Target preset that is a bit higher than your usual target (e.g., 7,5 mmol/L | 136 mg/dl). Ensure that Allow SMB With High Temptarget is disabled. Make the temporary target last for a while (e.g., 30-45 min).
Warning
Setting a temporary target is not the same as disconnecting the pump. Trio will still be able to give you insulin during the temporary target, but only by adjusting basal rates, resulting in a less aggressive treatment.
"},{"location":"operate/troubleshoot/#highs-after-meals","title":"Highs after meals","text":"Tip
It is normal for BG to rise after a meal. This happens to everyone, with or without diabetes. The key is to avoid very high BG levels and bring them back into range as soon as possible.
"},{"location":"operate/troubleshoot/#fast-rise","title":"Fast Rise","text":"Scenario: Your BG rises fast when eating and ends up too high.
If your BG rises fast and ends up too high, it is usually because the carbs were absorbed before the insulin peaked. If we rule out site issues, illness, etc, the logical approach is to ensure you get enough insulin ahead of the carbs. You can achieve this by increasing your pre-bolus timing for the meal. This gives the insulin time to absorb before the carbs kick in. You can find more information on the mealtime strategy page.
"},{"location":"operate/troubleshoot/#persistent-high-after-meals","title":"Persistent High After Meals","text":"Scenario: Your BG gets high after a meal and stays high for a long time. Trio gives you some SMBs, but not enough to bring you back down.
Trio calculates the amount of insulin needed to bring blood glucose back into range. Additional insulin is needed when blood glucose remains high after a meal, but Trio needs the correct settings to make those adjustments.
Scenario: Your BG rises and ends up too high after a meal, then falls and ends up too low.
In this scenario, you are not getting enough insulin upfront to deal with the carb absorption, but the total amount of insulin you're getting is too much - causing a low. If this is a repeating scenario, you should look into all of the following:
Please read through the chapters on Autosens and Dynamic settings.
"},{"location":"resources/citations/","title":"Resources","text":""},{"location":"resources/citations/#openaps-documentation","title":"OpenAPS Documentation","text":"The first place to start if you want to learn more about the underlying algorithm, is the extensive OpenAPS documentation. OpenAPS is the underlying algorithm that Trio implements to control blood sugar, with small modifications mostly pertaining to the Dynamic settings.
"},{"location":"resources/citations/#androidaps-documentation","title":"AndroidAPS Documentation","text":"AndroidAPS implements the same OpenAPS algorithm with dynamic enhancements and maintains an extensive documentation for new users. Recommend if you have additional questions, you skim through its documentation for your answer.
"},{"location":"resources/citations/#loop-documentation","title":"Loop Documentation","text":"Trio is not a fork of Loop. While their underlying algorithms are different, they share some parts of their code base. It is recommended that you take a quick glance in the Loop Docs for your issue, especially if it relates to pump usage and build errors. Many of these documents have been adapted from Loopdocs.
"},{"location":"resources/citations/#community-support-free-support","title":"Community Support (Free Support)","text":"There are many opportunities to find help with using Trio.
Many Healthcare Providers offer support in using DIY services. The following providers are not free and come with costs based on your needs and your insurance coverage.
Click on a language on the links below to turn on Google's automatic translation.
\u0639\u0631\u0628\u064a
\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438
\u010ce\u0161tina
Deutsch
Dansk
\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac
Espa\u00f1ol
\u65e5\u672c
Suomi
Fran\u00e7ais
\u05e2\u05d1\u05e8\u05d9\u05ea
Hrvatski
\u0939\u093f\u0902\u0926\u0940
Italiano
\ud55c\uad6d\uc5b4
Norsk
Nederlands
Polski
Portugu\u00eas
Rom\u00e2n\u0103
\u0420\u0443\u0441\u0441\u043a\u0438\u0439
Sloven\u010dina
Svenska
Turkish
\u4e2d\u6587\uff08\u7b80\u4f53)
\u4e2d\u6587\uff08\u7e41\u9ad4)
"},{"location":"resources/translate/#change-language","title":"Change Language","text":"To modify the language choice for the whole site, copy the line below, paste it into the URL, and then choose the desired language from the list above.
https://docs.diy-trio.org/resources/translate.html\n
OR
Use the Google Translation three-dot menu (\u2807
) and select Go to original URL \u2197
while on the Translation page.
Every website page gets automatically translated to the selected language as do links to other websites
The Google Translate Tool will appear at the top of each page
Automatic Translation
These links connect this site to the Google Translation service.
Once Google Translate has been turned on, clicking the language link above shows a Google Translate: Can't translate this page
error.
The graphic below shows the Google Translate Tool when maximized (default) for a browser and mobile display. The tool can be minimized by tapping on the up/down carets at the right of the tool. This is very useful if the tool obstructs part of the original screen. Additional options can be selected with the three-dot menu as shown in the graphic.
"},{"location":"settings/loop/","title":"Closed Loop","text":"Closed Loop is disabled by default. This means Trio cannot make adjustments autonomously. The system relies on your approval of its actions.
"},{"location":"settings/loop/#should-i-enable-it","title":"Should I Enable It?","text":"Closed Loop allows the system to make insulin adjustments automatically. Your end goal for looping is to enable this setting to reduce the time spent managing your diabetes. However, closing loop too early can make it difficult for new loopers wanting to optimize their ISF, CR, and basal settings. If this is your first time looping, it is recommended you keep this setting disabled initially and ensure your profile settings (CR, ISF, basal rates) are properly set. You should monitor Trio's predictions and suggestions and see if they are appropriate for you. See the corresponding sections on CR, ISF, and basal rates for more information on their adjustment.
Important
Remember that everyone's diabetes is different, and there is no one-size-fits-all, so take your time optimizing your settings.
"},{"location":"settings/configuration/autotune/","title":"Autotune","text":"Highlights
Autotune makes iterative adjustments to your profile settings (basal rates, ISF, and carb ratio) based on your last 24 hours of data. The adjustments made by Autotune are small, with a maximum of 10% change to the current CR and ISF or 20% change to the current basal rates per run, but they add up over days. Autotune is run nightly by default unless it is manually run by the user.
Autotune is designed to work over weeks to slowly improve the accuracy of your initially set ISF/CR/basal rates. The output of autotune formulas produces a ratio similar to that of autosens. The autosens max and min preferences also limit this ratio.
"},{"location":"settings/configuration/autotune/#how-does-it-work","title":"How does it work?","text":"Autotune is not Machine Learning. It is not AI. It is a statistical regression attempting to compare what happened over the last 24 hours with what profile settings are and adjusting the profile settings accordingly.
For basals, it divides the day into hour-long increments. It calculates the total deviations for that hour increment and what change in basal would be required to adjust those deviations to 0. Then, 20% of the change needed is applied to the three hours prior (because of insulin impact time). If increasing basal, it increases each of the 3-hour increments by the same amount. If the basal decreases proportionally, the biggest basal is reduced the most.
For ISF, it calculates the 50th percentile (median) deviation for the entire day and determines how much ISF would need to change to get that deviation to 0. It applies 10% of that as an adjustment to ISF.
For CR, it calculates the total deviations over all of the day's mealtimes, compares them to the deviations expected based on existing CR and the known amount of carbs entered, and applies 10% of that adjustment to CR.
"},{"location":"settings/configuration/autotune/#important-note-on-dynamic-settings","title":"Important note on Dynamic Settings","text":"Tip
Autotune results can be unreliable if dynamic settings are enabled.
Because Autotune uses Deviations to calculate basal variation, it has to calculate Deviations. It does this using a profile-based ISF value.
This means that if you enable Autotune but use dynamic functions within Trio, the algorithm will not use the ISF that was in operation when it ran in the past, and basal adjustments and ISF adjustments are likely to be incorrect.
It can also only run with a single daily ISF and CR, so it doesn't work for most people.
"},{"location":"settings/configuration/autotune/#how-does-it-differ-from-autosens","title":"How does it differ from Autosens?","text":"Autosens is designed to rapidly change your profile settings every loop cycle based on the last 8 or 24 hours of data. It accounts for biological changes to insulin sensitivity that occur throughout the day and night and changes from pump placement.
Autotune, by contrast, works on a longer time scale. It makes slow but sustained changes to your profile to improve the accuracy of your set baseline settings. It is run every 24 hours.
"},{"location":"settings/configuration/autotune/#should-i-enable-autotune","title":"Should I enable Autotune?","text":"If you believe your profile settings are accurate, you should keep autotune disabled; it may worsen control in specific scenarios, such as after extended periods of sickness.
If you decide to enable it, you should note that autotune is limited by autosens max and min ratios. You can alter these values to give autotune more flexibility, but you will also affect autosens, dynamic ISF, dynamic CR, and adjust basal.
Instead, it is best to review your settings in a few weeks, note the new autotune values, and change your profile settings to match them, giving autotune a new starting point.
"},{"location":"settings/configuration/basalprofile/","title":"Basal Profile","text":"Highlights
Basal profile consists of your scheduled basal rates, which determine how much insulin is being delivered at each hour of the day. It is important to understand that these settings are not taken verbatim when looping with Trio. Based on your current blood sugar reading, they are adjusted every loop cycle and replaced with temporary basal rates. Your set values are altered by autosens or autotune (if enabled) based on your historical data.
Your basal profile values should be near your true value. Protection limiters prevent Trio's autotune system from selecting the appropriate dose if the scheduled basal profile is wildly inaccurate. Basal profiles are also important for insulin on board (IOB) calculations. Trio treats your scheduled basal profile as the zero point when autotune is disabled. When autotune is enabled, it uses the autotuned basal rate instead of your scheduled basal rate. The calculated IOB increases if you receive additional insulin on top of your basal rates, either as boluses or high temporary basal rates. Likewise, if you receive low temporary basal rates for a set period, your IOB decreases, and can even become negative.
"},{"location":"settings/configuration/basalprofile/#settings","title":"Settings","text":"If you are coming from a pump, transferring basal profiles from your pump settings should be done with consideration and caution. They might not be entirely accurate for Trio. If you are going low or high while fasting, consider adjusting according to the instructions below.
There are three main ways of identifying and improving your basal profile values. The standard method is to test your basal by having a relaxing 4-6 hours without eating at least two hours before you begin the test. Does your blood sugar stay steady? Or do you climb and need a correction? Or do you go low and need to eat? Setting accurate basal rates is crucial for Trio success. They determine how much of the insulin delivered (from basal and bolus) is counted as insulin on board (IOB).
You can also monitor your IOB to determine if your basal profile is accurate. Consistently negative or positive IOB at certain times of day may suggest that these hours need to decrease or increase their basal rate, respectively.
If you have autotune enabled, you can review the day-to-day trend of how autotune is changing your basal profile. If autotune remains steady, you can change your scheduled values to the autotune values. This has two main benefits: 1. Autotune can start to alter your values again if it is being stopped by a safety limiter (autosens max/min) 2. You can have your values hard-coded in case Autotune's data is reset.
"},{"location":"settings/configuration/carbratios/","title":"Insulin Carbohydrate Ratio","text":"Highlights
CR refers to the amount of carbohydrates one unit of insulin is able to neutralize.
Example: Bill has a 1:10 CR (aka a CR of 10). If Bill has 20 carbs with lunch, he will need 2 U of rapid insulin to neutralize it.
CR is not changed as drastically as basal rates or ISF unless Dynamic CR is enabled. Your CR must be as accurate as possible for proper Trio function.
"},{"location":"settings/configuration/carbratios/#settings","title":"Settings","text":"It is safe to transfer your CR from your pump settings. However, your settings may not be accurate if you are experiencing high peaks with meals or lows three hours afterward. If you have SMB/UAM on and are experiencing sharp drops, you may also need to optimize your ISF.
There are two suggested methods of optimizing your CR. The standard way is a test meal experiment, which can be done while not looping. Have a meal with a known amount of carbohydrates and bolus according to your current CR. Monitor your blood sugar at the three-hour mark; did you go high, low, or end up where you started prior to the meal? If you end up high, you can make your CR more aggressive by DECREASING the value. If you were low, make your CR less aggressive by INCREASING the value. You may also look to increase or decrease your adjustment factor if you have dynamic CR on.
If you have autotune enabled, monitor the general trend in CR adjustment. When the autotune value stabilizes, evaluate the suggestion and change your scheduled value to the autotune value, allowing the system to continue making changes if it was being limited by a safety limiter.
"},{"location":"settings/configuration/insulinsensitivities/","title":"Insulin Sensitivity Factor","text":"Highlights
ISF, also called insulin correction factor (ICF), refers to the amount of blood glucose in mmol/L (or mg/dL, depending on your settings) one unit of insulin can neutralize.
Example: Bill has a 1:4 ISF (this is also written in shorthand as an ISF of 4 mmol/L/U (72 mg/dL/U)). This means 1 U of rapid insulin will bring Bill's sugar down by 4 mmol/L (72 mg/dL).
Like basal rates, ISF is not used verbatim by Trio but is modified over time as data on the patient is collected. Still, setting ISF as close to accurate as possible is important for Trio to function well.
"},{"location":"settings/configuration/insulinsensitivities/#settings","title":"Settings","text":"It is safe to transfer your ISF from your pump settings. Note that almost all issues when starting with Trio are a result of an improperly set ISF. If you find you have lows with corrections, or you have SMB/UAM on and the application provides too much insulin at any time, resulting in a rollercoaster pattern, your ISF is likely to blame.
There are a few ways you can work to adjust your ISF. The easiest method is simply bringing yourself to a higher glucose with a glucose tab or choosing a time when you are \"stuck\" higher than your target, then correcting based on your ISF. If you are higher than your target after 4 hours, make your ISF more aggressive by DECREASING the value. If you are lower than your target after 4 hours, make your ISF less aggressive by INCREASING the value.
You may also find Autotune helpful in identifying when to adjust your ISF and determine whether it is too high or low based on the trend in its changes. Look to changing your profile value to the autotune value when Autotune stabilizes to ensure safety limiters aren't preventing any additional needed change.
Warning
When using Autotune, it is important to turn OFF DynamicISF prior to enabling or running Autotune
"},{"location":"settings/configuration/pumpsettings/","title":"Pump Settings","text":"Highlights
These are safety limiters for Trio. Note that Trio will prevent you from entering anything higher than these limits, but it won't alert or notify you about it.
"},{"location":"settings/configuration/pumpsettings/#max-basal","title":"Max Basal","text":"This is the highest temp basal allowed to be set. 4 times your highest scheduled basal rate is generally adequate.
If Trio predicts you need a temp basal set higher than this value, it will instead set the basal to this maximum value. If you try to manually set a temp basal higher than this value, nothing will happen, and your current basal rate will not change.
"},{"location":"settings/configuration/pumpsettings/#max-bolus","title":"Max Bolus","text":"Choose the maximum amount of insulin you generally bolus for meals. This can also help if you regularly have leaking or tunneling issues for large boluses.
If you enter a bolus higher than this value, it will only deliver this maximum value. So if your max bolus is set to 5U but you enter a 6U bolus, only 5U will be delivered.
"},{"location":"settings/configuration/pumpsettings/#max-carbs","title":"Max Carbs","text":"This is the maximum amount of carbs allowed in a single entry by Trio. If you enter more than this amount, your entry will be reduced to the maximum value.
If your Max Carbs setting is 125g and you enter 150g, only 125g will be recorded. You could then enter a second entry for 25g to make up the difference.
Note that, for now, this setting does not limit the maximum number of carbs that can be added via Nightscout or the watch app.
"},{"location":"settings/configuration/pumpsettings/#duration-of-insulin-action","title":"Duration of Insulin Action","text":"Warning
It is not advised to decrease this setting
Duration of insulin action (DIA) affects Trio calculations through its impact on insulin on board (IOB). The default DIA of 5 hours is likely too low and can cause insulin stacking. Increasing to 7 hours should suit most users. For more information on DIA in loop systems, read this from Tim Street.
"},{"location":"settings/configuration/targetglucose/","title":"Target Glucose","text":"Trio will target this value when calculating insulin needs. It should be set to the blood glucose you would like to reach when corrections are made. A recommended value is between 90-110mg/dL or 5-6mmol/L
Tip
You can set different targets at different times. Some users only have one target. Others have a lower target during the day and a higher target during the night to avoid lows.
"},{"location":"settings/configuration/concepts/autosens-dynamic/","title":"Autosens, Dynamic ISF/CR, and Adjust Basal","text":"Highlights
Important
The examples in this section employ the default logarithmic formula for calculations. For information on using Sigmoid, jump to this section.
"},{"location":"settings/configuration/concepts/autosens-dynamic/#autosens","title":"Autosens","text":"Auto-sensitivity (Autosens) reviews your last 8 hours and 24 hours of data every loop cycle (5 min) and determines whether you have been reacting more or less sensitively to insulin. It then makes conservative temporary adjustments to your basal rates, blood sugar target, and ISF.
Example
Autosens finds Bill has been running more sensitive to insulin lately. In the last 24 hours, he has been 2X more sensitive to insulin, whereas, in the last 8 hours, he has been 3X more sensitive to insulin.
Autosens then takes the more conservative calculated sensitivity. In this example, the more conservative value is obtained from the 8-hour window because by assuming Bill is 3X more as opposed to 2X more sensitive to insulin, the system will be posed to give less insulin.
If you are using Autotune, Autosens will use your calculated Autotune CR, ISF, and basal rates as its baseline rather than your set values.
Note that Autosens does not examine meals or adjust your CR. It only assesses your sensitivity to insulin and adjusts ISF/basal rates/blood sugar targets accordingly.
"},{"location":"settings/configuration/concepts/autosens-dynamic/#dynamic-isf","title":"Dynamic ISF","text":"Some thought Autosens was too conservative and slow to make changes. Dynamic ISF
is a drop-in replacement for Autosens's ISF calculation formula, with the goal of making it more aggressive. If you find that you have high ISF variability throughout the day and Autosens is not providing you with sufficient control, you can turn this feature on.
Dynamic ISF takes into consideration a new variable called the Adjustment Factor
, which affects its aggressiveness. If Dynamic ISF is too aggressive, you can decrease this number by 0.05-0.1 points to make it more meek. Likewise, increase this number if you still feel dynamic ISF is not aggressive enough.
Note
High Temptarget Raises Sensitivity
or Exercise Mode
is enabled and a high temporary target has been set by the user. While Dynamic ISF is inherently more aggressive, it also provides the user with greater control via the Adjustment Factor
compared to Autosens. You can decrease the Adjustment Factor
to make Dynamic ISF less aggressive than the calculated Autosens values. Autosens determines a ratio (autosens.ratio
) and alters your ISF in the following manner:
Example
Bill has an ISF of 3 mmol/L/U (54 mg/dL/U) in his settings. The system finds Bill has been more resistant to insulin lately and needs to increase his insulin. It calculates Bill has an autosens.ratio
of 1.1 (note that a larger autosens.ratio
results in a lower, more aggressive ISF).
When Autosens adjusts the ISF, it uses the following calculation:
\\[ 3\\ mmol/L/U\\ \u00f7\\ 1.1\\ =\\ 2.73\\ mmol/L/U \\] \\[ 54\\ mg/dL/U\\ \u00f7\\ 1.1\\ =\\ 49\\ mg/dL/U \\]Bill now temporarily has an ISF of 2.73 mmol/L/U (49 mg/dL/U).
Dynamic ISF (using the default logarithmic algorithm in Trio) uses an alternative formula to calculate the autosens.ratio for ISF adjustments. Note this formula uses mg/dL and not mmol/L:
\\[ autosens.ratio\\ =\\ profile.sens\\ *\\ AF\\ *\\ TDD\\ *\\ log((BG/peak)+1)\\ /\\ 1800 \\] \\[ New ISF\\ =\\ (profile\\ ISF)\\ /\\ (autosens.ratio) \\]This formula considers your profile ISF (profile.sens in mg/dL), current blood glucose (BG in mg/dL), total daily dose (TDD over the last 24 hours), insulin peak effect (peak activity normally is 120 min) and a new variable called adjustment factor (AF) that allows for user tuning of Dynamic ISF/CR.
Click here to view a graph depicting the logarithmic formula in mg/dL
Click here to view a graph depicting the logarithmic formula in mmol/L
"},{"location":"settings/configuration/concepts/autosens-dynamic/#dynamic-cr","title":"Dynamic CR","text":"This experimental feature alters the carb ratio (CR) based on current blood sugar and total daily dose (TDD). Unlike ISF, CR was not originally altered by autosens with respect to your detected sensitivity. Using Dynamic CR will lead to a dramatic change in how CR is calculated by Trio. Dynamic CR uses a similar formula as Dynamic ISF as described above:
\\[ autosens.ratio\\ =\\ profile.sens\\ *\\ AF\\ *\\ TDD\\ *\\ log((BG/peak)+1)\\ /\\ 1800 \\] \\[ New\\ CR\\ =\\ (profile\\ CR)\\ /\\ (autosens.ratio) \\]If your CR changes dramatically daily and Trio is not providing adequate bolus recommendations, you can test this feature. Note that Trio already makes modifications to your recommended boluses without this feature enabled based on your blood glucose target, COB, and IOB.
Note
If the calculated autosens.ratio by Dynamic CR is greater than 1, the following formula is used to make the resulting CR less aggressive:
\\[ new.autosens.ratio\\ =\\ (autosens.ratio\\ -\\ 1)\\ /\\ 2 + 1 \\]"},{"location":"settings/configuration/concepts/autosens-dynamic/#adjust-basal","title":"Adjust Basal","text":"Adjust Basal replaces Autosens's formula for adjusting basal rates, with a formula dependent on total daily dose (TDD) of insulin. Turn on this setting to give basal adjustments more agility. Keep this setting off if your basal needs are not highly variable.
"},{"location":"settings/configuration/concepts/autosens-dynamic/#advanced-information_1","title":"Advanced Information","text":"Normally, a new basal rate is set by autosens:
Adjust basal replaces the autosens.ratio with its own autosens.ratio calculated as such:
See Weighted Average of TDD
setting to understand how this variable is calculated.
Example
Bill's TDD has been 55 U over the last 24 hours, and his 10-day average is 48 U. He has set his Weighted average of TDD
in preferences to 0.7. His current profile basal rate is 1 U/h.
Final Thoughts
Remember that all Autosens ratios calculated in this section are being limited by Autosens Max and Autosens Min safety limiters. Additionally, Dynamic CR has a built-in safety limiter against highly aggressive ratios.
"},{"location":"settings/configuration/concepts/sigmoid/","title":"Sigmoid Function","text":""},{"location":"settings/configuration/concepts/sigmoid/#what-is-it","title":"What is it?","text":"The sigmoid function provides an alternative to the default logarithmic function. It is called Sigmoid because the math used to calculate adjustments forms a sigmoid shape.
"},{"location":"settings/configuration/concepts/sigmoid/#how-does-it-work","title":"How does it work?","text":"Sigmoid relies upon how far your blood glucose is from your target BG to determine how much to adjust ISF. As blood sugars get farther away from your target BG, sigmoid adjustments get larger. The adjustments are limited by autosens max and autosens min settings.
Click here to view a graph depicting the sigmoid formula in mg/dL
Click here to view a graph depicting the sigmoid formula in mmol/L
"},{"location":"settings/configuration/concepts/smb-uam/","title":"SMB and UAM","text":"Highlights
Super micro bolus (SMB) gives you small amounts of insulin upfront in the form of a bolus. Your temporary basal rates will be reduced accordingly before or after the SMB is delivered, so you will overall receive the same amount of insulin you would have received with temporary basal rates alone. SMB allows for faster control of blood sugars by providing more insulin upfront.
There are limitations on the size of SMBs. See the OpenAPS documentation for more information.
Important
There are numerous settings related to enabling SMBs in Trio. Below is the order of precedence of the settings Trio uses when deciding whether to enable or disable SMB:
For a detailed look at when SMBs are delivered, see the chart in Are SMBs Allowed? section.
"},{"location":"settings/configuration/concepts/smb-uam/#unannounced-meals","title":"Unannounced Meals","text":"Unannounced Meal (UAM) provides an alternative method (in addition to or instead of carb entry) for detecting and safely dosing insulin via SMBs in response to significant BG rises, whether due to meals, stress/illness, or counterregulatory hormones (adrenaline, cortisol, glucagon, HGH). When enabled, it replaces Advanced Meal Assist (AMA). AMA is an older feature that depends on your carbohydrate entries and sets high temporary basal rates to counteract any remaining carbs on board.
"},{"location":"settings/configuration/preferences/dynamicsettings/","title":"Dynamic Settings","text":"Attention
Please read Autosens and Dynamic ISF/CR before continuing.
Tip
Dynamic ISF is a more aggressive alternative to Autosens's ISF adjustment algorithm. Many people find that ISF depends on BG level instead of solely time of day, making it hard to fix persistent highs by adjusting the scheduled ISF settings.
"},{"location":"settings/configuration/preferences/dynamicsettings/#dynamic-cr","title":"Dynamic CR","text":"Dynamic CR alters your carb ratio with every loop cycle based on your current blood glucose and TDD of insulin. Turn it on if you experience your CR changing day-to-day or at different blood glucose levels and Trio is not consistently suggesting appropriate boluses. You should first rule out other causes for this, including inadequate carb counting or inappropriate profile ICR.
"},{"location":"settings/configuration/preferences/dynamicsettings/#adjustment-factor","title":"Adjustment Factor","text":"Adjustment Factor (AF) allows one to bias the Dynamic ISF and Dynamic CR (if they are enabled) toward more or less aggressive results. Increasing AF will result in the Dynamic ISF/CR outputting more aggressive values while decreasing it will bias the output toward less aggressive values. It is recommended to start with an AF of 0.5-0.8 and increase as needed.
Example
Bill has Dynamic CR on. His Dynamic CR is calculated to be 1:4 by Trio based on his current blood glucose, TDD, and his set ISF. But Bill decides to set his AF to 1.2 because he has found recently that Dynamic CR has not been giving him aggressive enough numbers. Trio acts accordingly, increasing his CR to something above 1:4 instead (ex: 1:3.5).
This is a simplified example. See the section on Dynamic CR for more information.
Caution
Adjustment Factor (AF) is not a safety limiter
Dynamic CR and ISF use a logarithmic function to perform calculations by default.
This option replaces the logarithmic function with a sigmoid function for Dynamic ISF/CR calculations.
Before enabling this setting, please read the dedicated section on sigmoid.
Warning
Before enabling Sigmoid
This ratio is used by \"Adjust basal\" for its calculations. It allows you to effectively control the variability of basal adjustments (if Adjust basal is enabled). You can set this value to a decimal between 0 and 1.
Example
Bill has a TDD of 55 U over the last 24 hours. He has had a TDD of 48 U over the last 10 days. His Weighted Average is set at 0.65:
\\[ TDD Average = 55 * 0.65 + 48 * 0.35 = 52.55 \\]As you increase the default 0.65 ratio to a higher number, the adjusted basal rates will be more influenced by your last 24-hour insulin usage, resulting in more variable changes.
"},{"location":"settings/configuration/preferences/dynamicsettings/#adjust-basal","title":"Adjust Basal","text":"Adjust Basal replaces the sensitivity-based formula normally used by Autosens for adjusting your basal rates with a dynamic formula dependent on your TDD of insulin. Use this if the current Trio adjustments of basal rates are not adequate.
"},{"location":"settings/configuration/preferences/dynamicsettings/#threshold-setting-mgdl","title":"Threshold Setting (mg/dl)","text":"The threshold setting is a safety limiter function. If blood sugar at any point is predicted to go below this value, Trio will suspend insulin delivery (SMBs are halted and Temp Basal of 0 U/hr set) and wait till its algorithms predict otherwise. This setting can be useful if you are experiencing a high number of hypoglycemia events. Please review the OpenAPS documents if you want a better understanding of how it is used.
The threshold setting is, by default, determined by your blood glucose target setting:
This setting allows you to choose a higher threshold setting than the default. Note that you cannot choose something lower than the default setting for a certain blood glucose target.
Example
Bill has set a BG target of 110 mg/dl. In his Trio preferences, he has set his threshold to 65 mg/dl.
Because Trio's default threshold setting is 75 mg/dl for a 110 mg/dl blood glucose target, Bill's preference will be ignored.
"},{"location":"settings/configuration/preferences/mainsettings/","title":"OpenAPS Main Settings","text":"Important
Select your insulin type for the appropriate response curve to be used by the algorithm:
Bilinear: This IOB curve is based on a bilinear activity curve that varies by the user\u2019s duration of insulin action setting in their pump. Rapid-acting: This is the default setting for Novolog, Novorapid, Humalog, and Apidra insulins. Selecting this setting will cause OpenAPS to use an exponential activity curve with a peak activity set at 75 minutes and a duration of insulin action set at 300 minutes (5 hours). Ultra-Rapid: This is the default setting for Fiasp and Lyumjev. It uses an exponential activity curve with a peak activity set at 55 minutes and a duration of insulin action set at 300 minutes (5 hours).Caution
Duration of insulin (DIA) action can be altered in the pump settings section of Trio. A minimum of 5 hours is required. It is not advised to alter this setting from the default.
To understand why a higher duration of insulin action is used in Trio, click to see the following documentation from Tim Street.
"},{"location":"settings/configuration/preferences/mainsettings/#max-iob","title":"Max IOB","text":"The maximum amount of insulin on board (i.e. in the body). This includes insulin from all sources (basal and bolus) that are automatically delivered by Trio. Manual boluses are not subjected to this limiter.
The default is set to zero, meaning Trio can only set temporary basal rates lower than your profile basal rate. It cannot set temporary basal rates that exceed your profile basal rate in cases of high blood sugar, and it cannot use super micro boluses to control blood sugar.
You can start by increasing this number to your average mealtime bolus and evaluating its effect. The default recommendation is \u201caverage meal bolus + 3x max hourly basal\u201d when using super micro boluses.
Example
Bill has an average mealtime bolus of 6U, and the following basal profile:
Using the MaxIOB formula
\\[ Average\\ Meal\\ Bolus + 3 \\times Highest\\ Hourly\\ Basal \\]his recommended Max IOB setting should be 12
\\[ 6 + 3 \\times 2.0 = 12 \\]If you are insulin resistant and/or need help dealing with meal spikes, you can continue to increase this number further to allow for greater insulin delivery.
"},{"location":"settings/configuration/preferences/mainsettings/#max-cob","title":"Max COB","text":"The maximum amount of carbs that Trio is allowed to bolus or set high-temp targets for. This safety feature protects against erroneous carbohydrate entries that could lead to hypoglycemia episodes.
Tip
If you tend to eat more than 120 g of carbs in one sitting, choose the maximum amount of carbs you eat.
"},{"location":"settings/configuration/preferences/mainsettings/#max-daily-safety-multiplier","title":"Max Daily Safety Multiplier","text":"Limits the maximum temporary basal rate Trio is able to use at any time. The default setting of 3, which is unlikely to need adjustment, allows for a maximum basal rate of 3 times the maximum daily basal.
Example
Bill has Max Daily Safety Multiplier set to 3 and the following basal profile:
It is 7:00 am, so Trio has been scheduled to deliver 1 U/hr. But Bill is running high, so Trio wants to deliver more.
Using the formula
\\[ Highest\\ Hourly\\ Basal \\times Max\\ Daily\\ Safety\\ Multiplier = Maximum\\ Temporary\\ Basal\\ Rate \\]the maximum temporary basal rate that can be set is 6 units per hour
\\[ 2.0 \\times 3 = 6 \\]"},{"location":"settings/configuration/preferences/mainsettings/#current-basal-safety-multiplier","title":"Current Basal Safety Multiplier","text":"Limits the maximum temporary basal rate Trio is able to use at the current time. The default setting of 4, which is unlikely to need adjustment, allows for a maximum basal rate of 4x the current basal rate.
Example
It is currently 9:00 am, and Bill has the following basal profile:
Using the formula
\\[ Current\\ Basal\\ Rate \\times Current\\ Basal\\ Safety\\ Multiplier = Maximum\\ Temporary\\ Basal\\ Rate \\]the maximum temporary basal rate that can be set by Trio at 9:00 am is 4 units per hour
\\[ 1.0 \\times 4 = 4 \\]Important
The algorithm compares the two results from Current Basal Safety Multiplier and Max Daily Safety Multiplier, then it limits calculations with the smaller of the two values
"},{"location":"settings/configuration/preferences/mainsettings/#autosens-max","title":"Autosens Max","text":"Please read Autosens and Dynamic ISF/CR and Autotune before adjusting this setting.
This setting determines the maximum ratio autosens can use for its adjustments. Increasing this value allows autosens to increase insulin given through your basal profile, ISF, and target blood glucose.
"},{"location":"settings/configuration/preferences/mainsettings/#autosens-max-with-dynamic-isf-andor-dynamic-cr","title":"Autosens Max with Dynamic ISF and/or Dynamic CR","text":"This limits the ability of Dynamic ISF and Dynamic CR to make more aggressive adjustments.
"},{"location":"settings/configuration/preferences/mainsettings/#autosens-max-with-autotune","title":"Autosens Max with Autotune","text":"This limits Autotune's ability to make more aggressive adjustments to your CR, basal profile, and ISF.
"},{"location":"settings/configuration/preferences/mainsettings/#autosens-min","title":"Autosens Min","text":"Please read Autosens and Dynamic ISF/CR and Autotune before adjusting this setting.
This setting determines the minimum ratio autosens can use for its adjustments. Decreasing this value allows autosens to reduce insulin given through your basal profile, ISF, and target blood glucose.
"},{"location":"settings/configuration/preferences/mainsettings/#autosens-min-with-dynamic-isf-andor-dynamic-cr","title":"Autosens Min with Dynamic ISF and/or Dynamic CR","text":"This limits the ability of Dynamic ISF and Dynamic CR to reduce insulin needs.
"},{"location":"settings/configuration/preferences/mainsettings/#autosens-min-with-autotune","title":"Autosens Min with Autotune","text":"This setting Autotune's ability to reduce insulin needs in your CR, basal profile, and ISF.
"},{"location":"settings/configuration/preferences/othersettings/","title":"OpenAPS Other Settings","text":"Caution
None of these settings likely require adjustment from their defaults
"},{"location":"settings/configuration/preferences/othersettings/#rewind-resets-autosens","title":"Rewind Resets Autosens","text":"\"Rewind\" in Medtronic lingo refers to the attachment of a new insulin reservoir and infusion set. For Omnipod users, this means replacing your pod with a new one.
When you change the insulin injection site, you might find your insulin sensitivity is altered based on how well it's diffusing into your bloodstream.
This setting resets autosens's calculated autosens.ratio and forces it to restart anew from the time of the site change to improve your calculated basal rates, sensitivity ratio, and target blood glucose.
For more information, please read Autosens and Dynamic ISF/ICR.
"},{"location":"settings/configuration/preferences/othersettings/#use-custom-peak-time","title":"Use Custom Peak Time","text":"Toggle this on to use the \"Insulin Peak Time\" setting.
"},{"location":"settings/configuration/preferences/othersettings/#insulin-peak-time","title":"Insulin Peak Time","text":"Note
Requires \"Use Custom Peak Time\" to be enabled.
Select a peak activity time point, based on your insulin type.
"},{"location":"settings/configuration/preferences/othersettings/#skip-neutral-temps","title":"Skip Neutral Temps","text":"This feature was introduced in the OpenAPS algorithm (Oref0) but does not play a major role in Trio.
Light sleepers using OpenAPS would find that the notifications delivered by OpenAPS upon making a temp basal adjustment would wake them up.
This setting attempts to reduce notifications produced by OpenAPS (and Trio). However, it could potentially impact control and make it harder for users to determine if the system is working.
Caution
It is recommended to keep this setting disabled
"},{"location":"settings/configuration/preferences/othersettings/#unsuspend-if-no-temp","title":"Unsuspend if No Temp","text":"Important
This setting only applies to Medtronic Pumps
After manually suspending your pump, you will be provided with a reminder at a chosen time to resume it. Many people, however, neglect this reminder and forget to unsuspend, leading to highs.
This feature allows you to use zero temp basals to unsuspend your pump automatically. Before suspending your pump, set a 0 U/hr temp basal for the period you want the pod to remain suspended. Then suspend the pod. Once the temp basal expires, the pod will be automatically reactivated.
"},{"location":"settings/configuration/preferences/othersettings/#suspend-zeros-iob","title":"Suspend Zeros IOB","text":"This allows Trio to understand better that no insulin is being delivered to the patient when a pump suspension occurs.
Trio will set a zero temp basal (0 U/hr) during pump suspensions, improving its insulin on board calculations and, therefore, its algorithm calculations.
Recommended to keep this setting enabled.
"},{"location":"settings/configuration/preferences/othersettings/#min-5m-carbimpact","title":"Min 5m Carbimpact","text":"This is a fallback setting used by Trio. If Trio is unable to tell if carbs are being absorbed from blood sugar readings, it will estimate how many carbs have been absorbed using this setting.
The default value of 8 mg/dL/5min assumes carbohydrates will increase blood sugar by 8 mg/dL every 5 minutes. The actual amount of carbohydrates estimated to be absorbed depends on your calculated carbohydrate sensitivity ratio (CSF = ISF/CR).
"},{"location":"settings/configuration/preferences/othersettings/#autotune-isf-adjustment-fraction","title":"Autotune ISF Adjustment Fraction","text":"Autotune, by default, adjusts your ISF by 20% each nightly run. This value allows you to make your autotune adjustments less aggressive.
Set this at 1 for the full 20% adjustment.
Maths
\\[ adjustedISF\\ =\\ adjustmentFraction\\ *\\ autotuneISF\\ +\\ (1-adjustmentFraction)\\ *\\ profileISF \\] \\[ newISF\\ =\\ (\\ 0.8\\ *\\ profileISF\\ )\\ +\\ (\\ 0.2\\ *\\ adjustedISF\\ ) \\]Example
Bill has a profile ISF of 3. Autotune thinks his true ISF value is 4. His adjustment fraction is 1.
\\[ adjustedISF = 1 * 4 + (1 - 1) * 3 = 4 \\] \\[ newISF = (0.8 * 3) + (0.2 * 4) = 3.2 \\]Assuming autotune is not being limited by the autosens max and min, Bill's ISF will be set to 3.2 by autotune tonight. Autotune will then repeat the following night, starting with a profileISF = 3.2
"},{"location":"settings/configuration/preferences/othersettings/#remaining-carbs-fraction","title":"Remaining Carbs Fraction","text":"This is the fraction of carbs that is assumed not to be absorbed yet after 4 hours if carb absorption has not been seen.
When attempting to measure carbohydrates on board (COB) Trio may not be fully accurate. This setting is a safety feature that can prevent Trio from providing insulin for non-existent carbs.
Example
It has been 4 hours since Bill ate 20 carbs. Trio has been able to calculate that he's absorbed 15 carbs but cannot account for the 5 other carbs yet. Bill has a remaining carbs fraction of 0.75
\\[ Remaining COB = COB - absorbedCarbs - mealCarbs * (1 - carbsFraction) \\] \\[ 20 - 15 - 20(1 - 0.75) = 0 \\]Bill is assumed to have 0g carbs on board
Tip
Recommend to keep this value at the default of 1 meaning it will not impact Trio's calculations. This feature is closely tied to \"Remaining Carbs Cap.\"
"},{"location":"settings/configuration/preferences/othersettings/#remaining-carbs-cap","title":"Remaining Carbs Cap","text":"This setting is a safety limiter that determines the maximum amount of carbs that are assumed to be absorbed after 4 hours of carb absorption. A minimum of 90 carbs is mandatory for this setting.
Example
Bill eats 150 carbs. After 4 hours, Trio calculates a COB of 110. It will reduce that number to 90 carbs.
Tip
It is recommended to keep this value at default
"},{"location":"settings/configuration/preferences/othersettings/#noisy-cgm-target-multiplier","title":"Noisy CGM Target Multiplier","text":"If Trio detects that CGM data has been noisy, it will increase your target blood sugar by a set fraction to avoid you getting low. Default is 30% higher (1.3)
Example
Bill's Trio has calculated a blood glucose target of 5 mmol/L (90 mg/dL). But Bill has a noisy sensor. He has set his \"Noisy CGM Target Multiplier\" to 1.3. Trio will thereby use a target bg of:
\\[ 5 mmol/L * 1.3 = 6.5 mmol/L \\] \\[ 90 mg/dL * 1.3 = 117 mg/dL \\]Tip
It is recommended to keep this value at the default of 1.3.
"},{"location":"settings/configuration/preferences/smbsettings/","title":"SMB Settings","text":"Important
Enabling this setting allows SMBs to be delivered if your blood sugar is predicted to go above target.
SMBs will remain on if you have a low temporary target set but will be fully disabled if a high temporary target is set (unless \"Allow SMB With High Temptarget\" is enabled).
The size of SMBs is limited. For more information, see the OpenAPS documentation.
"},{"location":"settings/configuration/preferences/smbsettings/#max-delta-bg-threshold-smb","title":"Max Delta-BG Threshold SMB","text":"This safety limiter looks at the difference between your last two blood glucose readings. If the difference is large, Trio suspects them to be incorrect and will suspend SMB delivery accordingly. You can adjust the amount of change that should be allowed before SMBs are delivered. A setting of 0.2 means it will only give SMBs if the difference between the current and previous blood glucose readings is no greater than 20%.
Example
Your last CGM reading was 90mg/dL. The very next reading is 115mg/dL, an increase of 27%. If Max Delta-BG Threshold SMB is set to 0.2 (20%), this change is larger than the threshold, and no SMBs will be given.
Tip
For a fully closed loop, 0.3 is advised.
"},{"location":"settings/configuration/preferences/smbsettings/#enable-smb-with-cob","title":"Enable SMB With COB","text":"SMBs will be enabled if you currently have carbs on board (COB) to help you deal with meal spikes. This feature should be enabled if you want to use UAM.
Note
If you already have \"Enable SMB Always\" on, this feature is redundant and does not need to be configured.
"},{"location":"settings/configuration/preferences/smbsettings/#enable-smb-with-temptarget","title":"Enable SMB with Temptarget","text":"SMBs will be enabled if you have set a lower blood sugar target temporarily. This will allow you to reach your target faster.
Note
If you already have \"Enable SMB Always\" on, this feature is redundant and does not need to be configured.
"},{"location":"settings/configuration/preferences/smbsettings/#enable-smb-after-carbs","title":"Enable SMB After Carbs","text":"SMBs will be enabled if you had carbs within the last 6 hours to help with meal spikes.
Note
If you already have \"Enable SMB Always\" on, this feature is redundent and does not need to be configured.
"},{"location":"settings/configuration/preferences/smbsettings/#allow-smb-with-high-temptarget","title":"Allow SMB With High Temptarget","text":"By default, Trio will not allow SMBs if you have a temporary blood glucose target set above 5.5 mmol/L (100 mg/dL), even if \"Enable SMB Always\" is toggled on. Toggling this feature ON will disable that safety check and not prevent SMBs when a high temporary target is set, as long as SMBs are otherwise enabled.
"},{"location":"settings/configuration/preferences/smbsettings/#enable-smb-with-high-bg","title":"Enable SMB With High BG","text":"This allows SMBs to occur above the measure set below in \"...When Blood Glucose is Over (mg/dl)\".
Note
If you already have \"Enable SMB Always\" on, this feature is redundant and does not need to be configured.
"},{"location":"settings/configuration/preferences/smbsettings/#when-blood-glucose-is-over-mgdl","title":"... When Blood Glucose is Over (mg/dl)","text":"See the above setting for more information. This allows you to configure the target at which SMBs will be enabled.
"},{"location":"settings/configuration/preferences/smbsettings/#enable-uam","title":"Enable UAM","text":"With this option enabled, the SMB algorithm can recognize unannounced meals. This is helpful if you forget to tell Trio about your carbs or estimate your carbs wrong. It can also help if a meal with lots of fat and protein has a longer duration than expected. Without any carb entry, UAM can recognize fast glucose rises caused by carbs, illness, or counter-regulatory hormones, and tries to adjust it with SMBs. This also works the opposite way: if there is a fast glucose drop, it can stop SMBs earlier.
"},{"location":"settings/configuration/preferences/smbsettings/#max-smb-basal-minutes","title":"Max SMB Basal Minutes","text":"Max SMB Basal minutes is one of the major limits on how much insulin a single SMB delivers.
The amount of insulin that can be delivered by an SMB is related to the amount of scheduled basal insulin in your \"Basal Profile\" settings.
For example, if you are receiving a basal dose of 1 unit per hour and set \"Max SMB Basal minutes\" to 30, an SMB will deliver no more insulin than would be delivered by your basal in 30 minutes or half a unit (0.5U).
If you see that Trio is giving very small \u2014 or the same \u2014 SMBs every 5 minutes, you may need to adjust the Max IOB or Max SMB basal minutes. First, you should confirm your basal rates are adequate. Then, you can experiment with increasing Max SMB basal minutes so Trio can provide larger SMBs to better respond to BG rises and predicted rises.
"},{"location":"settings/configuration/preferences/smbsettings/#max-uam-smb-basal-minutes","title":"Max UAM SMB Basal Minutes","text":"This setting limits the size of SMBs that Trio can deliver when it detects an unannounced meal (UAM). The maximum size of each SMB is set in relation to the scheduled basal insulin in your profile settings.
You can configure this setting to make UAM more or less aggressive to correct meal spikes. Note that SMBs delivered in response to unannounced meals are also limited by your Max IOB. See \"Max SMB Basal Minutes\" above for information on other settings that limit SMBs.
Tip: If you struggle with meals or hormonal highs, consider increasing maximum basal minutes (slowly and watching results over multiple days before changing again) to allow UAM to give more insulin in one bolus.
"},{"location":"settings/configuration/preferences/smbsettings/#smb-deliveryratio","title":"SMB DeliveryRatio","text":"This is a safety limiter. Trio determines how much insulin is required to get you back to your target glucose. If SMB is enabled, Trio then delivers an SMB, that defaults to half the required insulin.
This setting allows you to boost or reduce what fraction of the required insulin is delivered in a single SMB. It is recommended you look at your basal profile, Max SMB basal minutes, Max UAM SMB Basal Minutes, and Max IOB before you adjust this setting.
"},{"location":"settings/configuration/preferences/smbsettings/#smb-interval","title":"SMB Interval","text":"The minimum interval between SMB boluses. SMBs will be delivered at this rate or less as needed.
"},{"location":"settings/configuration/preferences/smbsettings/#bolus-increment","title":"Bolus Increment","text":"The minimum amount of insulin that can be bolused by Trio via an SMB. This is determined by your pump hardware.
"},{"location":"settings/configuration/preferences/smbsettings/#are-smbs-allowed","title":"Are SMBs Allowed?","text":""},{"location":"settings/configuration/preferences/smbsettings/#by-following-the-flow-chart-above-you-can-see-which-combination-of-settings-will-allow-smbs","title":"By following the flow chart above, you can see which combination of settings will allow SMBs.","text":"If you've made it to the bottom row, it checks all those conditions, and if none of them are true, then SMBs are allowed.
"},{"location":"settings/configuration/preferences/smbsettings/#here-is-the-order-of-settings-trio-uses-when-deciding-whether-to-enable-or-disable-smbs","title":"Here is the order of settings Trio uses when deciding whether to enable or disable SMBs:","text":"Important
This section is entirely visual and does not impact insulin dosage calculations
"},{"location":"settings/configuration/preferences/statistics/#low-glucose-limit","title":"Low Glucose Limit","text":"Sets the lower blood sugar limit for statistical determination of time below range (TBR).
"},{"location":"settings/configuration/preferences/statistics/#high-glucose-limit","title":"High Glucose Limit","text":"Sets the higher blood sugar limit for statistical determination of time above range (TAR)
"},{"location":"settings/configuration/preferences/statistics/#update-every-number-of-minutes","title":"Update every number of minutes","text":"This setting determines how often the statistics are updated on the home screen and, for advanced users, controls how often statistics are uploaded to Nightscout.
"},{"location":"settings/configuration/preferences/statistics/#display-loop-cycle-statistics","title":"Display Loop Cycle statistics","text":"This shows the average number of loops performed over the last 24 hours. Ideally, the number should be near 288, the maximum number of loops performed per day. Negative impacters include CPU speed, pump, and pod changes, connection issues, etc.
"},{"location":"settings/configuration/preferences/statistics/#override-hba1c-unit","title":"Override HbA1c unit","text":"By default, the estimated HbA1c statistic is given in percentage units. Enabling this toggle converts it to mmol/mol units.
"},{"location":"settings/configuration/preferences/targetsettings/","title":"OpenAPS Targets Settings","text":"High Temptarget Raises Sensitivity
Enable High Temptarget Raises Sensitivity
if you exercise frequently with high temp targets and are going low.
For more information, please read Autosens and Dynamic ISF/CR.
Normally, Trio assumes your sensitivity will be lower with higher blood sugar levels (resulting in greater amounts of insulin being delivered). During periods of exercise, some people may instead experience increased sensitivity to insulin. With this feature enabled, setting a high temporary target will decrease the autosens ratio utilized for ISF and basal adjustments, resulting in less insulin delivered overall. This scales with the temporary target set; higher and higher temp targets lead to lower and lower insulin delivery in the form of basal rates and corrections.
Note that this setting also disables Dynamic ISF when high temp targets are set.
"},{"location":"settings/configuration/preferences/targetsettings/#low-temptarget-lowers-sensitivity","title":"Low Temptarget Lowers Sensitivity","text":"For more information, please read Autosens and Dynamic ISF/CR.
When planning to have a heavy meal, you may want to set a low temporary target to avoid high blood sugar spikes. You may also want Trio to deliver more insulin during this time to prevent meals from spiking too high. Enabling this feature will increase your autosens.ratio, which is utilized for ISF and basal adjustments, resulting in greater insulin delivery. This will allow Trio to better deal with post-prandial spiking.
"},{"location":"settings/configuration/preferences/targetsettings/#sensitivity-raises-target","title":"Sensitivity Raises Target","text":"When performing autosens and insulin dosing calculations, Trio uses a target blood glucose that is by default the lower value in your target range.
Example: Bill has a target range of 5.5 to 6.0. His target blood glucose is thus 5.5. (Note that Bill's target is not exactly this value; Trio alters the target via autosens to improve its dosing)
When \"Sensitivity Raises Target\" is enabled, Trio will set a higher blood glucose target to base its insulin dosage calculations on if it detects sensitivity. This can be useful if you find Trio is too aggressive.
Advanced information: For more information, please read Autosens and Dynamic ISF/CR.
If the autosens.ratio is determined to be <1.0, this setting comes into effect and increases the blood glucose target by a small amount. See the OpenAPS code base for the exact formulas used.
"},{"location":"settings/configuration/preferences/targetsettings/#resistance-lowers-target","title":"Resistance Lowers Target","text":"See \"Sensitivity Raises Target\" for more information. When Trio detects high insulin resistance, it will set a lower blood glucose target for insulin dosage calculations, providing more insulin overall. This is useful for patients who experience uncontrollable highs.
Advanced information: For more information, please read Autosens and Dynamic ISF/CR.
If the autosens.ratio is determined to be >1.0, this setting comes into effect and decreases the blood glucose target by a small amount. See the OpenAPS code base for the exact formulas used.
"},{"location":"settings/configuration/preferences/targetsettings/#advanced-target-adjustments","title":"Advanced Target Adjustments","text":"Deprecated; Autosens has alternative functions for determining if insulin can be safely added when high.
"},{"location":"settings/configuration/preferences/targetsettings/#exercise-mode","title":"Exercise Mode","text":"Redundant; same as \"High Temptarget Raises Sensitivity\". Enabling either feature will provide the desired change to sensitivity with high temp targets.
"},{"location":"settings/configuration/preferences/targetsettings/#half-basal-exercise-target","title":"Half Basal Exercise Target","text":"This setting allows you to control the reduction in basal when using either \"Exercise Mode\" or \"High Temptarget Raises Sensitivity.\" The default is 160 mg/dL, meaning basal will be at 50% of your scheduled with a temporary target at 160, 60% at 140, and 75% at 120.
Advanced information: See openAPS code for more information.
The formula used is:
\\[ (halfBasalTarget - 100)/((halfBasalTarget - 100)+(targetBG-100)) \\]Example
Bill has a halfBasalTarget of 160 and has set a temporary target of 120 for his upcoming exercise. Therefore, only 75% of his scheduled basal rate will be provided:
\\[ (160 - 100)/((160 - 100) + (120 - 100)) = 0.75 \\]"},{"location":"settings/configuration/preferences/trio/","title":"Trio","text":""},{"location":"settings/configuration/preferences/trio/#glucose-units","title":"Glucose Units","text":"Allows you to toggle between mmol/L and mg/dL blood glucose units.
"},{"location":"settings/configuration/preferences/trio/#remote-control","title":"Remote Control","text":"Allows for remote control of Trio using Nightscout.
Caution
Duplicate Delivery Risk
Please read before using Remote Features
We want to highlight a very important risk before you get started.
For safety, always assume a previous remote carb/bolus was delivered, whether it shows in Nightscout or not.
For Example: 1. You send a 5-unit remote bolus. 2. The bolus is delivered to the Looper. 3. Nightscout has a temporary technical issue and doesn't show the bolus was received. 4. You are watching Nightscout and don\u2019t see a delivery, so you assume it failed. 5. You send another remote 5-unit bolus. 6. The second 5-unit bolus is delivered to the Looper (10 Units total).
You can see the danger of sending duplicate bolus/carbs, so be careful. If a remote bolus/carb entry doesn\u2019t show in Nightscout/Caregiver, judge whether enough time has passed to try again.
To use, navigate to your connected Nightscout instance. Click the lock icon at the top right and enter your API secret. Next, click the now visible \"+\" sign at the top right. A \"Log a Treatment\" menu will open up.
To enter carbs, select the \"carb correction\" event type. Fill in the required blanks and click \"Submit Form\". Trio will read any carb entries in Nightscout and adjust insulin delivery as configured.
To configure loop status, pump, or to bolus:
remote
(Before Trio-main v0.1.0 it was freeaps-x-remote
instead)In additional notes, state one of the following options:
To bolus, enter bolus:(amount)
(ex: bolus:0.5
).
pump:suspend
or pump:resume
. looping:true
or looping:false
tempbasal:(rate),(minutes)
(ex: tempbasal:0,60
to set temporary basal rate at 0 U/hr for 60 minutes)Note
Remote configurations with announcement-type events can only be performed every 10 minutes.
"},{"location":"settings/configuration/preferences/trio/#recommended-bolus-percentage","title":"Recommended Bolus Percentage","text":"Recommended bolus percentage is a safety feature built into Trio. By default, Trio first calculates an \"insulin recommended\" value when bolusing for carbs, which is the full dosage. That dosage is multiplied by your Recommended Bolus Percentage
to display your suggested insulin dose. Trio then delivers the remaining insulin via SMBs as the blood sugar starts to rise.
Recommended Bolus Percentage
allows you to alter the amount initially delivered. By default (70), 70% of the required meal bolus is delivered before the meal. You can increase or decrease this to alter the insulin delivered prior to the meal.
Note
A manual bolus uses the Eventual BG
for glucose prediction, whereas the insulinReg
for SMBs uses the minPredBG
(typically lower than Eventual BG).
After entering carbs, a mealtime bolus will not be suggested or delivered.
"},{"location":"settings/devices/cgm/","title":"Compatible CGM","text":"CGM selection includes the following:
While using Nightscout as a CGM is an option, it should be avoided if possible because it will not keep Trio running in the background like other CGM options. You will have to open Trio manually to make it run loop cycles.
"},{"location":"settings/devices/cgm/#xdrip-xdrip4ios","title":"xDrip (xDrip4iOS)","text":"To use xDrip4iOS as a CGM source, you must build it yourself with the same Apple Developer account you used to build your Trio app. You cannot use Shuggah or a version distributed by someone else's TestFlight. Please see the following for instructions on how to build xDrip4iOS yourself: link
However, if you are using Dexcom G6 or ONE with xDrip4iOS, you can choose the Dexcom G6 option in Trio rather than xDrip4iOS, and Trio will intercept the glucose readings even if you're using Shuggah or someone else's TestFlight of xDrip4iOS.
"},{"location":"settings/devices/cgm/#dexcom-g5g6-and-one","title":"Dexcom G5/G6 (and ONE)","text":"Trio can intercept glucose readings between the transmitter and the Dexcom app. If you are using a Dexcom G5, G6, or ONE sensor, tap Configuration CGM to enter your transmitter's 6-digit ID. Dexcom Share Credentials are not necessary. When switching transmitters, you must delete your current transmitter from Trio by tapping Configuration CGM, scrolling down, and Delete CGM. Once you do this, you can add the new transmitter with its Transmitter ID.
"},{"location":"settings/devices/cgm/#dexcom-g7","title":"Dexcom G7","text":"Trio can intercept its glucose readings as long as the Dexcom G7 app is installed on the same phone. When a new G7 sensor is paired to the Dexcom G7 app, Trio will automatically start reading it.
"},{"location":"settings/devices/cgm/#glucose-simulator","title":"Glucose Simulator","text":"The Glucose Simulator adds artificial CGM readings to the screen so you can see how your readings might look in the app. When using this CGM option, you cannot manually influence the readings shown to reflect a desired glucose response. Actions taken by the Trio algorithm also do not affect the cgm readings in the Glucose Simulator. They are for visual purposes only. For this reason, using the Glucose Simulator will not help you understand how the algorithm influences blood sugars.
Warning
The Glucose Simulator should never be used in conjunction with a live pump connected to a person (or animal).
"},{"location":"settings/devices/cgm/#libre-transmitter","title":"Libre Transmitter","text":"This option pairs a compatible Libre CGM directly with Trio without using a separate app like xDrip4iOS or Glucose Direct.
"},{"location":"settings/devices/cgm/#supported-sensors","title":"Supported Sensors","text":"Until the providers of Glucose Direct add a Trio App Group to Glucose Direct, you cannot use this app with Trio. If that happens, then you must build it yourself with the same Apple Developer account you used to build your Trio app. You cannot use a version distributed by someone else's TestFlight.
"},{"location":"settings/devices/cgm/#medtronic-enlite","title":"Medtronic Enlite","text":"The Minimed Enlite CGM, available with the Medtronic 522/722, 523/723, and 554/754, wirelessly sends glucose readings to the pump. Trio can read the Medtronic CGM data directly from the pump using a RileyLink-compatible device.
"},{"location":"settings/devices/pump/","title":"Pump","text":"This section allows you to select your insulin delivery system. For more information on supported pumps, see the following: link. Older Omnipod and Medtronic devices require a Rileylink to translate communication between your phone's Bluetooth signals and the pump's radiocommunication.
During the setup, you will also be asked to choose your insulin type, which will determine your duration of insulin action (DIA) and peak activity time.
"},{"location":"settings/services/applehealth/","title":"Apple Health","text":"Info
Apple Health is optional
Enabling Apple Health allows Trio to write information on your blood sugar readings, insulin, and carbohydrates to Apple Health and read blood sugar readings in Apple Health. You will also need to give permission in iPhone Settings, Health, Data Access & Devices to write data to Apple Health. This is useful for those who like to analyze their data with TidePool, Cockpit, or Glooko.
"},{"location":"settings/services/fatprotein/","title":"Fat and Protein Conversion","text":"Highlights
Many individuals may experience slow blood sugar rise after fatty or high-protein meals. Enabling \"Convert Fat and Protein\" allows you to provide a bolus for fat and protein units (FPU). The bolus is delivered in segments over a selected period to avoid the gradual rise in blood sugar. This is similar to setting absorption time or eCarbs if coming from Loop or AndroidAPS, respectively. For more information, click to see the Omnicalculator.
Your current CR was likely compensating for some of the effects of protein and fat on blood sugar. If you choose to enable this setting, you will need to make your ICR less aggressive to prevent lows.
"},{"location":"settings/services/fatprotein/#conversion-settings","title":"Conversion Settings","text":""},{"location":"settings/services/fatprotein/#delay-in-minutes","title":"Delay In Minutes","text":"This controls how long before the system starts to bolus for the fat and protein spike. The default setting is 60 minutes.
"},{"location":"settings/services/fatprotein/#maximum-duration-in-hours","title":"Maximum Duration in Hours","text":"Limits how long the system can bolus for FPU. A default of 8 is recommended.
"},{"location":"settings/services/fatprotein/#interval-in-minutes","title":"Interval in Minutes","text":"The interval between each microbolus provided for fat and protein.
"},{"location":"settings/services/fatprotein/#override-with-a-factor-of","title":"Override With A Factor Of","text":"Controls the fraction of insulin required for the fat and protein entered. A default of 0.5 allows only half the insulin the system thinks you require, to be delivered. You can experiment with raising this number to one if you continue to see rises in your blood sugar.
"},{"location":"settings/services/nightscout/","title":"Visualization and Monitoring","text":"Highlights
Nightscout (NS) is an open-source, DIY project that allows real-time access to CGM data via a personal website, smartwatch viewers, or apps and widgets available for smartphones. Setting up a Nightscout web app is recommended to visualize your Trio closed loop.
Nightscout allows a user to upload CGM data from various sources to an online database and cloud computing service. The information is then processed and displayed visually as a graph. Plugins also allow more information to be shown about Trio.
Even if you don't choose to share your Nightscout site with another person, it will be helpful for you to visualize what the loop is doing and what it's been doing, plus generate helpful reports for understanding your data.
For help making a Nightscout account, please see the OpenAPS documentation.
"},{"location":"settings/services/nightscout/#trio-setup","title":"Trio Setup","text":"To enable your nightscout connection, input your Nightscout URL, including the https://
and your API_SECRET
. Select Allow uploads
so Trio can share its predictions and settings with Nightscout.
Allows configuration of Trio notifications. Adjust based on your preferences.
Notifications can be enabled/disabled by toggling Allow Notifications
on/off in iPhone Settings > Notifications > Trio
.
This will add your current glucose on top of your Trio icon.
"},{"location":"settings/services/notifications/#always-notify-glucose","title":"Always Notify Glucose","text":"A notification will be triggered every time your glucose is updated in Trio.
"},{"location":"settings/services/notifications/#always-play-alert-sound","title":"Always play alert sound","text":"This will cause a sound to be triggered by every Trio notification.
"},{"location":"settings/services/notifications/#also-add-source-info","title":"Also add source info","text":"The source of the glucose reading will be added to the notification.
"},{"location":"settings/services/notifications/#low","title":"Low","text":"Set this to the highest value you want a low glucose notification to be triggered at.
"},{"location":"settings/services/notifications/#high","title":"High","text":"Set this to the lowest value you want a high glucose notification to be triggered at.
"},{"location":"settings/services/notifications/#carbs-required-threshold","title":"Carbs Required Threshold","text":"Trio may predict a low blood sugar event and recommend consuming a suggested amount of carbs. Carbs Required Threshold
determines the minimum amount of carbs required before Trio sends a notification.
Work-In-Progress
PLEASE NOTE THIS DOCUMENTATION IS STILL BEING WRITTEN BY OUR AWESOME COMMUNITY. UNTIL IT IS FINISHED, PLEASE DO NOT SET UP YOUR TRIO BASED ON THIS DOCUMENTATION ALONE. CONTACT THE COMMUNITY ON DISCORD OR FACEBOOK TO MAKE SURE YOU GET IT RIGHT AND STAY SAFE
"},{"location":"#what-is-trio","title":"What is Trio?","text":"Trio is an automated insulin delivery system for iOS based on the OpenAPS algorithm with adaptations for Trio.
The project started as Ivan Valkou's FreeAPS X implementation of the OpenAPS algorithm for iPhone and later forked and rebranded as iAPS. Since then, many developers have contributed substantial work, leading to a range of new features and enhancements.
Following the release of version 3.0.0, the project's direction significantly changed due to differing views on development, open source, and peer review. This led to the separation from the iAPS repository and the birth of Trio as a distinct entity. This transition marks the project's new phase, symbolizing its evolution and the collaborative development's dynamic nature.
Trio continues to leverage a variety of frameworks from the DIY looping community and remains at the forefront of DIY diabetes management solutions, constantly evolving with valuable contributions from its community.
Before starting with Trio, you should evaluate all your closed-loop options, including:
Warning
Trio is a DIY, open-source community project. It has not been evaluated by any regulatory agency and is for use at your own risk.
"},{"location":"#getting-started","title":"Getting Started","text":"Before starting with Trio, you should understand carb ratio (CR), insulin sensitivity factor (ISF), and basal rates. If you have read the documentation and still require help identifying your settings, please seek advice from your healthcare provider.
To use Trio, you are required to build the application from the source code. This does not require substantial technical know-how but is a time-consuming process. You may need several sessions to complete your first build.
Upon installation, you will need to configure your settings appropriately. By default Trio acts no differently than your pump, with the exception that it may recommend temporary basals from time to time. The magic happens by turning on \"Closed Loop\", enabling Super Micro Bolus (SMB) features, and turning on dynamic features.
In general, these are the first three settings you will want to configure as you gain confidence in the app and your settings:
If you are considering a transition from another closed loop system, please read this section first.
"},{"location":"#contribution","title":"Contribution","text":"Trio is built by a volunteer community. If you are interested in helping as a programmer, you can contribute to the Trio or OpenAPS code base. Trio is mostly written in SwiftUI, and the OpenAPS algorithm is written in JS.
You can also provide support in online support groups by helping users adjust their settings and troubleshoot common errors.
"},{"location":"Analyze/EvaluateBasal/","title":"EvaluateBasal","text":""},{"location":"Analyze/EvaluateBasal/#evaluate-basal","title":"Evaluate Basal","text":"Not a Medical Advice
This is not medical advice. Understanding the changes you are making is important, and always be sure to exercise caution. When in doubt, consult your diabetes care team for settings guidance.
"},{"location":"Analyze/EvaluateBasal/#before-adjusting-basal-rates","title":"Before Adjusting Basal Rates","text":"Consider CR and ISF First
Are you in open loop?
Caution
Until you understand how the Trio algorithm works, you should only make basal adjustments after basal testing in an open loop.
Is this a one-time event, or does it happen consistently over multiple days? Make sure it happens twice at the same time of day before making any adjustments.
Tip
A general rule of thumb is to adjust the basal rate 1 hour before the CGM shows a change in glucose levels that you want to correct. This is determined by the approximate peak time of rapid-acting insulin.
Example
This person noticed an increase in their average CGM readings starting around 1:00 AM. They were in open loop and had no late-night snacks so that they could rule out CR and ISF as factors. Because the rise began at 1:00 AM, they should increase their basal rate at 12:00 AM.
"},{"location":"Analyze/EvaluateBasal/#nightscout","title":"Nightscout","text":"Nightscout (NS) is a valuable resource that provides detailed information for analyzing your settings. Nightscout reports and Loopalyzer can be great tools for understanding your data.
"},{"location":"Analyze/EvaluateBasal/#build-nightscout","title":"Build Nightscout","text":"Instructions to build Nightscout
"},{"location":"Analyze/EvaluateBasal/#using-nightscout-for-basal-adjustments","title":"Using Nightscout for Basal Adjustments","text":"How to use Loopalyzer
"},{"location":"Analyze/EvaluateCR/","title":"EvaluateCR","text":""},{"location":"Analyze/EvaluateCR/#evaluate-cr","title":"Evaluate CR","text":"Not a Medical Advice
This is not medical advice. It is important to understand your changes and always exercise caution. When in doubt, consult your diabetes care team for settings guidance.
"},{"location":"Analyze/EvaluateCR/#before-adjusting-cr","title":"Before Adjusting CR","text":"With Trio, there is a reduced requirement for precise carb entries, although some precision will still improve outcomes. Some users prefer overestimating carb entries and giving a smaller percentage of the upfront bolus. Note: If you overestimate the carb entry and bolus for 100% upfront, the algorithm is limited in its ability to only suspend insulin as a means to prevent hypoglycemia following a meal.
If you have been giving 100% of the needed bolus for meals, it might be best to try a smaller percentage upfront rather than adjusting your CR.
"},{"location":"Analyze/EvaluateCR/#nightscout","title":"Nightscout","text":"Nightscout (NS) is a valuable resource that provides detailed information for analyzing your settings. Nightscout reports and Loopalyzer can be great tools for understanding your data.
"},{"location":"Analyze/EvaluateCR/#build-nightscout","title":"Build Nightscout","text":"Instructions to build Nightscout
"},{"location":"Analyze/EvaluateCR/#how-to-use-nightscout-for-cr-adjustments","title":"How to Use Nightscout for CR Adjustments","text":"How to use Loopalyzer
Nightscout reports can provide crucial information to observe how fast the carbs decay. Open the day-to-day report in Nightscount and check the COB box and IOB box. You will see COB as orange \u201ctriangles.\u201d If they decay too soon (in less than 2 hours or so, depending on the type and size of the meal), the carbs were either underestimated, CR could be too high a number, or ISF could be too low (carb decay is related to the fraction of CR/ISF) If you carbs take too long to decay, your insulin to carb ratio may be too strong. This can get complicated if meals overlap, but it is still possible. You may want to utilize the day-to-day report when that situation occurs.
If the carb absorption observed by the algorithm is too slow, COB will eventually be cut down. This presents as a vertical drop in COB in the day-to-day report. This helps avoid overdosing on overestimated or not-eaten carbs or if physical activity delays digestion or mutes the BG rise.
"},{"location":"Configuration/Configure/","title":"Device Configuration","text":"This section covers the first two sections of Trio settings: Closed Loop and Devices
"},{"location":"Configuration/Configure/#closed-loop","title":"Closed Loop","text":"Closed loop is turned off by default. This means Trio cannot make adjustments autonomously. Until you enable closed loop, the system relies on your approval of its actions.
"},{"location":"Configuration/Configure/#when-should-i-close-the-loop","title":"When Should I Close the Loop?","text":"Closed loop allows the system to make insulin adjustments automatically. Your goal for looping is to enable this setting to reduce the time spent managing your diabetes. However, entering closed loop too early can make it difficult for new loopers wanting to optimize their application settings. If this is your first time looping, this setting should remain disabled until your profile settings (CR, ISF, basal rates) are correctly set. You should monitor Trio's predictions and suggestions to see if they are appropriate for you. Please look at the corresponding CR, ISF, and basal rates sections for more information on their adjustment.
"},{"location":"Configuration/Configure/#settings","title":"Settings","text":"I've been using Loop. Can I copy my settings?
No. Users coming from Loop usually adjust their ISF and CR settings to compensate for fluctuations in insulin needs throughout the day. When using those settings for Trio, the algorithm also adjusts to compensate for the fluctuations, which may result in over- or under-dosing. Please review the steps of monitoring Trio predictions and change your settings accordingly. It would help if you also read the section on Coming from Other AID Systems.
Tip
Remember that everyone's diabetes is different, and there is no one-size-fits-all, so take the time to optimize your settings for the Oref algorithm.
"},{"location":"Configuration/Devices/","title":"Devices","text":"Adding devices to Trio is easy. You can only have one pump and one CGM active simultaneously. If you want to switch to another pump or CGM, delete the current device first. When you select a device, you will be guided through its setup with an on-screen guide.
"},{"location":"Configuration/Devices/#pump","title":"Pump","text":"This section asks you to select your insulin delivery system. For more information on supported pumps, you can find them under Compatible Pumps. Omnipod Eros and older Medtronic devices don't support Bluetooth. These devices require a Rileylink, OrangeLink, or EmaLink to translate communication between your phone's Bluetooth signals and the pump's radio communication signals.
During pump setup, you will be asked to choose your insulin type. This will determine your duration of insulin action and peak action time. These settings can be changed later, though it is not recommended."},{"location":"Configuration/Devices/#cgm","title":"CGM","text":"
This section asks you to choose your glucose data source. Most options are self-explanatory. For more information on supported CGMs, please visit Compatible CGMs.
"},{"location":"Configuration/Devices/#changing-transmitter-on-dexcom-g6","title":"Changing transmitter on Dexcom G6","text":"If you are using a Dexcom G6 sensor, you must remember to change your transmitter ID in the Trio app whenever you change transmitters.
"},{"location":"Configuration/Devices/#changing-dexcom-g6-or-g7-sensor","title":"Changing Dexcom G6 or G7 sensor","text":"Change the sensor through the Dexcom G6 or G7 app. Trio will automatically pick up the reading; you don't need to do anything else.
"},{"location":"Configuration/Devices/#xdrip-as-bg-source","title":"xDrip as BG source","text":"xDrip is not recommended with the Trio app, as native connections to CGM are more stable.
"},{"location":"Configuration/Devices/#watch","title":"Watch","text":"This section asks you to add a watch to Trio. Apple Watch and some Garmin watches are compatible. On an Apple Watch, you can add carbs and boluses, set a temporary target, and show BG, IOB, COB, etc. Garmin watches only display data and will not let you interact by adding carbs or insulin.
"},{"location":"Configuration/transition-qa/","title":"Transition from other closed-loop solutions","text":"If you've been using other closed-loop solutions, it's essential to understand the differences between the one you're used to and Trio.
In this section of the documentation, we'll explain the differences from a user perspective.
"},{"location":"Configuration/transition-qa/#coming-from-androidaps","title":"Coming From AndroidAPS","text":"AndroidAPS and Trio are based on the same algorithm (Oref) and base system (Artificial Pancreas System, APS). While there are several differences between AndroidAPS and Trio, the main algorithm is the same, meaning you can expect Trio to behave the same way AndroidAPS does generally.
Benefits of AndroidAPSTake some time to read the docs and fine-tune your settings. Once your settings are in order, consider switching to Trio.
"},{"location":"Configuration/transition-qa/#coming-from-ios-loop","title":"Coming From iOS Loop","text":"iOS Loop uses different algorithms, meaning it has a different approach than Trio. If you're coming from iOS Loop, you must change how you think. Please read that statement again three times, as it is crucial.
Benefits of LoopYou should consider switching to Trio if you've been using Loop for a while and have issues that Loop can't solve even after tweaking and re-tweaking your settings and profile."},{"location":"Configuration/transition-qa/#common-reasons-users-switch-from-loop-and-how-trio-addresses-them","title":"Common Reasons Users Switch from Loop and How Trio Addresses Them","text":"Incorrect or missing carb entries
Trio has a feature called Unannounced Meals (UAM). With this option enabled and properly configured, Trio will react to rising BG by giving insulin through a Super Micro Bolus (SMB) even if no carbohydrates are registered. UAM helps in two scenarios: forgetting to add carbohydrates for a meal and entering carbohydrates but not the correct amount.
Lots of manual corrections and \"fake carbsWith UAM and SMB active and properly configured, Trio will make any necessary corrections. There is no need to add \"fake carbs\" to make Trio give insulin, as many Loop users are used to.
Persistent highs because of variations in Insulin Sensitivity Factor (ISF) and Insulin-to-Carbohydrate Ratio (CR)Many people with diabetes need more insulin as their BG rises. Because Loop uses constant, pre-set ISF and CR values; it cannot address the unexpected change in sensitivity. With dynamic ISF and dynamic CR enabled and properly configured, Trio will give enough insulin to lower those highs without user interaction. More aggressive settings might lead to a low. With less aggressive settings, it will take Trio some time to get BG back in range. The key is to find the effective balance between conservative and aggressive to meet your needs.
Recurring/Rebound LowsProperly configured, Trio will not give you insulin if you don't need it. A typical issue with Loop is that it stops delivering insulin when BG falls and then gives insulin from the \"negative IOB\" once BG starts rising again. For some users, this is too much insulin and leads to recurring lows. Properly configured, Trio will not overcompensate for the rapid BG rise after a low.
Difficulties dealing with exerciseExercise is good for everyone, including people with diabetes. People with insulin-dependent diabetes often struggle with lows during exercise and highs afterward. Trio has a built-in exercise mode that will reduce basal and ISF whenever you set a higher temporary BG target. Trio also has Profile Presets that can help you get the right amount of insulin during exercise. Profiles can also adjust CR, unlike temporary targets.
Frequent, consistent variations in profile (Basal, ISF, CR)Illness, menstrual cycle, inactive days, active days, home office days, stressful events... In these situations, the overall insulin need differs from your usual need. Like Loop's Overrides, Trio has Profiles that can change basal rate, ISF, CR, and target BG within a pre-set timeframe. What Trio Profiles do that Loop Overrides do not do is provide the option to temporarily disable SMBs and apply adjustments to only basal, basal, and ISF, basal and CR, or all three.
If any of those sound familiar, consider a switch to Trio
Important
You must read extensively and adapt to a new approach to diabetes management.
What's All That Talk About Changing the Way I Think?
Loop is carb-centric. Loop users have been instructed to enter carbs, including future carbs (fat, protein), to ensure Loop gives the right amount of insulin. Some users also enter \"fake carbs\" to force Loop to give more insulin.
The Trio algorithm does not consider future carbs. What does this mean? The algorithm considers many factors, adds guardrails, and then acts by setting a temporary basal, administering a bolus (SMB), or both. Future carbs are not considered. The algorithm does not care about any future carbohydrates you might have entered.
Wait, what!? You have to consider carbohydrates, right? Why else would I add them? Trio considers carbohydrates only once absorbed and part of Carbohydrates On Board (COB).
"},{"location":"Configuration/transition-qa/#mealtime-strategy","title":"Mealtime Strategy","text":"So what's the mealtime strategy then?No
What are the alternatives?Most Trio users take a bit of all these approaches. They have an apple without entering anything into the app. Then, they pre-bolus for lunch because it is high in carbohydrates. Then, they use the calculator for dinner. This is all OK, and it comes down to the variation you accept for your BG.
"},{"location":"Configuration/transition-qa/#coming-from-iaps","title":"Coming From iAPS","text":""},{"location":"Configuration/transition-qa/#iaps-ver-233-or-earlier","title":"iAPS Ver 2.3.3 or Earlier","text":"Transitioning from iAPS 2.3.3 to Trio is currently straightforward. The screens and menus will be very familiar.
"},{"location":"Configuration/transition-qa/#settings","title":"Settings","text":"Your settings will need to be entered manually, but they can all be entered one-by-one from your iAPS settings without adjustment. If you have Nightscout, you can import your Pump Settings, Basal Profile, ISF, CR, Target Glucose, and previous CGM readings from the Nightscout Menu.
Import Settings With Nightscout
Nightscout
to open the Nightscout MenuConnect >
Connect to Nightscout
Glucose Units
in the Trio app match the units used in Nightscout (If they do not match, the import will fail)Preferences
to open the Preferences MenuGlucose Units
are correctNightscout
to open the Nightscout MenuImport settings
Dynamic Settings
Because Trio is a separate app, your historical data from iAPS will not transfer. It is recommended that you wait 7 days before you enable dynamic settings. In the meantime, you may notice some adjustments made by autosens.
"},{"location":"Configuration/transition-qa/#iaps-ver-30-or-later","title":"iAPS ver 3.0 or Later","text":""},{"location":"Configuration/transition-qa/#settings_1","title":"Settings","text":"As with iAPS ver 2.3.3, your settings must be entered manually and/or transferred from Nightscout. It is also recommended that you wait 7 days before enabling dynamic settings. In the meantime, you may notice some adjustments made by autosens.
"},{"location":"Configuration/transition-qa/#other-differences","title":"Other Differences","text":"Trio was forked from iAPS ver 2.3.3. If you used iAPS prior to February 2024, you may recognize the main screen. As the Trio app develops, the screen and menus will diverge substantially from iAPS 2.3.3 and 3.0+. For now, the focus has been on the code behind the scenes. For a comprehensive list of all changes and updates made to create Trio, please view the PR that merged all the foundational, developmental work into the main version used today.
"},{"location":"Configuration/transition-qa/#coming-from-commercial-closed-loop-systems","title":"Coming From Commercial Closed-Loop Systems","text":"Are you using a commercial closed-loop system like Insulet's Omnipod 5, Tandem's Control IQ, Medtronic's 780G, etc.? If you're happy, please stay; if you're not getting the desired results, take the time to read through the Coming From iOS Loop chapter to see the main issues Trio solves.
I Want to Try Trio. How Do I Proceed?
If you have any questions, feel free to reach out on Discord or Facebook. But please read the docs first.
"},{"location":"Configuration/transition-qa/#watch-the-loop-and-learn-videos-on-trio-previously-referred-to-as-iaps","title":"Watch the Loop and Learn Videos on Trio (Previously Referred to as \"iAPS\"):","text":"Trio is an open-source artificial pancreas system based on the OpenAPS (Oref0) algorithm. Using your entered settings, carbohydrates, and historical data, it aims to automate insulin delivery to reduce the time spent managing your diabetes. Before starting with Trio, you should consider alternative commercial options such as the Tandem Control-IQ and Omnipod 5 or other open-source applications like Loop and AndroidAPS.
Important
Trio is not approved by any healthcare authority. You build and run this system at your own risk.
"},{"location":"Getting-Started/Overview/#getting-started","title":"Getting Started","text":"Before starting with Trio, you should understand CR, ISF, and Basal Rates.
If you do not understand the terminology, please read the appropriate documentation here:
Carb Ratio (CR)
Insulin Sensitivity Factor (ISF)
Basal Rates
If you require help defining and determining those settings, please seek assistance from your diabetes healthcare team.
To use Trio, you are required to build the application from the source code. This does not require substantial technical know-how but is a time-consuming process. You may need to carry this out through several sessions on your first attempt.
Upon installation, you will need to configure your settings appropriately. For step-by-step instructions on using the app, follow the start-up guide.
Ready to Get Started? Head to the New User Guide to get started!
"},{"location":"Getting-Started/cgm/","title":"CGM","text":"This section allows you to choose your glucose data source. Most options are self-explanatory. For more information on compatible CGMs, please see the following: link
CGM selection includes the following: * Nightscout * xDrip * Dexcom G5/Dexcom G6/Dexcom ONE * Dexcom G7/Dexcom ONE+ * Glucose Simulator * Libre Transmitter * Glucose Direct * Medtronic Enlite
"},{"location":"Getting-Started/cgm/#nightscout","title":"Nightscout","text":"While using Nightscout as a CGM is an option, it should be avoided if possible because it does not keep Trio running in the background like other CGM options.
"},{"location":"Getting-Started/cgm/#xdrip-xdrip4ios","title":"xDrip (xDrip4iOS)","text":"To use xDrip4iOS as a cgm source, you must build it yourself with the same Apple Developer account you used to build your Trio app. You cannot use Shuggah or a version distributed by someone else's TestFlight. Please see the following for instructions on how to build xDrip4iOS yourself: link
However, if you are using Dexcom G6 or ONE with xDrip4iOS, you can choose the Dexcom G6 option in Trio rather than xDrip4iOS, and Trio will intercept the glucose readings even if you're using Shuggah or someone else's TestFlight of xDrip4iOS.
"},{"location":"Getting-Started/cgm/#dexcom-g5-g6-and-dexcom-one","title":"Dexcom G5, G6 and Dexcom ONE","text":"Trio can intercept glucose readings between the transmitter and the Dexcom app. If you are using a Dexcom G5, G6, or ONE sensor, tap Configuration CGM to enter your transmitter's 6-digit ID. Dexcom Share Credentials are not necessary. When you switch transmitters, you must delete your current transmitter from Trio by tapping Configuration CGM, scrolling down, and tapping Delete CGM. Once you do this, you can add the new transmitter with its Transmitter ID.
"},{"location":"Getting-Started/cgm/#dexcom-g7-and-dexcom-one","title":"Dexcom G7 and Dexcom ONE+","text":"As long as the Dexcom G7 or ONE+ app is installed on the same phone, Trio can intercept its glucose readings. When a new G7 or ONE+ sensor is paired to the Dexcom app, Trio will automatically start reading it.
"},{"location":"Getting-Started/cgm/#glucose-simulator","title":"Glucose Simulator","text":"This option should only be used when learning how to interact with the app. It should not be used to learn how the algorithm will respond, nor should it ever be used on a living being.
"},{"location":"Getting-Started/cgm/#libre-transmitter","title":"Libre Transmitter","text":"This option can be used to pair a compatible Libre cgm directly to Trio without going through a separate app like xDrip4iOS or Glucose Direct.
"},{"location":"Getting-Started/cgm/#glucose-direct","title":"Glucose Direct","text":"Until the providers of Glucose Direct add a Trio App Group to Glucose Direct, you cannot use this app with Trio. If that happens, then you must build it yourself with the same Apple Developer account you used to build your Trio app. You cannot use a version distributed by someone else's TestFlight.
"},{"location":"Getting-Started/cgm/#medtronic-enlite","title":"Medtronic Enlite","text":"The Minimed Enlite CGM, available with the Medtronic 522/722, 523/723, and 554/754, wirelessly sends glucose readings to the pump. Trio can read the Medtronic CGM data directly from the pump using a RileyLink-compatible device.
"},{"location":"Getting-Started/iphone/","title":"iPhones & Watches","text":""},{"location":"Getting-Started/iphone/#compatible-devices","title":"Compatible Devices","text":"Trio requires a relatively recent iPhone. The faster the phone, the better for the algorithm and battery life. You need a minimum version of the mobile operating software, called the phone's \"iOS\", to be installed on your iPhone. Trio is compatible with iPhones running on iOS 16 or newer.
"},{"location":"Getting-Started/iphone/#iphone","title":"iPhone","text":"These devices are compatible with iOS 16 and newer iOS.
Find Your iOS Version
Your phone's iOS version can be found under the phone Settings -> General -> About display. The iOS number is found on the Software Version
line. When you start looping, you should delay iOS updates until others have confirmed the software functions as normal on the newest update.
Warning
Using iOS Beta versions on the iPhone used for insulin delivery is never recommended.
Developer Mode - Mac Build
With iOS 16 and watchOS 9, Apple added a feature called \"Developer Mode.\" This feature must be enabled on your iPhone and Apple Watch to allow the installation of Trio. To learn more, click on this link: Apple Link about Developer Mode.
When you build Trio on your phone from Xcode directly, you must enable Developer Mode. This is also required in order to use the Trio app on a watch paired to your phone.
Developer Mode with iOS 16, watchOS 9
If you already have Trio, built with Xcode on a Mac, on your phone/watch, when you update to iOS 16/watchOS 9, you will be told that Trio requires Developer Mode to run.
You cannot run Trio on your phone (or watch) until you have enabled Developer Mode on the device(s).
"},{"location":"Getting-Started/iphone/#automatic-updates","title":"Automatic Updates","text":"Apple provides frequent updates to the iOS. These updates often include critical security patches and improved new features. Updates to iOS could make Trio stop working. Minor updates (like 16.5 -> 16.5.1) are usually not an issue. Major updates (like 17.x -> 18.x) often contain changes that Trio developers need to include in the app.
Turn Off Automatic Update Installs!
Make sure your phone's battery is functioning optimally. Your phone will become a critical health device, and you want it to keep working.
Low Power Mode
Some people have reported that Trio continues working in the background (phone locked) even in Low Power Mode. Others have reported that they still get red loops. You can experiment to determine if your phone/iOS/app is able to maintain green loops in low-power mode. Otherwise, the best practice is to avoid Low-Power Mode.
"},{"location":"Getting-Started/iphone/#apple-watch","title":"Apple Watch","text":"Trio has a companion app for the Apple Watch. The companion app shows the loop status and current insulin and carbs onboard. It also lets you add carbs, do a manual bolus, and set a temporary target. However, the companion app only serves as a remote control for the iPhone app; connection to the CGM and pump is still done through your iPhone, and you will have to bring it with you.
Apple Watch Series 3 and newer are supported. Newer versions of the Apple Watch have better battery life and support always-on display.
"},{"location":"Getting-Started/pump/","title":"Pumps","text":""},{"location":"Getting-Started/pump/#compatible-pumps","title":"Compatible Pumps","text":"There are three pumps compatible with Trio:
No other pumps work with Trio at this time, but other open-source closed-loop options, such as AAPS: Android Artificial Pancreas System and OpenAPS, support other pumps.
"},{"location":"Getting-Started/pump/#omnipod-pumps","title":"Omnipod Pumps","text":"Reminder and Disclaimer
The use of Omnipod pumps with Trio is not supported by Insulet, although they are aware it is happening. Do not call Insulet asking for help with your Trio build, setup, or operation. You are fully responsible for your use of Trio and do so at your own risk. Please read these documents and familiarize yourself with Trio before using the app.
"},{"location":"Getting-Started/pump/#omnipod-eros","title":"Omnipod Eros","text":"Eros pods were launched in 2013 and continue to be sold by Insulet. As of December 2023, they are no longer available in the US but are obtainable in other countries for now. Eros pods are also referred to as \"Omnipod System\", \"Omnipod Classic\", or \"Gen3\". The Eros uses radio waves for communication between the Pod and the PDM. The iPhone does not support these radio waves, so in order to use Eros with Trio, you need to get a separate device that can translate radio waves to Bluetooth. These devices are called RileyLink, EmaLink, etc.
"},{"location":"Getting-Started/pump/#omnipod-dash","title":"Omnipod DASH","text":"The DASH pods were launched in 2019 and use Bluetooth, so they don't require a RileyLink or similar device as they connect directly to the phone. DASH pods are easy to identify with their blue tab instead of the clear tab used on Eros and Omnipod 5.
Omnipod 5
Omnipod 5 pods are NOT compatible with Trio
"},{"location":"Getting-Started/pump/#medtronic-pumps","title":"Medtronic Pumps","text":"{align=center})
There are a number of Medtronic insulin pumps manufactured between 2006 \u2013 2012 which are Trio compatible. Compatibility has two requirements: (1) pump model and (2) firmware.
If you have one of the pumps listed above, you are good to go on Trio! Congrats!
"},{"location":"Getting-Started/pump/#medtronic-pump-model","title":"Medtronic Pump Model","text":"To determine your pump model, look at the backside of your pump. There should be a sticker on the underside of the pump. On the right-hand side of the sticker, it says REF MMT-XXXXXX
* MMT ---> Pump Manufacturer Model (MiniMed Medtronic)\n* 722 ---> Pump Model Number\n* NA ---> Pump Region (NA=North America, CA=Canada/Australia, WW=Worldwide)\n* S ---> Pump Color (S=Smoke, L=Clear/Lucite, B=Blue, P=Pink/Purple)\n
Some pumps may have an \u201cL\u201d or \u201cS\u201d or \"R\" before the pump region, e.g., a model number like MMT-722LNAS. This does not affect Trio compatibility.
"},{"location":"Getting-Started/pump/#medtronic-pump-firmware","title":"Medtronic Pump Firmware","text":"A pump\u2019s firmware is the internal software that runs your pump. Older Medtronic firmware allows Trio to act as a \u201cremote control\u201d to set temp basals and report back pump data. Newer firmware has disabled that \u201cremote control\u201d access and, therefore, cannot be used with these DIY closed-loop systems. There is currently no ability to downgrade a pump\u2019s firmware or replace it with older firmware. Before you buy a used pump, make sure you are getting one with compatible firmware. You cannot change the firmware on a Medtronic pump.
The firmware on all 515/715 and 522/722 model Medtronic pumps is compatible with Trio. You will only need to check the firmware version for 523/723 and 554/754 model Medtronic pumps.
To find your pump\u2019s firmware, you will need to power it on. If the pump has not been powered on for some time (i.e., it has been in storage without a battery for a while), it will run through a start-up count, and the firmware version will appear on the bottom right of the pump\u2019s screen. Don\u2019t turn away, as the version number will only be displayed for a little while before the screen moves on to other information displays.
If the pump has been active recently or has a reservoir installed, follow these steps:
Press the button on your pump.
Scroll down to the bottom of the status display by clicking the button.
Read the bottom line of the display.
If you are in the position of being able to shop around for different pump models, there are some slight differences between the Trio-compatible Medtronic pumps.
500 vs 700: The difference between the Medtronic 500 series and the 700 series pumps is the size of the insulin reservoirs. The 500 series pumps use a 180-unit reservoir, and the 700 series pumps use a 300-unit reservoir (or a smaller 180-unit reservoir, if you want).
x15/x22 vs x23/x54: The noteworthy differences between the x15 and x22 pumps versus the x23 and x54 series pumps are:
Additionally, because of the way Trio fetches information from the pump, the x23/x54 series of pumps are slightly better at conserving battery life through the use of the MySentry packets to collect information from the pump. x22 pumps do not use MySentry.
The x23/x54 series pumps are also faster at delivering boluses greater than 10 units. On an x23 pump, a 13-unit bolus takes 5:00 minutes to complete. On an x22 pump, a 13-unit bolus takes 8:40 minutes to complete.
Finding a compatible Medtronic pump is probably the most difficult part for most new Trio users. Our suggestions:
Talk to friends in the diabetic community.
Ask your endocrinologist.
Ask at a local JDRF chapter meeting if someone has an old backup pump they'd be willing to donate to you.
Join diabetic supply groups on Facebook, both for-trade and for-sale groups. Looping in a time of COVID is a group focused on DIY looping devices and supplies. Be sure to read their rules before joining.
Check Craigslist often and be willing to expand your search area to include larger cities.
Check out the HelpAround, NextDoor, OfferUp, and LetGo apps for pumps.
The most successful results appear to come from either one-on-one discussions with fellow diabetics/doctors or the use of apps (Craigslist, NextDoor, LetGo, HelpAround). If you are using Craigslist, you may use an app on your iPhone to make the searching easier. There are apps to search multiple cities for pre-set keywords and set up alerts.
"},{"location":"Getting-Started/pump/#safe-purchasing","title":"Safe Purchasing","text":"If you choose to purchase from a remote or unknown seller, here are some tips for safe purchasing:
Use PayPal and purchase using the \"Goods and Services\" payment option. This costs nothing for the buyer, but the seller will lose 2.95% of the sale to PayPal fees. PayPal offers some protection for both buyer and seller in the event of fraud.
Ask for photos of the pump. Check the serial number on the backside of the pump and verify it matches the pump's serial number shown in the display menu. Ask for a short video of the pump or at least a photo of the pump turned on so that you can see the pump's firmware and model number. Cracks and some wear on these pumps are expected. These pumps are not usually free of marks. Many people are successfully looping on pumps with cracks and rub marks, but you may want to ask if you are concerned about any you see in photos.
Beware if the bottom of the reservoir/motor sleeve has the drive support cap pushed out, as shown here. Those pumps will generally not work (or only work intermittently); however, some people have successfully repaired those pumps, as shown in that link. Just to make sure you know, it should be checked in advance.
Repairs to cracks or missing bits of plastic on battery cap area and reservoir caps are possible and not very difficult in most situations. You can read more about how to repair those here.
Ask for shipping that includes a tracking number. USPS Priority Mail's smallest box is a great option. It's only $10.40 domestically in the US and provides tracking. Ask the seller to add some packing protection around the pump, such as bubble wrap, to keep it safe during shipping. Ensure you get a tracking number within a reasonable period after you have paid.
Red flags that may indicate a scam:
Asking for payment through \"friends and family\" on PayPal, especially if you don't know the person or have any solid references for them. Paying in that way offers you no buyer protection. It's just like giving the seller cash, so you had better trust the seller.
Offering an \"almost new\" pump is a big red flag. These pumps were manufactured between 2006-2012. It is highly unlikely that a pump of that age is unused and sitting in shrink wrap. There are some out there, but they are scarce.
The seller is not able to provide new pictures of the pump when requested. Sure, they posted some photos with the ad, but what if they downloaded them from other people's ads? The seller should be able to furnish a couple of \"new\" photos at your request. A good one to ask for is the battery and reservoir tops so you can see their condition.
Medtronic will not typically sell pump supplies directly to customers who have yet to purchase a registered Medtronic pump. Ask your insurance about purchasing pump supplies through a durable medical equipment (DME) provider. Typically, the DME provider will coordinate with your insurance and doctor's office to get the necessary insurance approval and prescriptions for the supplies. If you are brand new to Medtronic infusion sites, ask for help from friends to try a variety of infusion sets before purchasing an entire 90-day supply of any type in particular.
"},{"location":"Setup/New-User-Setup/","title":"New User Setup","text":"Welcome to the New User Setup Guide! This guide walks you through how to set up your Trio app once you have installed it on your phone. If you still need to install the app, head to the Build Instructions and come back here when you are ready to start the setup process!
To set up your Trio app, touch the settings icon \u2699\ufe0f located on the bottom right of the main screen. Each step contains links to information on setting up each part of your Trio app. Use this as your home base to refer back to as you set up your app.
"},{"location":"Setup/New-User-Setup/#step-1-connect-your-devices","title":"Step 1: Connect your Devices","text":"The first step in setting up your Trio app is to connect your devices to the app.
"},{"location":"Setup/New-User-Setup/#verify-compatibility","title":"Verify Compatibility","text":"If you have not already, please verify that your devices are compatible:
Once you have verified that you are using compatible devices, you can connect them in the Trio app settings menu.
The next step is to enter your main profile settings: Basal, ISF, CR, and Target Glucose.
Important
If you use mg/dL
, you must first change the 'Glucose Units' before entering your profile settings.
This is found in the Trio Settings menu under 'Preferences'
The next step is to adjust the standard safety limits that will allow Trio to function effectively. There are many more settings that are not mentioned in this section. It is not advised to adjust those until you have familiarized yourself with the system by using it for a while.
Warning
DO NOT ENABLE DYNAMIC SETTINGS YET
It is essential that Trio have enough data to make sound recommendations. It is essential that your settings are tuned to be used in an Oref algorithm and you feel comfortable using the Trio app. It is not recommended to enable dynamic settings until ALL criteria below are met:
Closed loop functionality is turned off by default. This means Trio cannot make adjustments automatically. The system relies solely on you to make any recommended adjustments while Closed Loop is OFF. You can control your pump and bolus with the Trio app, but nothing can be done without your approval. This is often referred to as running an 'open loop.'
More on closing the loop
"},{"location":"Setup/New-User-Setup/#step-5-change-app-icon-optional","title":"Step 5: Change App Icon (Optional)","text":"Under \"App Icons\" in the Settings Menu, you can find various icons for your Trio app.
Have a special icon in mind? You can use your own custom icon by following the instructions under Customizations.
Congratulations! You've completed the New User Setup for Trio!
"},{"location":"operate/build/","title":"Build and Update","text":"Jump to... Build with GitHub | Mac-Xcode | Script Update with GitHub | Mac-Xcode Special Section on Trio App Group Special Section on Trio App Group
"},{"location":"operate/build/#build-trio-with-github","title":"Build Trio with GitHub","text":"The Trio repository contains instructions for building the Trio app using a browser and GitHub. More detailed instructions are also available in LoopDocs.
Tip
If using the LoopDocs instructions you need the important information below to build Trio instead of Loop
Every app you build will use the same 6 Secrets.
Trio App Group
for Trio, see Create the Trio App Group
Trio App Group
to these identifiers:Trio
Trio Watch
Trio WatchKit Extension
App Store Connect
, the Bundle ID
for Trio will be: org.nightscout.TEAMID.trio
Trio App Group
","text":"If you already have a Trio App Group
Trio App Group
was created from a Mac with Xcode, you may choose to edit the Description to make the NAME matchIf you do not have a Trio App Group
:
.
is replaced with a space, the example for Trio is shown in detailTrio
at the beginning of each IDENTIFIER and the full NAME may be slightly differentOpen the App IDs Identifier page for your Apple Developer Account.
Click on the Trio
Identifier and assign the Trio App Group
to the Identifier - see graphic below.
Repeat this for the other 2 identifiers that need to have an App Group assigned: Trio Watch
and Trio WatchKit Extension
Follow the directions in LoopDocs, but use the Trio Bundle ID
App Store Connect
, the Bundle ID
for Trio will be: org.nightscout.TEAMID.trio
Follow the directions in LoopDocs but run the Create Certificates
action for the Trio fork.
Follow the directions in LoopDocs but run the Build Trio
action for the Trio fork.
The Trio build can be configured to display the branch name and commit ID as test notes in TestFlight. This is an optional step, which can be especially useful if building the dev
branch.
First, you must have already built Trio and have it available on Apple App Store Connect.
TestFlight
tabTest Details
section, type anything you wantAfter you have done this one-time step, each successive build will include the branch name and commit automatically.
You can add additional tests notes for any build if you desire.
Top of Page
"},{"location":"operate/build/#update-trio-with-github","title":"Update Trio with GitHub","text":"First, make sure any Apple License agreements have been accepted:
Second, make sure you have a valid Distributor certificate; if not, see Distribution Certificate:
If you built previously, before the App Group changed from Loop
to Trio
, you need to do this step. Then you can Continue Updating.
Trio App Group
Trio App Group
for the Identifiers (Trio, Trio Watch and Trio Watchkit Extension)Trio App Group
Open your fork at github.com/YOUR-USERNAME/Trio
with your GitHub username instead of YOUR-USERNAME
When you first build using GitHub, a Distribution Certificate is generated. It typically is valid for one year. You should get an email from Apple when you are within 30 days of that certificate expiring. When it expires, you can no longer build a new app. (Existing apps in TestFlight are not affected, they get the full 90 days.)
The directions to renew your Distribution Certificate are found in LoopDocs: Renew Certificate.
"},{"location":"operate/build/#build-trio_1","title":"Build Trio","text":"Select Actions: 4. Build Trio and wait about an hour for your updated app to appear in TestFlight.
Top of Page
"},{"location":"operate/build/#build-trio-with-xcode","title":"Build Trio with Xcode","text":"If you build Trio on your Mac using Xcode, the recommendation is to use the TrioBuildSelectScript to build your code.
"},{"location":"operate/build/#build-trio-with-script","title":"Build Trio with Script","text":"The TrioBuildSelectScript
is similar to the script used to build Loop. If you need it, extensive instructions for that script are provided at these links: LoopDocs: Build Select Script and Loop and Learn: Build Select Script.
The TrioBuildSelectScript
offers the choice to:
Build Trio
Build Related Apps
Run Maintenance Utilities
Exit Script
To execute the TrioBuildSelectScript
, open a terminal on your Mac and copy and paste the command below into the terminal. Then, read and follow the directions.
/bin/bash -c \"$(curl -fsSL \\\n https://raw.githubusercontent.com/loopandlearn/lnl-scripts/main/TrioBuildSelectScript.sh)\"\n
"},{"location":"operate/build/#build-trio_2","title":"Build Trio","text":"When you select Build Trio
, you will be provided with a choice of branches with information to guide your selection and URL for documentation. This script will then download a fresh copy of your selected branch and guide you through building with Xcode on your Mac.
The download is placed in your Downloads
folder in a directory called BuildTrio
. The downloaded clone is found in a folder with the branch name, date, and time encoded.
When you select Build Related Apps
, you will be provided with a choice of apps that users of Trio often use. Once you make your selection, the script will provide similar steps to download and build the selected app.
The choices are:
Build Loop Follow
Build xDrip4iOS
Build Glucose Direct
Return to Menu
When you select Run Maintenance Utilities
, you will be provided with a choice of utilities helpful for Mac builders.
The following options are offered:
Delete Old Downloads
Clean Derived Data
Xcode Cleanup (The Big One)
Clean Profiles
Return to Menu
For more information, refer to Loop and Learn: Maintenance Utitilites documentation.
"},{"location":"operate/build/#build-errors","title":"Build Errors","text":"If you encounter any build issues, please look at the LoopDocs Build errors page. Only some things on that page are relevant for building Trio, but many potential issues will likely be covered there. You will also get helpful advice about what info to provide if you need to ask for help. When you have identified the error message(s), you can use the search tool in LoopDocs to see if your error is mentioned.
If you need it, you are most likely to get help in one of these groups:
Important
LibreTransmitter is provided as part of Trio. Neither xDrip4iOS nor Glucose Direct are required to interact with your compatible Libre sensor using Trio.
Important
Until the providers of Glucose Direct add a Trio App Group to their app, you cannot use this app with Trio.
If you want to use xDrip4iOS as a CGM source via \u201cshared app group,\u201d you must also build that app from a source with the same developer ID used for building Trio. Scripts are available for these apps as well. All scripts follow the same download and build pattern and configure automatic signing files for you.
The download is placed in your Downloads
folder in a directory called BuildxDrip4iOS
or BuildGlucoseDirect
, respectively. The downloaded clone is found in a folder with the branch name, date, and time encoded.
These can be accessed using the TrioBuildSelectScript menu options mentioned above. Or you can run each script individually.
"},{"location":"operate/build/#xdrip4ios","title":"xDrip4iOS","text":"Important
You must build xDrip4iOS version 5.3.1 or newer to have access to the Trio App Group required to work with Trio.
/bin/bash -c \"$(curl -fsSL \\\n https://raw.githubusercontent.com/loopandlearn/lnl-scripts/main/BuildxDrip4iOS.sh)\"\n
"},{"location":"operate/build/#glucose-direct","title":"Glucose Direct","text":"Important
Until the providers of Glucose Direct add a Trio App Group
to their app, you cannot use this app with Trio.
/bin/bash -c \"$(curl -fsSL \\\n https://raw.githubusercontent.com/loopandlearn/lnl-scripts/main/BuildGlucoseDirect.sh)\"\n
"},{"location":"operate/build/#alternative-branch-for-trio","title":"Alternative Branch for Trio","text":"Sometimes, specific branches are offered for testing. Any desired branch can be cloned using the Build Trio
script. After the final quote of the script command, add a space, hyphen, space, and branch_name. An example is shown below: replace branch_name
with your desired branch. Note that specific branches like this are not deleted as part of the Delete Old Downloads
utility discussed in Maintenance Utilities.
/bin/bash -c \"$(curl -fsSL \\\n https://raw.githubusercontent.com/loopandlearn/lnl-scripts/main/BuildTrio.sh)\" - branch_name\n
Top of Page
"},{"location":"operate/build/#update-trio-with-xcode","title":"Update Trio with Xcode","text":"Because Trio uses submodules, there are actions you need to perform when updating that are easiest using the command line interface (CLI) in a terminal opened in the same folder as the Trio workspace.
If you prefer, you can use the Build Script to download and build a fresh copy.
This section tells you how to update the version you already have on your computer.
Open Xcode. If your Trio workspace is not already open, you can usually find it in the recent projects, as shown in the graphic below. You can also pull down the Xcode menu for File
, select Open Recent
, and find your workspace.
Once you have Xcode open with your previous build of Trio, the first thing to do is open a terminal. Here are two methods - choose one:
Behaviors
, Open Terminal
if you configured Xcode BehaviorsTrio
folder using Where is my DownloadAlways attempt to Update your Code first. Typically, your customizations can be left alone and git
will merge the new code without requiring any additional action on your part.
In the terminal, you will copy and paste this pair of commands to update your workspace and all your submodules.
git fetch\ngit pull --recurse\n
The first command git fetch
brings down any updates about the state of the Trio workspace repository from GitHub.
The second command git pull --recurse
does several things:
Fetching submodule XXXX
repeated for each submoduleThere can be errors in several places, for example:
error: Your local changes to the following files would be overwritten by merge:\n FreeAPS/folder/file.swift\nPlease commit your changes or stash them before you merge.\nAborting\n
The pull
command halts at this error and does not move on updating the submodules. You must first fix the Trio workspace files using Fix Trio Conflicts.
Updating
with the list of files changed.Already up to date
Submodule path 'ModuleName': checked out 'f11abde5e2eea2cbf7ac80f3f4bc4bc6e7f6de56'\n
If you see the word error
or conflict
on the output, similar to the following, head over to Fix Submodule Conflicts.
error: Your local changes to the following files would be overwritten by checkout:\n SubModuleName/folder/file.swift\nPlease commit your changes or stash them before you switch branches.\nAborting\nfatal: Unable to checkout 'f11abde5e2eea2cbf7ac80f3f4bc4bc6e7f6de56' in submodule path 'SubModuleName'\n
If you saw no errors, you are ready to build.
"},{"location":"operate/build/#fix-trio-conflicts","title":"Fix Trio Conflicts","text":"If you have customizations in the Trio code (in the workspace) that cause a conflict when you pull
, it is best to delete those and start fresh. (Expert users know how to handle this, these directions are for novices):
git reset --hard\ngit clean -fd\ngit pull\n
You should see the words: Your branch is up to date with origin/main
(or dev
or other branch if you are not running main
.)
Now you need to continue to update the submodules with this command:
git submodule update\n
If there are no conflicts, you are ready to build the Trio app to your phone.
If there are conflicts similar to those shown in Submodule Update, fix them before building.
"},{"location":"operate/build/#fix-submodule-conflicts","title":"Fix Submodule Conflicts","text":"If you have customizations in the submodules that conflict with the update, you see a message fatal: Unable to checkout
the submodule. It is easiest to discard the customizations and reapply them manually after the update:
checkout
cd modulename
git reset --hard; git clean -fd
cd ..; git submodule update
If another submodule fails to checkout, repeat the steps for that modulename
.
If there are no errors, the Trio code is now updated.
If Xcode is not open, you can open it by typing xed .
in the Trio folder of your terminal window.
You can now build the updated Trio app to your phone.
"},{"location":"operate/build/#first-xcode-build-with-trio-app-group","title":"First Xcode Build with Trio App Group","text":"If you previously built using Xcode when the Loop App Group was used, you may need to let Xcode connect with Apple to update the new Trio App Group
. See instructions at Mac Build after App Group Change.
Top of Page
"},{"location":"operate/build/#xcode-behaviors","title":"Xcode Behaviors","text":"You can add Behaviors to your version of Xcode. These custom Behaviors only need to be added once.
You will create a shell script and add it to Xcode.
Open Terminal
will open a terminal in the workspace or project folder currently in use by XcodeOpen a new terminal:
Step 1: Create a folder to store your shell scripts by copying and pasting the next line (only do this one time or you will get an error message):
mkdir ~/scripts\n
Step 2: Copy and paste this command into your terminal to prepare the Open Terminal
shell script:
touch ~/scripts/open_terminal.sh; open -e ~/scripts/open_terminal.sh\n
Copy and paste the following lines into the editor and then save and close the file.
#!/bin/bash\nopen -a Terminal \"`pwd`\"\n
Step 3: Make the shell script executable; Copy and paste this command into your terminal:
chmod +x ~/scripts/*.sh\n
"},{"location":"operate/build/#add-behaviors-to-xcode","title":"Add Behaviors to Xcode","text":"Under the Xcode menu item, select Behaviors
, Edit Behaviors
Follow these steps (refer to the graphic below):
+
signCustom
section, you should see the New Behavior
row, enter Open Terminal
Run
, then Choose Script
marion
) and find the scripts
directoryopen-terminal.sh
and then select Save
The Behavior Open Terminal
is now ready for you to use, as shown in this graphic.
Return to Open Terminal.
"},{"location":"operate/build/#where-is-my-download","title":"Where is my Download","text":"If you have Xcode open, you can right-click on any file and select Show in Finder
. Then at the bottom of the Finder window, right-click on the Trio folder and select New Terminal at Folder
.
If you do not have Xcode open, you can use Finder to locate the directory where the BuildTrio
script saved the code. The directory is named after the branch with the date and time for the download:
~/Downloads/BuildTrio/Trio_main-220122-1352/Trio
~/Downloads/BuildTrio/Trio_dev-220108-1827/Trio
Use Finder to open a Terminal window at the Trio
directory by right-clicking on it and selecting New Terminal at Folder
.\u00a0
To open Xcode, type xed .
in the Terminal.
Return to Open Terminal.
"},{"location":"operate/build/#special-section-on-trio-app-group","title":"Special Section on Trio App Group","text":"Trio App Group
: return Top of PageTrio App Group
(or are not sure), please read this section for hints and helpInstructions for GitHub | Mac-Xcode
"},{"location":"operate/build/#browser-build-after-app-group-change","title":"Browser Build after App Group Change","text":"In order to build the Trio app with Browser Build, you must assign the Trio App Group
to 3 of the 4 identifiers for Trio.
Trio App Group
: List your App GroupsTrio App Group
if you don't have one: Register an App GroupReturn to Add Trio App Group to Identifiers
"},{"location":"operate/build/#mac-build-after-app-group-change","title":"Mac Build after App Group Change","text":"The first time you build Trio after the change from Loop App Group
to Trio App Group
, you are likely to see the build error in the first graphic.
You must be connected to the internet and must allow Xcode to connect to Apple to update your app group. Tap in the four locations (in order): (1) Folder Icon, (2) FreeAPS folder, (3) Signing & Capabilities and (4) Target: FreeAPS, as indicated in the graphic below. The app group may momentarily appear in red font, then will update to black font for the trio-app-group. Continue until you have examined three targets FreeAPS
, FreeAPSWatch
and FreeAPSWatch Watchkit Extension
. When those targets show the correct App Group, press the build symbol again.
Trio App Group
","text":"If you use xDrip4iOS or GlucoseDirect as your CGM for Trio, they need to support the same App Group
as Trio.
Trio App Group
Here are a few ways to customize the Trio code to suit your needs better. Please be very careful when editing any code.
"},{"location":"operate/customize/#bypass-authentication-for-bolusing","title":"Bypass Authentication for Bolusing","text":"Warning
Depending on your iPhone settings and model, you may have Face ID or Touch ID enabled. Those security features will also be used to authenticate bolus delivery in Trio. You can disable authentication (i.e., not require Face ID, Touch ID, or passcode for bolusing) through the following code customization.
Steps:
Edit line 28 of the file FreeAPS/Sources/Services/UnlockManager/UnlockManager.swift
Code before modification:
if context.canEvaluatePolicy(.deviceOwnerAuthentication, error: &error) {\n
Code after modification:
if false, context.canEvaluatePolicy(.deviceOwnerAuthentication, error: &error) {\n
"},{"location":"operate/customize/#omnipod-add-extra-insulin-on-insertion","title":"Omnipod: Add Extra Insulin on Insertion","text":"The default value is 0.0 U of extra insulin. If you use this customization, start with a small number and work your way up. If you come from manual podding and routinely gave yourself an extra bolus with your PDM at pod change time, you may not need nearly as much with Trio - be conservative.
It is important to know
Trio does not include the amount of insulin in the prime or insertion steps in your IOB.
Eros Pods and Dash Pods have different locations for this change. Some change both files just in case, but that is unnecessary if you're only using one type of pod.
"},{"location":"operate/customize/#dash","title":"Dash","text":"Edit line 82 of the file OmniBLE/OmniBLE/OmnipodCommon/Pod.swift
Code before modification:
public static let cannulaInsertionUnitsExtra = 0.0\n
Code after modification adding 0.25U of insulin:
public static let cannulaInsertionUnitsExtra = 0.25\n
"},{"location":"operate/customize/#eros","title":"Eros","text":"Edit line 84 of the file OmniKit/OmniKit/OmnipodCommon/Pod.swift
Code before modification:
public static let cannulaInsertionUnitsExtra = 0.0\n
Code after modification adding 0.25U of insulin:
public static let cannulaInsertionUnitsExtra = 0.25\n
"},{"location":"operate/customize/#add-custom-icon","title":"Add Custom Icon","text":"There are several different app icon options built into Trio, but you can still add your own if you'd like. You'll need to convert the image you want into a PNG file with a resolution of 1024x1024. For this guide, we'll use this icon and call it ivan.
Go into the folder FreeAPS/Resources/Assets.xcassets/
and create a new folder called ivan.appiconset
Add two copies of the 1024x1024 PNG file into this folder, called ivan.png
and ivan 1.png
Add a file called Contents.json
with the following contents:
{\n \"images\" : [\n {\n \"filename\" : \"ivan.png\",\n \"idiom\" : \"universal\",\n \"platform\" : \"ios\",\n \"size\" : \"1024x1024\"\n },\n {\n \"filename\" : \"ivan 1.png\",\n \"idiom\" : \"universal\",\n \"platform\" : \"watchos\",\n \"size\" : \"1024x1024\"\n }\n ],\n \"info\" : {\n \"author\" : \"xcode\",\n \"version\" : 1\n }\n}\n
Insert a new line after line 14 in the file FreeAPS/Sources/Models/Icons.swift
containing the following text: case ivan = \"ivan\"
...\n case loop = \"trioLoop\"\n var id: String { rawValue }\n}\n
...\n case loop = \"trioLoop\"\n case ivan = \"ivan\"\n var id: String { rawValue }\n}\n
The main screen of Trio can be divided into three sections:
Status | Graphs & Statistics | Actions
"},{"location":"operate/interface/#status","title":"Status","text":"The Status section shows your current insulin on board (IOB), carbs on board (COB), blood glucose, pump status, and looping status. The looping indicator will be grey if no data is present. It will be green when it has been less than 5 minutes since a successful loop cycle. It will turn yellow if no loop cycle has been completed for over 5 minutes. If more than 10 minutes go by without a successful loop cycle, the loop circle will turn red. The section to the left of the loop circle shows you the approximate units of insulin left in your pump. If you're using Omnipod, 50+ U means more than 50 units of insulin are left. Below the insulin left, you will see your pump battery status if you're using a Medtronic pump and the days/hours left if you're using an Omnipod.
Tapping the top of the screen will bring up a History screen with information on changes implemented by the most recent loop cycle. Tapping the pump status will bring you to pump settings.
"},{"location":"operate/interface/#graphs-and-statistics","title":"Graphs and Statistics","text":"The middle of the screen graphs your current blood sugar data and inputted carbs overlaid with Trio's insulin delivery and blood sugar predictions.
Below the graph is the prediction line legend so you can determine the meaning of your prediction lines.
The zero temp (ZT) line predicts where your blood sugar would be if insulin delivery and carb absorption ceased. The IOB line predicts where blood sugar would be if insulin delivery was ceased and carb absorption was minimal. The unannounced meal (UAM) line predicts how long blood glucose will continue to rise, to dose insulin accordingly. The COB line predicts the effects of entered carbs on future blood glucose. For more information on prediction lines, see the OpenAPS documentation.
If enabled, statistics detailing your time in range, coefficient of variance (CV), and average glucose are displayed underneath these graphs. Tapping in this area allows you to change the time interval used to calculate these statistics.
"},{"location":"operate/interface/#actions","title":"Actions","text":"At the bottom of the screen, you have five action icons:
Meal Bolus The Meal Bolus option allows you to enter Carbs and bolus accordingly. If you have \"Fat And Protein Conversion\" enabled, you will also be provided the option to enter fat and protein content in grams. Temp Target The Temp Target icon allows you to set temporary blood glucose targets. The most common targets are a high target for exercise and a low target for meal preparation. Bolus The Bolus icon allows you to give manual correction boluses. Manually correcting is not recommended if you are using Trio's SMB and UAM features. Statistics The Statistics Icon shows your statistical data in the app. Settings The Settings icon allows you to access your Trio settings. The settings screen allows you to adjust your configuration. Please see [Configure](../settings/devices/pump.md) for more information on each configuration option."},{"location":"operate/temptarget/","title":"Temporary Targets","text":""},{"location":"operate/temptarget/#exercise","title":"Exercise","text":"Tips
Exercise can have immediate and long-term effects on glycemic control. Generally, individuals will find their blood sugar drops during intense exercise and continue to drop for 3-4 hours after. They may also experience increased insulin sensitivity for 24 hours after exercise.
Consuming enough slow-acting carbohydrates before and after your exercise session is important. Pack a snack in case you need a source of simple carbohydrates during your routine.
Trio has some quality-of-life features that make exercise easier while looping. When you plan to exercise, increase your target approximately 2 hours before your exercise. If you have SMB enabled, be sure that \"Allow SMB With High Temptarget\" is disabled. Finally, you can enable \"High Temptarget Raises Sensitivity\" to prevent Trio from providing too much insulin during exercise.
"},{"location":"operate/temptarget/#pre-meal","title":"Pre-Meal","text":"Tips
If you plan to eat soon, you may want Trio to provide you extra room to fill up on carbs. One way you can do this is by setting a temp target approximately 1 mmol/L or 18 mg/dL below your target, 1-2 hours prior to meals. You can also enable \"Low Temptarget Lowers Sensitivity\" to give yourself more insulin for the upcoming meal and to bring your blood sugar down faster to the pre-meal range.
"},{"location":"operate/troubleshoot/","title":"Common Issues","text":"Adapted from looptips
"},{"location":"operate/troubleshoot/#site-change-and-site-failures","title":"Site Change and Site Failures","text":"Tips
Pump site changes can negatively impact your immediate glycemic control. Different delivery sites' ability to absorb insulin varies, impacting your perceived insulin sensitivity. Trio should be able to accommodate this change by resetting its Autosens measurements (assuming \"Rewind Resets Autosens\" is on) and adapting as needed.
For Omnipod If you think you need more insulin primed in the new pod, consider customizing that line of code with these instructions.
"},{"location":"operate/troubleshoot/#site-failure","title":"Site Failure","text":"Pump failures can result from kinks or improper insertion of the cannula. As a result of a pump failure, Trio may assume that more insulin is on board the patient than what was delivered, leading to sustained highs even after the pump is replaced.
When you find out your pump has failed, immediately open loop to prevent Trio from trying to deliver more insulin. Upon your next pump installation, you can then close loop and be patient. Trio will wait for the calculated insulin on board to drop before delivering insulin.
"},{"location":"operate/troubleshoot/#low-treatment","title":"Low Treatment","text":"Tips
Low blood sugar events can happen from time to time, but you will typically not require as many carbs to treat your lows as opposed to MDI or using a pump. When you treat a low, you should enter the carbs consumed into the Trio system so its autotune functionality can make better choices on your ICR, ISF, and basal rates.
If you experience a roller coaster pattern of highs and lows after treatment, your insulin sensitivity factor (ISF) is most likely to blame. Consider making your insulin sensitivity less aggressive by 10% or reducing your adjustment factor by 0.1 increments.
"},{"location":"operate/troubleshoot/#rebound-lows","title":"Rebound Lows","text":"Tips
To avoid a second low, you can instruct Trio not to give any SMBs for a while after a low, giving your BG time to stabilize. Set up a Temporary Target preset that is a bit higher than your usual target (e.g., 7,5 mmol/L | 136 mg/dl). Ensure that Allow SMB With High Temptarget is disabled. Make the temporary target last for a while (e.g., 30-45 min).
Warning
Setting a temporary target is not the same as disconnecting the pump. Trio will still be able to give you insulin during the temporary target, but only by adjusting basal rates, resulting in a less aggressive treatment.
"},{"location":"operate/troubleshoot/#highs-after-meals","title":"Highs after meals","text":"Tip
It is normal for BG to rise after a meal. This happens to everyone, with or without diabetes. The key is to avoid very high BG levels and bring them back into range as soon as possible.
"},{"location":"operate/troubleshoot/#fast-rise","title":"Fast Rise","text":"Scenario: Your BG rises fast when eating and ends up too high.
If your BG rises fast and ends up too high, it is usually because the carbs were absorbed before the insulin peaked. If we rule out site issues, illness, etc, the logical approach is to ensure you get enough insulin ahead of the carbs. You can achieve this by increasing your pre-bolus timing for the meal. This gives the insulin time to absorb before the carbs kick in. You can find more information on the mealtime strategy page.
"},{"location":"operate/troubleshoot/#persistent-high-after-meals","title":"Persistent High After Meals","text":"Scenario: Your BG gets high after a meal and stays high for a long time. Trio gives you some SMBs, but not enough to bring you back down.
Trio calculates the amount of insulin needed to bring blood glucose back into range. Additional insulin is needed when blood glucose remains high after a meal, but Trio needs the correct settings to make those adjustments.
Scenario: Your BG rises and ends up too high after a meal, then falls and ends up too low.
In this scenario, you are not getting enough insulin upfront to deal with the carb absorption, but the total amount of insulin you're getting is too much - causing a low. If this is a repeating scenario, you should look into all of the following:
Please read through the chapters on Autosens and Dynamic settings.
"},{"location":"resources/citations/","title":"Resources","text":""},{"location":"resources/citations/#openaps-documentation","title":"OpenAPS Documentation","text":"The first place to start if you want to learn more about the underlying algorithm, is the extensive OpenAPS documentation. OpenAPS is the underlying algorithm that Trio implements to control blood sugar, with small modifications mostly pertaining to the Dynamic settings.
"},{"location":"resources/citations/#androidaps-documentation","title":"AndroidAPS Documentation","text":"AndroidAPS implements the same OpenAPS algorithm with dynamic enhancements and maintains an extensive documentation for new users. Recommend if you have additional questions, you skim through its documentation for your answer.
"},{"location":"resources/citations/#loop-documentation","title":"Loop Documentation","text":"Trio is not a fork of Loop. While their underlying algorithms are different, they share some parts of their code base. It is recommended that you take a quick glance in the Loop Docs for your issue, especially if it relates to pump usage and build errors. Many of these documents have been adapted from Loopdocs.
"},{"location":"resources/citations/#community-support-free-support","title":"Community Support (Free Support)","text":"There are many opportunities to find help with using Trio.
Many Healthcare Providers offer support in using DIY services. The following providers are not free and come with costs based on your needs and your insurance coverage.
Click on a language on the links below to turn on Google's automatic translation.
\u0639\u0631\u0628\u064a
\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438
\u010ce\u0161tina
Deutsch
Dansk
\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac
Espa\u00f1ol
\u65e5\u672c
Suomi
Fran\u00e7ais
\u05e2\u05d1\u05e8\u05d9\u05ea
Hrvatski
\u0939\u093f\u0902\u0926\u0940
Italiano
\ud55c\uad6d\uc5b4
Norsk
Nederlands
Polski
Portugu\u00eas
Rom\u00e2n\u0103
\u0420\u0443\u0441\u0441\u043a\u0438\u0439
Sloven\u010dina
Svenska
Turkish
\u4e2d\u6587\uff08\u7b80\u4f53)
\u4e2d\u6587\uff08\u7e41\u9ad4)
"},{"location":"resources/translate/#change-language","title":"Change Language","text":"To modify the language choice for the whole site, copy the line below, paste it into the URL, and then choose the desired language from the list above.
https://docs.diy-trio.org/resources/translate.html\n
OR
Use the Google Translation three-dot menu (\u2807
) and select Go to original URL \u2197
while on the Translation page.
Every website page gets automatically translated to the selected language as do links to other websites
The Google Translate Tool will appear at the top of each page
Automatic Translation
These links connect this site to the Google Translation service.
Once Google Translate has been turned on, clicking the language link above shows a Google Translate: Can't translate this page
error.
The graphic below shows the Google Translate Tool when maximized (default) for a browser and mobile display. The tool can be minimized by tapping on the up/down carets at the right of the tool. This is very useful if the tool obstructs part of the original screen. Additional options can be selected with the three-dot menu as shown in the graphic.
"},{"location":"settings/loop/","title":"Closed Loop","text":"Closed Loop is disabled by default. This means Trio cannot make adjustments autonomously. The system relies on your approval of its actions.
"},{"location":"settings/loop/#should-i-enable-it","title":"Should I Enable It?","text":"Closed Loop allows the system to make insulin adjustments automatically. Your end goal for looping is to enable this setting to reduce the time spent managing your diabetes. However, closing loop too early can make it difficult for new loopers wanting to optimize their ISF, CR, and basal settings. If this is your first time looping, it is recommended you keep this setting disabled initially and ensure your profile settings (CR, ISF, basal rates) are properly set. You should monitor Trio's predictions and suggestions and see if they are appropriate for you. See the corresponding sections on CR, ISF, and basal rates for more information on their adjustment.
Important
Remember that everyone's diabetes is different, and there is no one-size-fits-all, so take your time optimizing your settings.
"},{"location":"settings/configuration/autotune/","title":"Autotune","text":"Highlights
Autotune makes iterative adjustments to your profile settings (basal rates, ISF, and carb ratio) based on your last 24 hours of data. The adjustments made by Autotune are small, with a maximum of 10% change to the current CR and ISF or 20% change to the current basal rates per run, but they add up over days. Autotune is run nightly by default unless it is manually run by the user.
Autotune is designed to work over weeks to slowly improve the accuracy of your initially set ISF/CR/basal rates. The output of autotune formulas produces a ratio similar to that of autosens. The autosens max and min preferences also limit this ratio.
"},{"location":"settings/configuration/autotune/#how-does-it-work","title":"How does it work?","text":"Autotune is not Machine Learning. It is not AI. It is a statistical regression attempting to compare what happened over the last 24 hours with what profile settings are and adjusting the profile settings accordingly.
For basals, it divides the day into hour-long increments. It calculates the total deviations for that hour increment and what change in basal would be required to adjust those deviations to 0. Then, 20% of the change needed is applied to the three hours prior (because of insulin impact time). If increasing basal, it increases each of the 3-hour increments by the same amount. If the basal decreases proportionally, the biggest basal is reduced the most.
For ISF, it calculates the 50th percentile (median) deviation for the entire day and determines how much ISF would need to change to get that deviation to 0. It applies 10% of that as an adjustment to ISF.
For CR, it calculates the total deviations over all of the day's mealtimes, compares them to the deviations expected based on existing CR and the known amount of carbs entered, and applies 10% of that adjustment to CR.
"},{"location":"settings/configuration/autotune/#important-note-on-dynamic-settings","title":"Important note on Dynamic Settings","text":"Tip
Autotune results can be unreliable if dynamic settings are enabled.
Because Autotune uses Deviations to calculate basal variation, it has to calculate Deviations. It does this using a profile-based ISF value.
This means that if you enable Autotune but use dynamic functions within Trio, the algorithm will not use the ISF that was in operation when it ran in the past, and basal adjustments and ISF adjustments are likely to be incorrect.
It can also only run with a single daily ISF and CR, so it doesn't work for most people.
"},{"location":"settings/configuration/autotune/#how-does-it-differ-from-autosens","title":"How does it differ from Autosens?","text":"Autosens is designed to rapidly change your profile settings every loop cycle based on the last 8 or 24 hours of data. It accounts for biological changes to insulin sensitivity that occur throughout the day and night and changes from pump placement.
Autotune, by contrast, works on a longer time scale. It makes slow but sustained changes to your profile to improve the accuracy of your set baseline settings. It is run every 24 hours.
"},{"location":"settings/configuration/autotune/#should-i-enable-autotune","title":"Should I enable Autotune?","text":"If you believe your profile settings are accurate, you should keep autotune disabled; it may worsen control in specific scenarios, such as after extended periods of sickness.
If you decide to enable it, you should note that autotune is limited by autosens max and min ratios. You can alter these values to give autotune more flexibility, but you will also affect autosens, dynamic ISF, dynamic CR, and adjust basal.
Instead, it is best to review your settings in a few weeks, note the new autotune values, and change your profile settings to match them, giving autotune a new starting point.
"},{"location":"settings/configuration/basalprofile/","title":"Basal Profile","text":"Highlights
Basal profile consists of your scheduled basal rates, which determine how much insulin is being delivered at each hour of the day. It is important to understand that these settings are not taken verbatim when looping with Trio. Based on your current blood sugar reading, they are adjusted every loop cycle and replaced with temporary basal rates. Your set values are altered by autosens or autotune (if enabled) based on your historical data.
Your basal profile values should be near your true value. Protection limiters prevent Trio's autotune system from selecting the appropriate dose if the scheduled basal profile is wildly inaccurate. Basal profiles are also important for insulin on board (IOB) calculations. Trio treats your scheduled basal profile as the zero point when autotune is disabled. When autotune is enabled, it uses the autotuned basal rate instead of your scheduled basal rate. The calculated IOB increases if you receive additional insulin on top of your basal rates, either as boluses or high temporary basal rates. Likewise, if you receive low temporary basal rates for a set period, your IOB decreases, and can even become negative.
"},{"location":"settings/configuration/basalprofile/#settings","title":"Settings","text":"If you are coming from a pump, transferring basal profiles from your pump settings should be done with consideration and caution. They might not be entirely accurate for Trio. If you are going low or high while fasting, consider adjusting according to the instructions below.
There are three main ways of identifying and improving your basal profile values. The standard method is to test your basal by having a relaxing 4-6 hours without eating at least two hours before you begin the test. Does your blood sugar stay steady? Or do you climb and need a correction? Or do you go low and need to eat? Setting accurate basal rates is crucial for Trio success. They determine how much of the insulin delivered (from basal and bolus) is counted as insulin on board (IOB).
You can also monitor your IOB to determine if your basal profile is accurate. Consistently negative or positive IOB at certain times of day may suggest that these hours need to decrease or increase their basal rate, respectively.
If you have autotune enabled, you can review the day-to-day trend of how autotune is changing your basal profile. If autotune remains steady, you can change your scheduled values to the autotune values. This has two main benefits: 1. Autotune can start to alter your values again if it is being stopped by a safety limiter (autosens max/min) 2. You can have your values hard-coded in case Autotune's data is reset.
"},{"location":"settings/configuration/carbratios/","title":"Insulin Carbohydrate Ratio","text":"Highlights
CR refers to the amount of carbohydrates one unit of insulin is able to neutralize.
Example: Bill has a 1:10 CR (aka a CR of 10). If Bill has 20 carbs with lunch, he will need 2 U of rapid insulin to neutralize it.
CR is not changed as drastically as basal rates or ISF unless Dynamic CR is enabled. Your CR must be as accurate as possible for proper Trio function.
"},{"location":"settings/configuration/carbratios/#settings","title":"Settings","text":"It is safe to transfer your CR from your pump settings. However, your settings may not be accurate if you are experiencing high peaks with meals or lows three hours afterward. If you have SMB/UAM on and are experiencing sharp drops, you may also need to optimize your ISF.
There are two suggested methods of optimizing your CR. The standard way is a test meal experiment, which can be done while not looping. Have a meal with a known amount of carbohydrates and bolus according to your current CR. Monitor your blood sugar at the three-hour mark; did you go high, low, or end up where you started prior to the meal? If you end up high, you can make your CR more aggressive by DECREASING the value. If you were low, make your CR less aggressive by INCREASING the value. You may also look to increase or decrease your adjustment factor if you have dynamic CR on.
If you have autotune enabled, monitor the general trend in CR adjustment. When the autotune value stabilizes, evaluate the suggestion and change your scheduled value to the autotune value, allowing the system to continue making changes if it was being limited by a safety limiter.
"},{"location":"settings/configuration/insulinsensitivities/","title":"Insulin Sensitivity Factor","text":"Highlights
ISF, also called insulin correction factor (ICF), refers to the amount of blood glucose in mmol/L (or mg/dL, depending on your settings) one unit of insulin can neutralize.
Example: Bill has a 1:4 ISF (this is also written in shorthand as an ISF of 4 mmol/L/U (72 mg/dL/U)). This means 1 U of rapid insulin will bring Bill's sugar down by 4 mmol/L (72 mg/dL).
Like basal rates, ISF is not used verbatim by Trio but is modified over time as data on the patient is collected. Still, setting ISF as close to accurate as possible is important for Trio to function well.
"},{"location":"settings/configuration/insulinsensitivities/#settings","title":"Settings","text":"It is safe to transfer your ISF from your pump settings. Note that almost all issues when starting with Trio are a result of an improperly set ISF. If you find you have lows with corrections, or you have SMB/UAM on and the application provides too much insulin at any time, resulting in a rollercoaster pattern, your ISF is likely to blame.
There are a few ways you can work to adjust your ISF. The easiest method is simply bringing yourself to a higher glucose with a glucose tab or choosing a time when you are \"stuck\" higher than your target, then correcting based on your ISF. If you are higher than your target after 4 hours, make your ISF more aggressive by DECREASING the value. If you are lower than your target after 4 hours, make your ISF less aggressive by INCREASING the value.
You may also find Autotune helpful in identifying when to adjust your ISF and determine whether it is too high or low based on the trend in its changes. Look to changing your profile value to the autotune value when Autotune stabilizes to ensure safety limiters aren't preventing any additional needed change.
Warning
When using Autotune, it is important to turn OFF DynamicISF prior to enabling or running Autotune
"},{"location":"settings/configuration/pumpsettings/","title":"Pump Settings","text":"Highlights
These are safety limiters for Trio. Note that Trio will prevent you from entering anything higher than these limits, but it won't alert or notify you about it.
"},{"location":"settings/configuration/pumpsettings/#max-basal","title":"Max Basal","text":"This is the highest temp basal allowed to be set. 4 times your highest scheduled basal rate is generally adequate.
If Trio predicts you need a temp basal set higher than this value, it will instead set the basal to this maximum value. If you try to manually set a temp basal higher than this value, nothing will happen, and your current basal rate will not change.
"},{"location":"settings/configuration/pumpsettings/#max-bolus","title":"Max Bolus","text":"Choose the maximum amount of insulin you generally bolus for meals. This can also help if you regularly have leaking or tunneling issues for large boluses.
If you enter a bolus higher than this value, it will only deliver this maximum value. So if your max bolus is set to 5U but you enter a 6U bolus, only 5U will be delivered.
"},{"location":"settings/configuration/pumpsettings/#max-carbs","title":"Max Carbs","text":"This is the maximum amount of carbs allowed in a single entry by Trio. If you enter more than this amount, your entry will be reduced to the maximum value.
If your Max Carbs setting is 125g and you enter 150g, only 125g will be recorded. You could then enter a second entry for 25g to make up the difference.
Note that, for now, this setting does not limit the maximum number of carbs that can be added via Nightscout or the watch app.
"},{"location":"settings/configuration/pumpsettings/#duration-of-insulin-action","title":"Duration of Insulin Action","text":"Warning
It is not advised to decrease this setting
Duration of insulin action (DIA) affects Trio calculations through its impact on insulin on board (IOB). The default DIA of 5 hours is likely too low and can cause insulin stacking. Increasing to 7 hours should suit most users. For more information on DIA in loop systems, read this from Tim Street.
"},{"location":"settings/configuration/targetglucose/","title":"Target Glucose","text":"Trio will target this value when calculating insulin needs. It should be set to the blood glucose you would like to reach when corrections are made. A recommended value is between 90-110mg/dL or 5-6mmol/L
Tip
You can set different targets at different times. Some users only have one target. Others have a lower target during the day and a higher target during the night to avoid lows.
"},{"location":"settings/configuration/concepts/autosens-dynamic/","title":"Autosens, Dynamic ISF/CR, and Adjust Basal","text":"Highlights
Important
The examples in this section employ the default logarithmic formula for calculations. For information on using Sigmoid, jump to this section.
"},{"location":"settings/configuration/concepts/autosens-dynamic/#autosens","title":"Autosens","text":"Auto-sensitivity (Autosens) reviews your last 8 hours and 24 hours of data every loop cycle (5 min) and determines whether you have been reacting more or less sensitively to insulin. It then makes conservative temporary adjustments to your basal rates, blood sugar target, and ISF.
Example
Autosens finds Bill has been running more sensitive to insulin lately. In the last 24 hours, he has been 2X more sensitive to insulin, whereas, in the last 8 hours, he has been 3X more sensitive to insulin.
Autosens then takes the more conservative calculated sensitivity. In this example, the more conservative value is obtained from the 8-hour window because by assuming Bill is 3X more as opposed to 2X more sensitive to insulin, the system will be posed to give less insulin.
If you are using Autotune, Autosens will use your calculated Autotune CR, ISF, and basal rates as its baseline rather than your set values.
Note that Autosens does not examine meals or adjust your CR. It only assesses your sensitivity to insulin and adjusts ISF/basal rates/blood sugar targets accordingly.
"},{"location":"settings/configuration/concepts/autosens-dynamic/#dynamic-isf","title":"Dynamic ISF","text":"Some thought Autosens was too conservative and slow to make changes. Dynamic ISF
is a drop-in replacement for Autosens's ISF calculation formula, with the goal of making it more aggressive. If you find that you have high ISF variability throughout the day and Autosens is not providing you with sufficient control, you can turn this feature on.
Dynamic ISF takes into consideration a new variable called the Adjustment Factor
, which affects its aggressiveness. If Dynamic ISF is too aggressive, you can decrease this number by 0.05-0.1 points to make it more meek. Likewise, increase this number if you still feel dynamic ISF is not aggressive enough.
Note
High Temptarget Raises Sensitivity
or Exercise Mode
is enabled and a high temporary target has been set by the user. While Dynamic ISF is inherently more aggressive, it also provides the user with greater control via the Adjustment Factor
compared to Autosens. You can decrease the Adjustment Factor
to make Dynamic ISF less aggressive than the calculated Autosens values. Autosens determines a ratio (autosens.ratio
) and alters your ISF in the following manner:
Example
Bill has an ISF of 3 mmol/L/U (54 mg/dL/U) in his settings. The system finds Bill has been more resistant to insulin lately and needs to increase his insulin. It calculates Bill has an autosens.ratio
of 1.1 (note that a larger autosens.ratio
results in a lower, more aggressive ISF).
When Autosens adjusts the ISF, it uses the following calculation:
\\[ 3\\ mmol/L/U\\ \u00f7\\ 1.1\\ =\\ 2.73\\ mmol/L/U \\] \\[ 54\\ mg/dL/U\\ \u00f7\\ 1.1\\ =\\ 49\\ mg/dL/U \\]Bill now temporarily has an ISF of 2.73 mmol/L/U (49 mg/dL/U).
Dynamic ISF (using the default logarithmic algorithm in Trio) uses an alternative formula to calculate the autosens.ratio for ISF adjustments. Note this formula uses mg/dL and not mmol/L:
\\[ autosens.ratio\\ =\\ profile.sens\\ *\\ AF\\ *\\ TDD\\ *\\ log((BG/peak)+1)\\ /\\ 1800 \\] \\[ New ISF\\ =\\ (profile\\ ISF)\\ /\\ (autosens.ratio) \\]This formula considers your profile ISF (profile.sens in mg/dL), current blood glucose (BG in mg/dL), total daily dose (TDD over the last 24 hours), insulin peak effect (peak activity normally is 120 min) and a new variable called adjustment factor (AF) that allows for user tuning of Dynamic ISF/CR.
Click here to view a graph depicting the logarithmic formula in mg/dL
Click here to view a graph depicting the logarithmic formula in mmol/L
"},{"location":"settings/configuration/concepts/autosens-dynamic/#dynamic-cr","title":"Dynamic CR","text":"This experimental feature alters the carb ratio (CR) based on current blood sugar and total daily dose (TDD). Unlike ISF, CR was not originally altered by autosens with respect to your detected sensitivity. Using Dynamic CR will lead to a dramatic change in how CR is calculated by Trio. Dynamic CR uses a similar formula as Dynamic ISF as described above:
\\[ autosens.ratio\\ =\\ profile.sens\\ *\\ AF\\ *\\ TDD\\ *\\ log((BG/peak)+1)\\ /\\ 1800 \\] \\[ New\\ CR\\ =\\ (profile\\ CR)\\ /\\ (autosens.ratio) \\]If your CR changes dramatically daily and Trio is not providing adequate bolus recommendations, you can test this feature. Note that Trio already makes modifications to your recommended boluses without this feature enabled based on your blood glucose target, COB, and IOB.
Note
If the calculated autosens.ratio by Dynamic CR is greater than 1, the following formula is used to make the resulting CR less aggressive:
\\[ new.autosens.ratio\\ =\\ (autosens.ratio\\ -\\ 1)\\ /\\ 2 + 1 \\]"},{"location":"settings/configuration/concepts/autosens-dynamic/#adjust-basal","title":"Adjust Basal","text":"Adjust Basal replaces Autosens's formula for adjusting basal rates, with a formula dependent on total daily dose (TDD) of insulin. Turn on this setting to give basal adjustments more agility. Keep this setting off if your basal needs are not highly variable.
"},{"location":"settings/configuration/concepts/autosens-dynamic/#advanced-information_1","title":"Advanced Information","text":"Normally, a new basal rate is set by autosens:
Adjust basal replaces the autosens.ratio with its own autosens.ratio calculated as such:
See Weighted Average of TDD
setting to understand how this variable is calculated.
Example
Bill's TDD has been 55 U over the last 24 hours, and his 10-day average is 48 U. He has set his Weighted average of TDD
in preferences to 0.7. His current profile basal rate is 1 U/h.
Final Thoughts
Remember that all Autosens ratios calculated in this section are being limited by Autosens Max and Autosens Min safety limiters. Additionally, Dynamic CR has a built-in safety limiter against highly aggressive ratios.
"},{"location":"settings/configuration/concepts/sigmoid/","title":"Sigmoid Function","text":""},{"location":"settings/configuration/concepts/sigmoid/#what-is-it","title":"What is it?","text":"The sigmoid function provides an alternative to the default logarithmic function. It is called Sigmoid because the math used to calculate adjustments forms a sigmoid shape.
"},{"location":"settings/configuration/concepts/sigmoid/#how-does-it-work","title":"How does it work?","text":"Sigmoid relies upon how far your blood glucose is from your target BG to determine how much to adjust ISF. As blood sugars get farther away from your target BG, sigmoid adjustments get larger. The adjustments are limited by autosens max and autosens min settings.
Click here to view a graph depicting the sigmoid formula in mg/dL
Click here to view a graph depicting the sigmoid formula in mmol/L
"},{"location":"settings/configuration/concepts/smb-uam/","title":"SMB and UAM","text":"Highlights
Super micro bolus (SMB) gives you small amounts of insulin upfront in the form of a bolus. Your temporary basal rates will be reduced accordingly before or after the SMB is delivered, so you will overall receive the same amount of insulin you would have received with temporary basal rates alone. SMB allows for faster control of blood sugars by providing more insulin upfront.
There are limitations on the size of SMBs. See the OpenAPS documentation for more information.
Important
There are numerous settings related to enabling SMBs in Trio. Below is the order of precedence of the settings Trio uses when deciding whether to enable or disable SMB:
For a detailed look at when SMBs are delivered, see the chart in Are SMBs Allowed? section.
"},{"location":"settings/configuration/concepts/smb-uam/#unannounced-meals","title":"Unannounced Meals","text":"Unannounced Meal (UAM) provides an alternative method (in addition to or instead of carb entry) for detecting and safely dosing insulin via SMBs in response to significant BG rises, whether due to meals, stress/illness, or counterregulatory hormones (adrenaline, cortisol, glucagon, HGH). When enabled, it replaces Advanced Meal Assist (AMA). AMA is an older feature that depends on your carbohydrate entries and sets high temporary basal rates to counteract any remaining carbs on board.
"},{"location":"settings/configuration/preferences/dynamicsettings/","title":"Dynamic Settings","text":"Attention
Please read Autosens and Dynamic ISF/CR before continuing.
Tip
Dynamic ISF is a more aggressive alternative to Autosens's ISF adjustment algorithm. Many people find that ISF depends on BG level instead of solely time of day, making it hard to fix persistent highs by adjusting the scheduled ISF settings.
"},{"location":"settings/configuration/preferences/dynamicsettings/#dynamic-cr","title":"Dynamic CR","text":"Dynamic CR alters your carb ratio with every loop cycle based on your current blood glucose and TDD of insulin. Turn it on if you experience your CR changing day-to-day or at different blood glucose levels and Trio is not consistently suggesting appropriate boluses. You should first rule out other causes for this, including inadequate carb counting or inappropriate profile ICR.
"},{"location":"settings/configuration/preferences/dynamicsettings/#adjustment-factor","title":"Adjustment Factor","text":"Adjustment Factor (AF) allows one to bias the Dynamic ISF and Dynamic CR (if they are enabled) toward more or less aggressive results. Increasing AF will result in the Dynamic ISF/CR outputting more aggressive values while decreasing it will bias the output toward less aggressive values. It is recommended to start with an AF of 0.5-0.8 and increase as needed.
Example
Bill has Dynamic CR on. His Dynamic CR is calculated to be 1:4 by Trio based on his current blood glucose, TDD, and his set ISF. But Bill decides to set his AF to 1.2 because he has found recently that Dynamic CR has not been giving him aggressive enough numbers. Trio acts accordingly, increasing his CR to something above 1:4 instead (ex: 1:3.5).
This is a simplified example. See the section on Dynamic CR for more information.
Caution
Adjustment Factor (AF) is not a safety limiter
Dynamic CR and ISF use a logarithmic function to perform calculations by default.
This option replaces the logarithmic function with a sigmoid function for Dynamic ISF/CR calculations.
Before enabling this setting, please read the dedicated section on sigmoid.
Warning
Before enabling Sigmoid
This ratio is used by \"Adjust basal\" for its calculations. It allows you to effectively control the variability of basal adjustments (if Adjust basal is enabled). You can set this value to a decimal between 0 and 1.
Example
Bill has a TDD of 55 U over the last 24 hours. He has had a TDD of 48 U over the last 10 days. His Weighted Average is set at 0.65:
\\[ TDD Average = 55 * 0.65 + 48 * 0.35 = 52.55 \\]As you increase the default 0.65 ratio to a higher number, the adjusted basal rates will be more influenced by your last 24-hour insulin usage, resulting in more variable changes.
"},{"location":"settings/configuration/preferences/dynamicsettings/#adjust-basal","title":"Adjust Basal","text":"Adjust Basal replaces the sensitivity-based formula normally used by Autosens for adjusting your basal rates with a dynamic formula dependent on your TDD of insulin. Use this if the current Trio adjustments of basal rates are not adequate.
"},{"location":"settings/configuration/preferences/dynamicsettings/#threshold-setting-mgdl","title":"Threshold Setting (mg/dl)","text":"The threshold setting is a safety limiter function. If blood sugar at any point is predicted to go below this value, Trio will suspend insulin delivery (SMBs are halted and Temp Basal of 0 U/hr set) and wait till its algorithms predict otherwise. This setting can be useful if you are experiencing a high number of hypoglycemia events. Please review the OpenAPS documents if you want a better understanding of how it is used.
The threshold setting is, by default, determined by your blood glucose target setting:
This setting allows you to choose a higher threshold setting than the default. Note that you cannot choose something lower than the default setting for a certain blood glucose target.
Example
Bill has set a BG target of 110 mg/dl. In his Trio preferences, he has set his threshold to 65 mg/dl.
Because Trio's default threshold setting is 75 mg/dl for a 110 mg/dl blood glucose target, Bill's preference will be ignored.
"},{"location":"settings/configuration/preferences/mainsettings/","title":"OpenAPS Main Settings","text":"Important
Select your insulin type for the appropriate response curve to be used by the algorithm:
Bilinear: This IOB curve is based on a bilinear activity curve that varies by the user\u2019s duration of insulin action setting in their pump. Rapid-acting: This is the default setting for Novolog, Novorapid, Humalog, and Apidra insulins. Selecting this setting will cause OpenAPS to use an exponential activity curve with a peak activity set at 75 minutes and a duration of insulin action set at 300 minutes (5 hours). Ultra-Rapid: This is the default setting for Fiasp and Lyumjev. It uses an exponential activity curve with a peak activity set at 55 minutes and a duration of insulin action set at 300 minutes (5 hours).Caution
Duration of insulin (DIA) action can be altered in the pump settings section of Trio. A minimum of 5 hours is required. It is not advised to alter this setting from the default.
To understand why a higher duration of insulin action is used in Trio, click to see the following documentation from Tim Street.
"},{"location":"settings/configuration/preferences/mainsettings/#max-iob","title":"Max IOB","text":"The maximum amount of insulin on board (i.e. in the body). This includes insulin from all sources (basal and bolus) that are automatically delivered by Trio. Manual boluses are not subjected to this limiter.
The default is set to zero, meaning Trio can only set temporary basal rates lower than your profile basal rate. It cannot set temporary basal rates that exceed your profile basal rate in cases of high blood sugar, and it cannot use super micro boluses to control blood sugar.
You can start by increasing this number to your average mealtime bolus and evaluating its effect. The default recommendation is \u201caverage meal bolus + 3x max hourly basal\u201d when using super micro boluses.
Example
Bill has an average mealtime bolus of 6U, and the following basal profile:
Using the MaxIOB formula
\\[ Average\\ Meal\\ Bolus + 3 \\times Highest\\ Hourly\\ Basal \\]his recommended Max IOB setting should be 12
\\[ 6 + 3 \\times 2.0 = 12 \\]If you are insulin resistant and/or need help dealing with meal spikes, you can continue to increase this number further to allow for greater insulin delivery.
"},{"location":"settings/configuration/preferences/mainsettings/#max-cob","title":"Max COB","text":"The maximum amount of carbs that Trio is allowed to bolus or set high-temp targets for. This safety feature protects against erroneous carbohydrate entries that could lead to hypoglycemia episodes.
Tip
If you tend to eat more than 120 g of carbs in one sitting, choose the maximum amount of carbs you eat.
"},{"location":"settings/configuration/preferences/mainsettings/#max-daily-safety-multiplier","title":"Max Daily Safety Multiplier","text":"Limits the maximum temporary basal rate Trio is able to use at any time. The default setting of 3, which is unlikely to need adjustment, allows for a maximum basal rate of 3 times the maximum daily basal.
Example
Bill has Max Daily Safety Multiplier set to 3 and the following basal profile:
It is 7:00 am, so Trio has been scheduled to deliver 1 U/hr. But Bill is running high, so Trio wants to deliver more.
Using the formula
\\[ Highest\\ Hourly\\ Basal \\times Max\\ Daily\\ Safety\\ Multiplier = Maximum\\ Temporary\\ Basal\\ Rate \\]the maximum temporary basal rate that can be set is 6 units per hour
\\[ 2.0 \\times 3 = 6 \\]"},{"location":"settings/configuration/preferences/mainsettings/#current-basal-safety-multiplier","title":"Current Basal Safety Multiplier","text":"Limits the maximum temporary basal rate Trio is able to use at the current time. The default setting of 4, which is unlikely to need adjustment, allows for a maximum basal rate of 4x the current basal rate.
Example
It is currently 9:00 am, and Bill has the following basal profile:
Using the formula
\\[ Current\\ Basal\\ Rate \\times Current\\ Basal\\ Safety\\ Multiplier = Maximum\\ Temporary\\ Basal\\ Rate \\]the maximum temporary basal rate that can be set by Trio at 9:00 am is 4 units per hour
\\[ 1.0 \\times 4 = 4 \\]Important
The algorithm compares the two results from Current Basal Safety Multiplier and Max Daily Safety Multiplier, then it limits calculations with the smaller of the two values
"},{"location":"settings/configuration/preferences/mainsettings/#autosens-max","title":"Autosens Max","text":"Please read Autosens and Dynamic ISF/CR and Autotune before adjusting this setting.
This setting determines the maximum ratio autosens can use for its adjustments. Increasing this value allows autosens to increase insulin given through your basal profile, ISF, and target blood glucose.
"},{"location":"settings/configuration/preferences/mainsettings/#autosens-max-with-dynamic-isf-andor-dynamic-cr","title":"Autosens Max with Dynamic ISF and/or Dynamic CR","text":"This limits the ability of Dynamic ISF and Dynamic CR to make more aggressive adjustments.
"},{"location":"settings/configuration/preferences/mainsettings/#autosens-max-with-autotune","title":"Autosens Max with Autotune","text":"This limits Autotune's ability to make more aggressive adjustments to your CR, basal profile, and ISF.
"},{"location":"settings/configuration/preferences/mainsettings/#autosens-min","title":"Autosens Min","text":"Please read Autosens and Dynamic ISF/CR and Autotune before adjusting this setting.
This setting determines the minimum ratio autosens can use for its adjustments. Decreasing this value allows autosens to reduce insulin given through your basal profile, ISF, and target blood glucose.
"},{"location":"settings/configuration/preferences/mainsettings/#autosens-min-with-dynamic-isf-andor-dynamic-cr","title":"Autosens Min with Dynamic ISF and/or Dynamic CR","text":"This limits the ability of Dynamic ISF and Dynamic CR to reduce insulin needs.
"},{"location":"settings/configuration/preferences/mainsettings/#autosens-min-with-autotune","title":"Autosens Min with Autotune","text":"This setting Autotune's ability to reduce insulin needs in your CR, basal profile, and ISF.
"},{"location":"settings/configuration/preferences/othersettings/","title":"OpenAPS Other Settings","text":"Caution
None of these settings likely require adjustment from their defaults
"},{"location":"settings/configuration/preferences/othersettings/#rewind-resets-autosens","title":"Rewind Resets Autosens","text":"\"Rewind\" in Medtronic lingo refers to the attachment of a new insulin reservoir and infusion set. For Omnipod users, this means replacing your pod with a new one.
When you change the insulin injection site, you might find your insulin sensitivity is altered based on how well it's diffusing into your bloodstream.
This setting resets autosens's calculated autosens.ratio and forces it to restart anew from the time of the site change to improve your calculated basal rates, sensitivity ratio, and target blood glucose.
For more information, please read Autosens and Dynamic ISF/ICR.
"},{"location":"settings/configuration/preferences/othersettings/#use-custom-peak-time","title":"Use Custom Peak Time","text":"Toggle this on to use the \"Insulin Peak Time\" setting.
"},{"location":"settings/configuration/preferences/othersettings/#insulin-peak-time","title":"Insulin Peak Time","text":"Note
Requires \"Use Custom Peak Time\" to be enabled.
Select a peak activity time point, based on your insulin type.
"},{"location":"settings/configuration/preferences/othersettings/#skip-neutral-temps","title":"Skip Neutral Temps","text":"This feature was introduced in the OpenAPS algorithm (Oref0) but does not play a major role in Trio.
Light sleepers using OpenAPS would find that the notifications delivered by OpenAPS upon making a temp basal adjustment would wake them up.
This setting attempts to reduce notifications produced by OpenAPS (and Trio). However, it could potentially impact control and make it harder for users to determine if the system is working.
Caution
It is recommended to keep this setting disabled
"},{"location":"settings/configuration/preferences/othersettings/#unsuspend-if-no-temp","title":"Unsuspend if No Temp","text":"Important
This setting only applies to Medtronic Pumps
After manually suspending your pump, you will be provided with a reminder at a chosen time to resume it. Many people, however, neglect this reminder and forget to unsuspend, leading to highs.
This feature allows you to use zero temp basals to unsuspend your pump automatically. Before suspending your pump, set a 0 U/hr temp basal for the period you want the pod to remain suspended. Then suspend the pod. Once the temp basal expires, the pod will be automatically reactivated.
"},{"location":"settings/configuration/preferences/othersettings/#suspend-zeros-iob","title":"Suspend Zeros IOB","text":"This allows Trio to understand better that no insulin is being delivered to the patient when a pump suspension occurs.
Trio will set a zero temp basal (0 U/hr) during pump suspensions, improving its insulin on board calculations and, therefore, its algorithm calculations.
Recommended to keep this setting enabled.
"},{"location":"settings/configuration/preferences/othersettings/#min-5m-carbimpact","title":"Min 5m Carbimpact","text":"This is a fallback setting used by Trio. If Trio is unable to tell if carbs are being absorbed from blood sugar readings, it will estimate how many carbs have been absorbed using this setting.
The default value of 8 mg/dL/5min assumes carbohydrates will increase blood sugar by 8 mg/dL every 5 minutes. The actual amount of carbohydrates estimated to be absorbed depends on your calculated carbohydrate sensitivity ratio (CSF = ISF/CR).
"},{"location":"settings/configuration/preferences/othersettings/#autotune-isf-adjustment-fraction","title":"Autotune ISF Adjustment Fraction","text":"Autotune, by default, adjusts your ISF by 20% each nightly run. This value allows you to make your autotune adjustments less aggressive.
Set this at 1 for the full 20% adjustment.
Maths
\\[ adjustedISF\\ =\\ adjustmentFraction\\ *\\ autotuneISF\\ +\\ (1-adjustmentFraction)\\ *\\ profileISF \\] \\[ newISF\\ =\\ (\\ 0.8\\ *\\ profileISF\\ )\\ +\\ (\\ 0.2\\ *\\ adjustedISF\\ ) \\]Example
Bill has a profile ISF of 3. Autotune thinks his true ISF value is 4. His adjustment fraction is 1.
\\[ adjustedISF = 1 * 4 + (1 - 1) * 3 = 4 \\] \\[ newISF = (0.8 * 3) + (0.2 * 4) = 3.2 \\]Assuming autotune is not being limited by the autosens max and min, Bill's ISF will be set to 3.2 by autotune tonight. Autotune will then repeat the following night, starting with a profileISF = 3.2
"},{"location":"settings/configuration/preferences/othersettings/#remaining-carbs-fraction","title":"Remaining Carbs Fraction","text":"This is the fraction of carbs that is assumed not to be absorbed yet after 4 hours if carb absorption has not been seen.
When attempting to measure carbohydrates on board (COB) Trio may not be fully accurate. This setting is a safety feature that can prevent Trio from providing insulin for non-existent carbs.
Example
It has been 4 hours since Bill ate 20 carbs. Trio has been able to calculate that he's absorbed 15 carbs but cannot account for the 5 other carbs yet. Bill has a remaining carbs fraction of 0.75
\\[ Remaining COB = COB - absorbedCarbs - mealCarbs * (1 - carbsFraction) \\] \\[ 20 - 15 - 20(1 - 0.75) = 0 \\]Bill is assumed to have 0g carbs on board
Tip
Recommend to keep this value at the default of 1 meaning it will not impact Trio's calculations. This feature is closely tied to \"Remaining Carbs Cap.\"
"},{"location":"settings/configuration/preferences/othersettings/#remaining-carbs-cap","title":"Remaining Carbs Cap","text":"This setting is a safety limiter that determines the maximum amount of carbs that are assumed to be absorbed after 4 hours of carb absorption. A minimum of 90 carbs is mandatory for this setting.
Example
Bill eats 150 carbs. After 4 hours, Trio calculates a COB of 110. It will reduce that number to 90 carbs.
Tip
It is recommended to keep this value at default
"},{"location":"settings/configuration/preferences/othersettings/#noisy-cgm-target-multiplier","title":"Noisy CGM Target Multiplier","text":"If Trio detects that CGM data has been noisy, it will increase your target blood sugar by a set fraction to avoid you getting low. Default is 30% higher (1.3)
Example
Bill's Trio has calculated a blood glucose target of 5 mmol/L (90 mg/dL). But Bill has a noisy sensor. He has set his \"Noisy CGM Target Multiplier\" to 1.3. Trio will thereby use a target bg of:
\\[ 5 mmol/L * 1.3 = 6.5 mmol/L \\] \\[ 90 mg/dL * 1.3 = 117 mg/dL \\]Tip
It is recommended to keep this value at the default of 1.3.
"},{"location":"settings/configuration/preferences/smbsettings/","title":"SMB Settings","text":"Important
Enabling this setting allows SMBs to be delivered if your blood sugar is predicted to go above target.
SMBs will remain on if you have a low temporary target set but will be fully disabled if a high temporary target is set (unless \"Allow SMB With High Temptarget\" is enabled).
The size of SMBs is limited. For more information, see the OpenAPS documentation.
"},{"location":"settings/configuration/preferences/smbsettings/#max-delta-bg-threshold-smb","title":"Max Delta-BG Threshold SMB","text":"This safety limiter looks at the difference between your last two blood glucose readings. If the difference is large, Trio suspects them to be incorrect and will suspend SMB delivery accordingly. You can adjust the amount of change that should be allowed before SMBs are delivered. A setting of 0.2 means it will only give SMBs if the difference between the current and previous blood glucose readings is no greater than 20%.
Example
Your last CGM reading was 90mg/dL. The very next reading is 115mg/dL, an increase of 27%. If Max Delta-BG Threshold SMB is set to 0.2 (20%), this change is larger than the threshold, and no SMBs will be given.
Tip
For a fully closed loop, 0.3 is advised.
"},{"location":"settings/configuration/preferences/smbsettings/#enable-smb-with-cob","title":"Enable SMB With COB","text":"SMBs will be enabled if you currently have carbs on board (COB) to help you deal with meal spikes. This feature should be enabled if you want to use UAM.
Note
If you already have \"Enable SMB Always\" on, this feature is redundant and does not need to be configured.
"},{"location":"settings/configuration/preferences/smbsettings/#enable-smb-with-temptarget","title":"Enable SMB with Temptarget","text":"SMBs will be enabled if you have set a lower blood sugar target temporarily. This will allow you to reach your target faster.
Note
If you already have \"Enable SMB Always\" on, this feature is redundant and does not need to be configured.
"},{"location":"settings/configuration/preferences/smbsettings/#enable-smb-after-carbs","title":"Enable SMB After Carbs","text":"SMBs will be enabled if you had carbs within the last 6 hours to help with meal spikes.
Note
If you already have \"Enable SMB Always\" on, this feature is redundent and does not need to be configured.
"},{"location":"settings/configuration/preferences/smbsettings/#allow-smb-with-high-temptarget","title":"Allow SMB With High Temptarget","text":"By default, Trio will not allow SMBs if you have a temporary blood glucose target set above 5.5 mmol/L (100 mg/dL), even if \"Enable SMB Always\" is toggled on. Toggling this feature ON will disable that safety check and not prevent SMBs when a high temporary target is set, as long as SMBs are otherwise enabled.
"},{"location":"settings/configuration/preferences/smbsettings/#enable-smb-with-high-bg","title":"Enable SMB With High BG","text":"This allows SMBs to occur above the measure set below in \"...When Blood Glucose is Over (mg/dl)\".
Note
If you already have \"Enable SMB Always\" on, this feature is redundant and does not need to be configured.
"},{"location":"settings/configuration/preferences/smbsettings/#when-blood-glucose-is-over-mgdl","title":"... When Blood Glucose is Over (mg/dl)","text":"See the above setting for more information. This allows you to configure the target at which SMBs will be enabled.
"},{"location":"settings/configuration/preferences/smbsettings/#enable-uam","title":"Enable UAM","text":"With this option enabled, the SMB algorithm can recognize unannounced meals. This is helpful if you forget to tell Trio about your carbs or estimate your carbs wrong. It can also help if a meal with lots of fat and protein has a longer duration than expected. Without any carb entry, UAM can recognize fast glucose rises caused by carbs, illness, or counter-regulatory hormones, and tries to adjust it with SMBs. This also works the opposite way: if there is a fast glucose drop, it can stop SMBs earlier.
"},{"location":"settings/configuration/preferences/smbsettings/#max-smb-basal-minutes","title":"Max SMB Basal Minutes","text":"Max SMB Basal minutes is one of the major limits on how much insulin a single SMB delivers.
The amount of insulin that can be delivered by an SMB is related to the amount of scheduled basal insulin in your \"Basal Profile\" settings.
For example, if you are receiving a basal dose of 1 unit per hour and set \"Max SMB Basal minutes\" to 30, an SMB will deliver no more insulin than would be delivered by your basal in 30 minutes or half a unit (0.5U).
If you see that Trio is giving very small \u2014 or the same \u2014 SMBs every 5 minutes, you may need to adjust the Max IOB or Max SMB basal minutes. First, you should confirm your basal rates are adequate. Then, you can experiment with increasing Max SMB basal minutes so Trio can provide larger SMBs to better respond to BG rises and predicted rises.
"},{"location":"settings/configuration/preferences/smbsettings/#max-uam-smb-basal-minutes","title":"Max UAM SMB Basal Minutes","text":"This setting limits the size of SMBs that Trio can deliver when it detects an unannounced meal (UAM). The maximum size of each SMB is set in relation to the scheduled basal insulin in your profile settings.
You can configure this setting to make UAM more or less aggressive to correct meal spikes. Note that SMBs delivered in response to unannounced meals are also limited by your Max IOB. See \"Max SMB Basal Minutes\" above for information on other settings that limit SMBs.
Tip: If you struggle with meals or hormonal highs, consider increasing maximum basal minutes (slowly and watching results over multiple days before changing again) to allow UAM to give more insulin in one bolus.
"},{"location":"settings/configuration/preferences/smbsettings/#smb-deliveryratio","title":"SMB DeliveryRatio","text":"This is a safety limiter. Trio determines how much insulin is required to get you back to your target glucose. If SMB is enabled, Trio then delivers an SMB, that defaults to half the required insulin.
This setting allows you to boost or reduce what fraction of the required insulin is delivered in a single SMB. It is recommended you look at your basal profile, Max SMB basal minutes, Max UAM SMB Basal Minutes, and Max IOB before you adjust this setting.
"},{"location":"settings/configuration/preferences/smbsettings/#smb-interval","title":"SMB Interval","text":"The minimum interval between SMB boluses. SMBs will be delivered at this rate or less as needed.
"},{"location":"settings/configuration/preferences/smbsettings/#bolus-increment","title":"Bolus Increment","text":"The minimum amount of insulin that can be bolused by Trio via an SMB. This is determined by your pump hardware.
"},{"location":"settings/configuration/preferences/smbsettings/#are-smbs-allowed","title":"Are SMBs Allowed?","text":""},{"location":"settings/configuration/preferences/smbsettings/#by-following-the-flow-chart-above-you-can-see-which-combination-of-settings-will-allow-smbs","title":"By following the flow chart above, you can see which combination of settings will allow SMBs.","text":"If you've made it to the bottom row, it checks all those conditions, and if none of them are true, then SMBs are allowed.
"},{"location":"settings/configuration/preferences/smbsettings/#here-is-the-order-of-settings-trio-uses-when-deciding-whether-to-enable-or-disable-smbs","title":"Here is the order of settings Trio uses when deciding whether to enable or disable SMBs:","text":"Important
This section is entirely visual and does not impact insulin dosage calculations
"},{"location":"settings/configuration/preferences/statistics/#low-glucose-limit","title":"Low Glucose Limit","text":"Sets the lower blood sugar limit for statistical determination of time below range (TBR).
"},{"location":"settings/configuration/preferences/statistics/#high-glucose-limit","title":"High Glucose Limit","text":"Sets the higher blood sugar limit for statistical determination of time above range (TAR)
"},{"location":"settings/configuration/preferences/statistics/#update-every-number-of-minutes","title":"Update every number of minutes","text":"This setting determines how often the statistics are updated on the home screen and, for advanced users, controls how often statistics are uploaded to Nightscout.
"},{"location":"settings/configuration/preferences/statistics/#display-loop-cycle-statistics","title":"Display Loop Cycle statistics","text":"This shows the average number of loops performed over the last 24 hours. Ideally, the number should be near 288, the maximum number of loops performed per day. Negative impacters include CPU speed, pump, and pod changes, connection issues, etc.
"},{"location":"settings/configuration/preferences/statistics/#override-hba1c-unit","title":"Override HbA1c unit","text":"By default, the estimated HbA1c statistic is given in percentage units. Enabling this toggle converts it to mmol/mol units.
"},{"location":"settings/configuration/preferences/targetsettings/","title":"OpenAPS Targets Settings","text":"High Temptarget Raises Sensitivity
Enable High Temptarget Raises Sensitivity
if you exercise frequently with high temp targets and are going low.
For more information, please read Autosens and Dynamic ISF/CR.
Normally, Trio assumes your sensitivity will be lower with higher blood sugar levels (resulting in greater amounts of insulin being delivered). During periods of exercise, some people may instead experience increased sensitivity to insulin. With this feature enabled, setting a high temporary target will decrease the autosens ratio utilized for ISF and basal adjustments, resulting in less insulin delivered overall. This scales with the temporary target set; higher and higher temp targets lead to lower and lower insulin delivery in the form of basal rates and corrections.
Note that this setting also disables Dynamic ISF when high temp targets are set.
"},{"location":"settings/configuration/preferences/targetsettings/#low-temptarget-lowers-sensitivity","title":"Low Temptarget Lowers Sensitivity","text":"For more information, please read Autosens and Dynamic ISF/CR.
When planning to have a heavy meal, you may want to set a low temporary target to avoid high blood sugar spikes. You may also want Trio to deliver more insulin during this time to prevent meals from spiking too high. Enabling this feature will increase your autosens.ratio, which is utilized for ISF and basal adjustments, resulting in greater insulin delivery. This will allow Trio to better deal with post-prandial spiking.
"},{"location":"settings/configuration/preferences/targetsettings/#sensitivity-raises-target","title":"Sensitivity Raises Target","text":"When performing autosens and insulin dosing calculations, Trio uses a target blood glucose that is by default the lower value in your target range.
Example: Bill has a target range of 5.5 to 6.0. His target blood glucose is thus 5.5. (Note that Bill's target is not exactly this value; Trio alters the target via autosens to improve its dosing)
When \"Sensitivity Raises Target\" is enabled, Trio will set a higher blood glucose target to base its insulin dosage calculations on if it detects sensitivity. This can be useful if you find Trio is too aggressive.
Advanced information: For more information, please read Autosens and Dynamic ISF/CR.
If the autosens.ratio is determined to be <1.0, this setting comes into effect and increases the blood glucose target by a small amount. See the OpenAPS code base for the exact formulas used.
"},{"location":"settings/configuration/preferences/targetsettings/#resistance-lowers-target","title":"Resistance Lowers Target","text":"See \"Sensitivity Raises Target\" for more information. When Trio detects high insulin resistance, it will set a lower blood glucose target for insulin dosage calculations, providing more insulin overall. This is useful for patients who experience uncontrollable highs.
Advanced information: For more information, please read Autosens and Dynamic ISF/CR.
If the autosens.ratio is determined to be >1.0, this setting comes into effect and decreases the blood glucose target by a small amount. See the OpenAPS code base for the exact formulas used.
"},{"location":"settings/configuration/preferences/targetsettings/#advanced-target-adjustments","title":"Advanced Target Adjustments","text":"Deprecated; Autosens has alternative functions for determining if insulin can be safely added when high.
"},{"location":"settings/configuration/preferences/targetsettings/#exercise-mode","title":"Exercise Mode","text":"Redundant; same as \"High Temptarget Raises Sensitivity\". Enabling either feature will provide the desired change to sensitivity with high temp targets.
"},{"location":"settings/configuration/preferences/targetsettings/#half-basal-exercise-target","title":"Half Basal Exercise Target","text":"This setting allows you to control the reduction in basal when using either \"Exercise Mode\" or \"High Temptarget Raises Sensitivity.\" The default is 160 mg/dL, meaning basal will be at 50% of your scheduled with a temporary target at 160, 60% at 140, and 75% at 120.
Advanced information: See openAPS code for more information.
The formula used is:
\\[ (halfBasalTarget - 100)/((halfBasalTarget - 100)+(targetBG-100)) \\]Example
Bill has a halfBasalTarget of 160 and has set a temporary target of 120 for his upcoming exercise. Therefore, only 75% of his scheduled basal rate will be provided:
\\[ (160 - 100)/((160 - 100) + (120 - 100)) = 0.75 \\]"},{"location":"settings/configuration/preferences/trio/","title":"Trio","text":""},{"location":"settings/configuration/preferences/trio/#glucose-units","title":"Glucose Units","text":"Allows you to toggle between mmol/L and mg/dL blood glucose units.
"},{"location":"settings/configuration/preferences/trio/#remote-control","title":"Remote Control","text":"Allows for remote control of Trio using Nightscout.
Caution
Duplicate Delivery Risk
Please read before using Remote Features
We want to highlight a very important risk before you get started.
For safety, always assume a previous remote carb/bolus was delivered, whether it shows in Nightscout or not.
For Example: 1. You send a 5-unit remote bolus. 2. The bolus is delivered to the Looper. 3. Nightscout has a temporary technical issue and doesn't show the bolus was received. 4. You are watching Nightscout and don\u2019t see a delivery, so you assume it failed. 5. You send another remote 5-unit bolus. 6. The second 5-unit bolus is delivered to the Looper (10 Units total).
You can see the danger of sending duplicate bolus/carbs, so be careful. If a remote bolus/carb entry doesn\u2019t show in Nightscout/Caregiver, judge whether enough time has passed to try again.
To use, navigate to your connected Nightscout instance. Click the lock icon at the top right and enter your API secret. Next, click the now visible \"+\" sign at the top right. A \"Log a Treatment\" menu will open up.
To enter carbs, select the \"carb correction\" event type. Fill in the required blanks and click \"Submit Form\". Trio will read any carb entries in Nightscout and adjust insulin delivery as configured.
To configure loop status, pump, or to bolus:
remote
(Before Trio-main v0.1.0 it was freeaps-x-remote
instead)In additional notes, state one of the following options:
To bolus, enter bolus:(amount)
(ex: bolus:0.5
).
pump:suspend
or pump:resume
. looping:true
or looping:false
tempbasal:(rate),(minutes)
(ex: tempbasal:0,60
to set temporary basal rate at 0 U/hr for 60 minutes)Note
Remote configurations with announcement-type events can only be performed every 10 minutes.
"},{"location":"settings/configuration/preferences/trio/#recommended-bolus-percentage","title":"Recommended Bolus Percentage","text":"Recommended bolus percentage is a safety feature built into Trio. By default, Trio first calculates an \"insulin recommended\" value when bolusing for carbs, which is the full dosage. That dosage is multiplied by your Recommended Bolus Percentage
to display your suggested insulin dose. Trio then delivers the remaining insulin via SMBs as the blood sugar starts to rise.
Recommended Bolus Percentage
allows you to alter the amount initially delivered. By default (70), 70% of the required meal bolus is delivered before the meal. You can increase or decrease this to alter the insulin delivered prior to the meal.
Note
A manual bolus uses the Eventual BG
for glucose prediction, whereas the insulinReg
for SMBs uses the minPredBG
(typically lower than Eventual BG).
After entering carbs, a mealtime bolus will not be suggested or delivered.
"},{"location":"settings/devices/cgm/","title":"Compatible CGM","text":"CGM selection includes the following:
While using Nightscout as a CGM is an option, it should be avoided if possible because it will not keep Trio running in the background like other CGM options. You will have to open Trio manually to make it run loop cycles.
"},{"location":"settings/devices/cgm/#xdrip-xdrip4ios","title":"xDrip (xDrip4iOS)","text":"To use xDrip4iOS as a CGM source, you must build it yourself with the same Apple Developer account you used to build your Trio app. You cannot use Shuggah or a version distributed by someone else's TestFlight. Please see the following for instructions on how to build xDrip4iOS yourself: link
However, if you are using Dexcom G6 or ONE with xDrip4iOS, you can choose the Dexcom G6 option in Trio rather than xDrip4iOS, and Trio will intercept the glucose readings even if you're using Shuggah or someone else's TestFlight of xDrip4iOS.
"},{"location":"settings/devices/cgm/#dexcom-g5g6-and-one","title":"Dexcom G5/G6 (and ONE)","text":"Trio can intercept glucose readings between the transmitter and the Dexcom app. If you are using a Dexcom G5, G6, or ONE sensor, tap Configuration CGM to enter your transmitter's 6-digit ID. Dexcom Share Credentials are not necessary. When switching transmitters, you must delete your current transmitter from Trio by tapping Configuration CGM, scrolling down, and Delete CGM. Once you do this, you can add the new transmitter with its Transmitter ID.
"},{"location":"settings/devices/cgm/#dexcom-g7","title":"Dexcom G7","text":"Trio can intercept its glucose readings as long as the Dexcom G7 app is installed on the same phone. When a new G7 sensor is paired to the Dexcom G7 app, Trio will automatically start reading it.
"},{"location":"settings/devices/cgm/#glucose-simulator","title":"Glucose Simulator","text":"The Glucose Simulator adds artificial CGM readings to the screen so you can see how your readings might look in the app. When using this CGM option, you cannot manually influence the readings shown to reflect a desired glucose response. Actions taken by the Trio algorithm also do not affect the cgm readings in the Glucose Simulator. They are for visual purposes only. For this reason, using the Glucose Simulator will not help you understand how the algorithm influences blood sugars.
Warning
The Glucose Simulator should never be used in conjunction with a live pump connected to a person (or animal).
"},{"location":"settings/devices/cgm/#libre-transmitter","title":"Libre Transmitter","text":"This option pairs a compatible Libre CGM directly with Trio without using a separate app like xDrip4iOS or Glucose Direct.
"},{"location":"settings/devices/cgm/#supported-sensors","title":"Supported Sensors","text":"Until the providers of Glucose Direct add a Trio App Group to Glucose Direct, you cannot use this app with Trio. If that happens, then you must build it yourself with the same Apple Developer account you used to build your Trio app. You cannot use a version distributed by someone else's TestFlight.
"},{"location":"settings/devices/cgm/#medtronic-enlite","title":"Medtronic Enlite","text":"The Minimed Enlite CGM, available with the Medtronic 522/722, 523/723, and 554/754, wirelessly sends glucose readings to the pump. Trio can read the Medtronic CGM data directly from the pump using a RileyLink-compatible device.
"},{"location":"settings/devices/pump/","title":"Pump","text":"This section allows you to select your insulin delivery system. For more information on supported pumps, see the following: link. Older Omnipod and Medtronic devices require a Rileylink to translate communication between your phone's Bluetooth signals and the pump's radiocommunication.
During the setup, you will also be asked to choose your insulin type, which will determine your duration of insulin action (DIA) and peak activity time.
"},{"location":"settings/services/applehealth/","title":"Apple Health","text":"Info
Apple Health is optional
Enabling Apple Health allows Trio to write information on your blood sugar readings, insulin, and carbohydrates to Apple Health and read blood sugar readings in Apple Health. You will also need to give permission in iPhone Settings, Health, Data Access & Devices to write data to Apple Health. This is useful for those who like to analyze their data with TidePool, Cockpit, or Glooko.
"},{"location":"settings/services/fatprotein/","title":"Fat and Protein Conversion","text":"Highlights
Many individuals may experience slow blood sugar rise after fatty or high-protein meals. Enabling \"Convert Fat and Protein\" allows you to provide a bolus for fat and protein units (FPU). The bolus is delivered in segments over a selected period to avoid the gradual rise in blood sugar. This is similar to setting absorption time or eCarbs if coming from Loop or AndroidAPS, respectively. For more information, click to see the Omnicalculator.
Your current CR was likely compensating for some of the effects of protein and fat on blood sugar. If you choose to enable this setting, you will need to make your ICR less aggressive to prevent lows.
"},{"location":"settings/services/fatprotein/#conversion-settings","title":"Conversion Settings","text":""},{"location":"settings/services/fatprotein/#delay-in-minutes","title":"Delay In Minutes","text":"This controls how long before the system starts to bolus for the fat and protein spike. The default setting is 60 minutes.
"},{"location":"settings/services/fatprotein/#maximum-duration-in-hours","title":"Maximum Duration in Hours","text":"Limits how long the system can bolus for FPU. A default of 8 is recommended.
"},{"location":"settings/services/fatprotein/#interval-in-minutes","title":"Interval in Minutes","text":"The interval between each microbolus provided for fat and protein.
"},{"location":"settings/services/fatprotein/#override-with-a-factor-of","title":"Override With A Factor Of","text":"Controls the fraction of insulin required for the fat and protein entered. A default of 0.5 allows only half the insulin the system thinks you require, to be delivered. You can experiment with raising this number to one if you continue to see rises in your blood sugar.
"},{"location":"settings/services/nightscout/","title":"Visualization and Monitoring","text":"Highlights
Nightscout (NS) is an open-source, DIY project that allows real-time access to CGM data via a personal website, smartwatch viewers, or apps and widgets available for smartphones. Setting up a Nightscout web app is recommended to visualize your Trio closed loop.
Nightscout allows a user to upload CGM data from various sources to an online database and cloud computing service. The information is then processed and displayed visually as a graph. Plugins also allow more information to be shown about Trio.
Even if you don't choose to share your Nightscout site with another person, it will be helpful for you to visualize what the loop is doing and what it's been doing, plus generate helpful reports for understanding your data.
For help making a Nightscout account, please see the OpenAPS documentation.
"},{"location":"settings/services/nightscout/#trio-setup","title":"Trio Setup","text":"To enable your nightscout connection, input your Nightscout URL, including the https://
and your API_SECRET
. Select Allow uploads
so Trio can share its predictions and settings with Nightscout.
Allows configuration of Trio notifications. Adjust based on your preferences.
Notifications can be enabled/disabled by toggling Allow Notifications
on/off in iPhone Settings > Notifications > Trio
.
This will add your current glucose on top of your Trio icon.
"},{"location":"settings/services/notifications/#always-notify-glucose","title":"Always Notify Glucose","text":"A notification will be triggered every time your glucose is updated in Trio.
"},{"location":"settings/services/notifications/#always-play-alert-sound","title":"Always play alert sound","text":"This will cause a sound to be triggered by every Trio notification.
"},{"location":"settings/services/notifications/#also-add-source-info","title":"Also add source info","text":"The source of the glucose reading will be added to the notification.
"},{"location":"settings/services/notifications/#low","title":"Low","text":"Set this to the highest value you want a low glucose notification to be triggered at.
"},{"location":"settings/services/notifications/#high","title":"High","text":"Set this to the lowest value you want a high glucose notification to be triggered at.
"},{"location":"settings/services/notifications/#carbs-required-threshold","title":"Carbs Required Threshold","text":"Trio may predict a low blood sugar event and recommend consuming a suggested amount of carbs. Carbs Required Threshold
determines the minimum amount of carbs required before Trio sends a notification.