Skip to content

Commit 3f1646c

Browse files
authored
Merge pull request #628 from marionbarker/working-docs
Update Customization and Loop Follow information
2 parents f5284b4 + 68e0739 commit 3f1646c

File tree

11 files changed

+134
-105
lines changed

11 files changed

+134
-105
lines changed

docs/build/code_customization.md

+85-62
Large diffs are not rendered by default.

docs/build/step14.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Go to the Finder app, click on Applications, then open the Utilities folder. Lo
109109
* Please read each step as if you are a new builder
110110
* Don't assume you know what you are doing
111111
* [FreeAPS](https://www.loopandlearn.org/freeapsdoc) is no longer supported by the Build Select Script
112-
* [Loop 3 with Patches](https://www.loopandlearn.org/github-lnl-patches) is provided instead
112+
* [Loop 3 with Patches](https://www.loopandlearn.org/main-lnl-patches) is provided instead
113113

114114
These instructions show each step needed to download Loop using the Build-Select script.
115115

@@ -120,8 +120,8 @@ These instructions show each step needed to download Loop using the Build-Select
120120

121121
Consider using Loop 3 as designed. If you need Libre or want the CustomTypeOne patches, those are provided in the Loop with Patches selection in the Build Select Script.
122122

123-
* Information about [Loop Follow](https://github.com/jonfawcett/LoopFollow#readme)
124-
* Information about [Loop with Patches](https://www.loopandlearn.org/build-select/)
123+
* Information about [Loop Follow](https://www.loopandlearn.org/loop-follow)
124+
* Information about [Loop with Patches](https://www.loopandlearn.org/main-lnl-patches/)
125125
* Warning, the Loop with Patches is updated **after** the main Loop is released. Typically it is updated within a day, but don't assume. Check that link for updates.
126126

127127
You do not need to know about these options to build Loop.
@@ -148,7 +148,7 @@ Next you will see an introduction to the Build-Select script. Please read this.
148148
![choose to build Loop](img/bss-02-menu-message.svg){width="700"}
149149
{align="center"}
150150

151-
Next you are asked which version of Loop you would like to build. Type 1 and return to build Loop (as shown in the graphic below) or 2 for the fork of Loop with added Libre CGM options and CustomTypeOne patches.
151+
Next you are asked which version of Loop you would like to build. Type 1 and return to build Loop (as shown in the graphic below) or 2 for the fork of Loop with added Libre CGM options, CustomTypeOne patches and a custom logo.
152152

153153
![choose which Loop to build](img/bss-03-choose-fork.svg){width="700"}
154154
{align="center"}

docs/build/step4.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
!!! question "FAQs"
1717

18-
- **"What about Libre sensors?"** A [fork of Loop](https://www.loopandlearn.org/github-lnl-patches) is available with added Libre support
18+
- **"What about Libre sensors?"** A [fork of Loop](https://www.loopandlearn.org/main-lnl-patches) is available with added Libre support
1919
- **"What about Eversense?"** Refer to [CGMs Not Supported in Loop](#cgms-not-supported-in-loop)
2020

2121

@@ -70,7 +70,7 @@ Loop 3 can use Nightscout as a remote source for CGM data. This requires cell or
7070

7171
Loop does not directly support some CGM such as Libre, Eversense and Medtronic Guardian.
7272

73-
* A [fork of Loop](https://www.loopandlearn.org/github-lnl-patches) is available with added Libre support
73+
* A [fork of Loop](https://www.loopandlearn.org/main-lnl-patches) is available with added Libre support
7474
* GitHub Build: Refer to the link above for instructions to build this fork
7575
* Mac-Xcode Build: Select the Loop with Patches option in the [Build Select Script](step14.md)
7676

docs/build/testflight-xcode.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ There are several different methods for making use of TestFlight:
66
* Use the GitHub [Browser Build](../gh-actions/gh-overview.md) method to build and distribute your own Loop app
77
* Use TestFlight as a remote distribution (and backup) for an app you build using Xcode
88

9-
If you want to add specific customizations, [Customize your Loop](../build/code_customization.md), to your build, that can be more difficult with the GitHub method. There are a few customizations available from [Loop and Learn: Loop Customization](https://www.loopandlearn.org/github-lnl-patches), but some people prefer additional modifications.
9+
If you want to add specific customizations, [Customize your Loop](../build/code_customization.md), to your build, that can be more tedious with the GitHub method. There are a few (Prepared Patches) customizations available from [Loop and Learn: Loop Customization](https://www.loopandlearn.org/custom-code#prepared-patches), but some people prefer additional modifications. These prepared patches, from LnL or those you create yourself, are added to the build_loop.yml file in your LoopWorkspace fork.
1010

1111
This guide can also be followed to install other apps you build with Xcode via TestFlight. Examples include LoopFollow, LoopCaregiver, xDrip4iOS and GlucoseDirect.
1212

docs/faqs/FAQs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ One exception - if you've chosen to use a CGM source that does require the inter
174174

175175
Many features people used with FreeAPS can be added to Loop 3 with customization. These customizations are supplied as a new branch, main_lnl_patches, on the loopnlearn GitHub site. This includes Libre support and the CustomTypeOne LoopPatches.
176176

177-
* The customizations are described in [Loop and Learn: Loop Customization](https://www.loopandlearn.org/github-lnl-patches)
178-
* For Browser Build, use the GitHub instructions in LoopDocs but fork from loopnlearn GitHub instead of LoopKit as explained [Loop and Learn: GitHub Loop with Patches](https://www.loopandlearn.org/github-lnl-patches/#github)
177+
* The customizations are described in [Loop and Learn: Loop Customization](https://www.loopandlearn.org/main-lnl-patches)
178+
* For Browser Build, follow the direction on the page above
179179
* For Mac-Xcode build, these customization were incorporated as an option in the [Build Select Script](../build/step14.md).
180180

docs/faqs/cgm-faqs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## What CGMs does Loop work with?
22

3-
Loop 3 supports G5, G6, G7, Dexcom ONE, Dexcom Share, Nightscout and the Medtronic CGM systems compatible with Looping pumps. [Loop and Learn: Loop Customization](https://www.loopandlearn.org/github-lnl-patches) can be used which adds support for some Libre sensors.
3+
Loop 3 supports G5, G6, G7, Dexcom ONE, Dexcom Share, Nightscout and the Medtronic CGM systems compatible with Looping pumps. [Loop and Learn: Loop Customization](https://www.loopandlearn.org/main-lnl-patches) can be used which adds support for some Libre sensors.
44

55
Loop 2.2.x supports Dexcom G4 with share, G5, G6, Dexcom ONE, Dexcom Share and the Medtronic CGM systems compatible with Looping pumps.
66

@@ -82,7 +82,7 @@ If you want to use a Libre sensor you will need to modify Loop to accomplish tha
8282

8383
With Loop 3, a customization can be used to support some Libre sensor CGM.
8484

85-
Please refer to [Loop and Learn: Loop 3 with Customization](https://www.loopandlearn.org/github-lnl-patches/)
85+
Please refer to [Loop and Learn: Loop 3 with Customization](https://www.loopandlearn.org/main-lnl-patches/)
8686

8787
## Can I use Eversense?
8888

docs/gh-actions/gh-customize.md

+31-22
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
## Hot Topics
22

33
!!! tip "Pro Tip"
4-
You can also use this same method to create a set of personal patches. You can use (and re-use) your patches with Mac-Xcode builds so you don't have to repeat the customization with every update.
4+
The method on this page allows you to create a set of personal patches. You can use (and re-use) your patches with Mac-Xcode builds so you don't have to repeat the customization with every update.
55

66
* If you are building with Mac-Xcode method, you will use the same lines found in the [Prepare the Patches](#prepare-the-patches) section, but will paste them in your terminal to customize your code
77

8-
!!! danger "DRAFT"
9-
This procedure is in DRAFT mode - only minimal graphics are provided.
10-
11-
The entire procedure may change without warning, so be prepared for updates.
12-
13-
* 27-March 2023: Method updated and modified
14-
* Improvement, you can reuse the customization with each update unless there is a conflict
15-
* You will paste the patch into the build_loop.yml file (we'll tell you how)
16-
17-
WARNING - After a recent release - wait for the release number to be updated on this page before using any of the copy/paste commands.
8+
!!! warning "Submodule Instructions"
9+
This page has instructions to prepare branches for the Modules associated with LoopWorkspace that exactly match the current release. You can then edit that code and save (commit) the change to **your fork** to prepare your personal patch.
10+
11+
**Please do not click on boxes that GitHub might show you that ask if you want to merge changes from your fork back to LoopKit.** These changes are for **your fork** only. Ignore those prompts.
12+
13+
* You can often use the same patch for several releases
14+
* If a patch that you prepared for an older release says "patch does not apply" when you use it, you'll need to prepare a new one
15+
* Please wait for this page to be updated to the current release before generating an updated patch
1816

19-
This page was updated for Loop 3.2.1 on 22-March-2023.
17+
This page is valid for Loop 3.2.1.
2018

2119
## Overview
2220

@@ -113,13 +111,18 @@ curl https://github.com/username/Module/commit/SHA-1.patch | git apply -v --dire
113111

114112
where:
115113

114+
* `curl` means copy from URL
116115
* username is your GitHub username
117116
* Module is where you made the customization (notice it is in multiple places)
118117
* SHA-1 is the full identifier for the commit that has the change; there is a copy button to make this easy
119-
* the `.patch` after the SHA-1 is github magic that formats that code change into a patch
118+
* the `.patch` after the SHA-1 is GitHub magic that formats that code change into a patch
119+
120+
To view the exact code change associated with that patch, open a browser at the URL of `https://github.com/username/Module/commit/SHA-1`.
120121

121122
## Create a Fork for Selected Module
122123

124+
### Code Updates
125+
123126
!!! warning "New Release"
124127
If you have previously used this process for a prior release, use the same Modules you already forked.
125128

@@ -134,7 +137,9 @@ where:
134137

135138
Skip ahead to [Open Module in Codespaces](#open-module-in-codespaces).
136139

137-
If you want a modification that uses a particular module, you must fork that module to your GitHub account. You will repeat the Fork and Modify steps for each module.
140+
### New Fork
141+
142+
If you want a modification that uses a particular Module, you must fork that module to your GitHub account. You will repeat the Fork and Modify steps for each module.
138143

139144
1. Log into your GitHub account
140145
1. Right click (or control click) on the URL in the table above
@@ -167,9 +172,9 @@ When you fork a repository, the default branch is the one that is forked. That i
167172
This page has instructions for applying customizations to released code, main branch of LoopWorkspace. Don't worry that some of the other repositories have dev for the default branch. With the exception of the Loop module, everything you need to create your patches is included in the default branches of the lower level repositories (Modules). For Loop, you will also need a main branch. See [Connect Fork to New Branch](gh-update.md#connect-fork-to-new-branch)
168173

169174
!!! warning "Loop with LnL Patches"
170-
Some Loop users build with the loopnlearn version of LoopWorkspace using the main_lnl_patches branch. At the current time, this process involves making your LoopWorkspace fork from loopnlearn instead of LoopKit. In the future, you will be able to get the same patches by a different method.
175+
Some Loop users build with the loopnlearn version of LoopWorkspace using the [main_lnl_patches](https://www.loopandlearn.org/main-lnl-patches) branch. Initially, this process involved making your LoopWorkspace fork from loopnlearn instead of LoopKit. You have the option of deleting that fork and starting over with LoopKit and apply those same patches in the build-loop.yml file of your new fork, see [Loop and Learn: LnL Patches](https://www.loopandlearn.org/custom-code/#lnl-patches).
171176

172-
The process for creating your own customized patch is the same as those using the released code. There will be extra information about modifying the build_loop.yml depending on which LoopWorkspace you choose to fork (LoopKit or loopnlearn). But that documentation is not ready yet.
177+
The process for creating your own customized patch is the same as those using the released code.
173178

174179
## Open Module in Codespaces
175180

@@ -348,8 +353,6 @@ For each modification, there is a `Key_Phrase` to help you find the line of code
348353

349354
Click on the codespaces magnifying glass, paste the `Key_Phrase` into the search bar. If you use the copy icon and paste the `Key_Phrase`, you'll need to hit backspace to remove the extra return.
350355

351-
TO DO - put in a GIF showing making changes.
352-
353356
Make the change and save the file.
354357

355358
The source control icon now has a number showing. The number is how many different files in this Module that you have modified. Sometimes, more than one customization is added to a given file.
@@ -380,7 +383,7 @@ You are done with this module.
380383
Click the Codespaces icon at bottom left.
381384
Choose Stop Codespace from the menu. Don't worry about the changes won't be saved message - you just saved the changes with the sync command above.
382385

383-
The screen will then show the Codespace is stopped message. You can close the tab.
386+
The screen will then show the Codespace is stopped message.
384387

385388
Return to your github account and look at the repository for the Module you just changed. It should be similar to the graphic below.
386389

@@ -389,9 +392,13 @@ Return to your github account and look at the repository for the Module you just
389392

390393
## Prepare the Patches
391394

392-
While you have this Module open, go on an prepare the patch lines you will need to add to the build_loop.yml file.
395+
You will prepare the patches looking at your fork of the Submodule repository under GitHub. Look at your fork, your __main_3.2.1_custom__ branch and click on the clock icon to the right to see the commit history. Each commit has a copy button you can use to copy the full SHA-1 for that commit; and a link you can click to see the changes and comments for that commit.
393396

394-
Add graphic showing several customizations with comments.
397+
**Please do not click on boxes that GitHub might show you that ask if you want to merge changes from your fork back to LoopKit.** These changes are for **your fork** only. Ignore those prompts.
398+
399+
You will need the SHA-1 and the commit comment for each change you made in main_3.2.1_custom.
400+
401+
Add graphic showing GitHub fork with several customizations with comments.
395402

396403
Important: work from older (bottom) to newer (top) commits when creating the patches.
397404

@@ -462,6 +469,8 @@ The indenting needs to match, so tab or (shift-tab) to line up the patches.
462469
* Click on Run workflow on the right side
463470
* Then click on the green Run Workflow button
464471

472+
After waiting about 2 minutes, to make sure there is no error, return to [Codespaces](https://github.com/codespaces). Scroll to the bottom of the screen and delete any codespaces you created above. (Note codespaces must first be stopped and then deleted.)
473+
465474
In about 1 hour, your customized Loop will be available for installation on your phone via TestFlight.
466475

467476
## Special Cases
@@ -494,7 +503,7 @@ What if you already have a fork of one of the modules?
494503

495504
**Your existing fork is from a username other than LoopKit**
496505

497-
If your fork is from loopnlearn then you need to follow the directions (that are not written yet) on the loopandlearn dot org website.
506+
If your fork is from loopnlearn and you want additional customizations, it is easist to delete that fork, make a new one from LoopKit, add the 6 Secrets to the new fork and as part of the changes to build_loop.yml, add the [Loop and Learn: LnL Patches](https://www.loopandlearn.org/custom-code/#lnl-patches) and you additional customizations.
498507

499508
If you know this is a fork you do not care about, you can delete the repository.
500509

docs/gh-actions/gh-other-apps.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Once all six Secrets are added, you will either continue to add the identifiers
7474

7575
## Action: Validate Secrets
7676

77-
When building Loop Follow, the main branch has the new steps that are currently in [Loop dev Actions](gh-update.md#loop-dev-actions) and will be in the next release. The actions will look slightly different than when you built Loop.
77+
The first action step is to Validate Secrets.
7878

7979
![actions shown for Loop 3.1 and newer versions](img/gh-actions-3.1.png){width="200"}
8080
{align="left"}

docs/gh-actions/gh-overview.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ TestFlight is the only method available for installation to a phone when using t
2020

2121
### Cons
2222

23-
The customization process is more involved. One set of commonly requested customizations is available, as explained at [Loop and Learn: Loop Customization](https://www.loopandlearn.org/github-lnl-patches).
23+
The customization process is more tedious to set up but then easy to maintain. One set of commonly requested customizations is available, as explained at [Loop and Learn: Loop Customization](https://www.loopandlearn.org/custom-code#prepared-patches).
2424

25-
* Stick with Mac-Xcode build (for now) if you want to do your own customizations
26-
* You can still use [TestFlight with your Mac-Xcode build](../build/testflight-xcode.md)
27-
* If you still want customizations and don't have a Mac-Xcode system that allows you to customize, there are now instructions at Browser Build [Customize with GitHub](../gh-actions/gh-customize.md)
25+
* There are now instructions at Browser Build [Customize with GitHub](../gh-actions/gh-customize.md)
2826
* These instructions are for released code
2927

3028
## Requirements

docs/nightscout/ns_crossref.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ While the Loop app sends notifications locally on the Loop user's iPhone, parent
2424

2525
### Loop Follow
2626

27-
Loop Follow was created by Jon Fawcett who took ideas from multiple other apps to create a single app to assist in his caregiving role. It is popular with Loopers who like the display and notifications as well as Loop caregivers. It can work with just the Dexcom Share credentials and/or the Nightscout URL and allows for easy customization of alerts and alarms.
27+
Loop Follow was created by Jon Fawcett who took ideas from multiple other apps to create a single app to assist in his caregiving role. It is popular with Loopers who like the display and notifications as well as Loop caregivers. It can work with just the Dexcom Share credentials and/or the Nightscout URL and allows for easy customization of alerts and alarms. Jon has handed over maintenance of this app to the Loop and Learn team.
2828

2929
* Please see
30-
* [Loop Follow github README](https://github.com/jonfawcett/LoopFollow/#loop-follow)
31-
* [Loop Follow Facebook group](https://www.facebook.com/groups/loopfollow)
30+
* [Loop and Learn: Loop Follow page](https://www.loopandlearn.org/loop-follow)
31+
* [Loop and Learn Facebook group](https://www.facebook.com/groups/loopandlearn)
3232

3333
## Pebble Watch
3434

docs/operation/features/notifications.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -164,5 +164,4 @@ Many people use additional apps to assist in following a loved one or to support
164164

165165
![loop follow graphic from the README page](img/loop-follow.png)
166166

167-
For more information, please read the [Loop Follow](https://github.com/jonfawcett/LoopFollow#loop-follow) documentation. You can build Loop Follow using the same [Build Select Script](../../build/step14.md#build-select-script) you used to build the Loop app. (It's one of the options in the menu.)
168-
167+
For more information, please read the [Loop Follow](https://www.loopandlearn/loop-follow) documentation. You can build Loop Follow using the same [Build Select Script](../../build/step14.md#build-select-script) you used to build the Loop app or using the [GitHub Browser Build Method](../../gh-actions/gh-other-apps.md).

0 commit comments

Comments
 (0)