Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
8ac49f7
Create New-loop-stages-outline.md
danamlewis Feb 5, 2016
f3ee464
no spaces in filenames please
bewest Mar 22, 2016
111bda0
tweaks for RST
bewest Mar 22, 2016
3b3215a
try out sphinx
bewest Mar 22, 2016
0be2ba6
add requirements?
bewest Mar 22, 2016
217a66c
symlink
bewest Mar 22, 2016
6dabf78
simple test
bewest Mar 22, 2016
148ba69
tweak? for RTD?
bewest Mar 22, 2016
717b05c
tweak auto toc section to Summary for RTD?
bewest Mar 22, 2016
159bc7d
tweaks
bewest Mar 22, 2016
c673621
make it work under sphinx
bewest Mar 22, 2016
e599c7d
enable next/previous links for @danamlewis
bewest Mar 22, 2016
c7d50e7
try to rely on rtd for hosting
bewest Mar 22, 2016
92250f2
try again
bewest Mar 22, 2016
788c344
try again relative to here?
bewest Mar 22, 2016
27ecfb5
try yet again with absolute url
bewest Mar 22, 2016
9ec782b
play around with rst vs md TOC generation
bewest Mar 22, 2016
2af0e46
use sphinx TOC features for TOC only
bewest Mar 22, 2016
791c4d0
add phase-1 using RST toc
bewest Mar 22, 2016
055747e
add phase 2 using sphinx TOC
bewest Mar 22, 2016
88908fa
add phase 3 using sphinx TOC
bewest Mar 22, 2016
ed17f31
add phase 4, but showing how to refer elsewhere
bewest Mar 22, 2016
4c504a0
Merge branch 'new-loop-stages' of github.com:openaps/docs into wip/rst
bewest Mar 22, 2016
71c6c66
include more content/fix image
bewest Mar 22, 2016
9129058
improve images
bewest Mar 22, 2016
4436eb2
include all previous docs I think
bewest Mar 22, 2016
902356b
fix sdformatter image
bewest Mar 22, 2016
c111362
fix several internal links I broke
bewest Mar 22, 2016
1108eb9
make things link together
bewest Mar 22, 2016
6227904
try removing redundant TOC?, add auto-sensitivity
bewest Mar 22, 2016
74502ca
fix links on faq
bewest Mar 22, 2016
89796a4
fix encoding/character errors in iterate-improve
bewest Mar 22, 2016
12c80f4
fix encoding/character errors in manual-system
bewest Mar 22, 2016
f439462
dedent list
bewest Mar 22, 2016
a32a0d9
add some special rst tweaks
bewest Mar 23, 2016
c223635
Merge branch 'dev' of github.com:openaps/docs into wip/rst
bewest Mar 23, 2016
96bed65
quick stab at api reference
bewest Mar 23, 2016
22b7917
stub out manuals for openaps tools
bewest Mar 23, 2016
afe5df9
stub out manual for each oref0 tool
bewest Mar 23, 2016
9172adb
stub out reference page for all tools
bewest Mar 23, 2016
4f1d0a4
try different version of decocare?
bewest Mar 23, 2016
a47d9f0
try again
bewest Mar 23, 2016
945c52b
tweak branch again
bewest Mar 23, 2016
6721bae
tweak versions again
bewest Mar 23, 2016
a1f7059
update
bewest Mar 23, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ _book
*.epub
*.mobi
*.pdf
.*.sw[op]
216 changes: 216 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
# Makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build

# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from http://sphinx-doc.org/)
endif

# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source

.PHONY: help
help:
@echo "Please use \`make <target>' where <target> is one of"
@echo " html to make standalone HTML files"
@echo " dirhtml to make HTML files named index.html in directories"
@echo " singlehtml to make a single large HTML file"
@echo " pickle to make pickle files"
@echo " json to make JSON files"
@echo " htmlhelp to make HTML files and a HTML help project"
@echo " qthelp to make HTML files and a qthelp project"
@echo " applehelp to make an Apple Help Book"
@echo " devhelp to make HTML files and a Devhelp project"
@echo " epub to make an epub"
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
@echo " latexpdf to make LaTeX files and run them through pdflatex"
@echo " latexpdfja to make LaTeX files and run them through platex/dvipdfmx"
@echo " text to make text files"
@echo " man to make manual pages"
@echo " texinfo to make Texinfo files"
@echo " info to make Texinfo files and run them through makeinfo"
@echo " gettext to make PO message catalogs"
@echo " changes to make an overview of all changed/added/deprecated items"
@echo " xml to make Docutils-native XML files"
@echo " pseudoxml to make pseudoxml-XML files for display purposes"
@echo " linkcheck to check all external links for integrity"
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
@echo " coverage to run coverage check of the documentation (if enabled)"

.PHONY: clean
clean:
rm -rf $(BUILDDIR)/*

.PHONY: html
html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."

.PHONY: dirhtml
dirhtml:
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."

.PHONY: singlehtml
singlehtml:
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
@echo
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."

.PHONY: pickle
pickle:
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
@echo
@echo "Build finished; now you can process the pickle files."

.PHONY: json
json:
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
@echo
@echo "Build finished; now you can process the JSON files."

.PHONY: htmlhelp
htmlhelp:
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
@echo
@echo "Build finished; now you can run HTML Help Workshop with the" \
".hhp project file in $(BUILDDIR)/htmlhelp."

.PHONY: qthelp
qthelp:
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/OpenAPS.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/OpenAPS.qhc"

.PHONY: applehelp
applehelp:
$(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp
@echo
@echo "Build finished. The help book is in $(BUILDDIR)/applehelp."
@echo "N.B. You won't be able to view it unless you put it in" \
"~/Library/Documentation/Help or install it in your application" \
"bundle."

.PHONY: devhelp
devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/OpenAPS"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/OpenAPS"
@echo "# devhelp"

.PHONY: epub
epub:
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."

.PHONY: latex
latex:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
@echo "Run \`make' in that directory to run these through (pdf)latex" \
"(use \`make latexpdf' here to do that automatically)."

.PHONY: latexpdf
latexpdf:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through pdflatex..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."

.PHONY: latexpdfja
latexpdfja:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through platex and dvipdfmx..."
$(MAKE) -C $(BUILDDIR)/latex all-pdf-ja
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."

.PHONY: text
text:
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
@echo
@echo "Build finished. The text files are in $(BUILDDIR)/text."

.PHONY: man
man:
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
@echo
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."

.PHONY: texinfo
texinfo:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo
@echo "Build finished. The Texinfo files are in $(BUILDDIR)/texinfo."
@echo "Run \`make' in that directory to run these through makeinfo" \
"(use \`make info' here to do that automatically)."

.PHONY: info
info:
$(SPHINXBUILD) -b texinfo $(ALLSPHINXOPTS) $(BUILDDIR)/texinfo
@echo "Running Texinfo files through makeinfo..."
make -C $(BUILDDIR)/texinfo info
@echo "makeinfo finished; the Info files are in $(BUILDDIR)/texinfo."

.PHONY: gettext
gettext:
$(SPHINXBUILD) -b gettext $(I18NSPHINXOPTS) $(BUILDDIR)/locale
@echo
@echo "Build finished. The message catalogs are in $(BUILDDIR)/locale."

.PHONY: changes
changes:
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
@echo
@echo "The overview file is in $(BUILDDIR)/changes."

.PHONY: linkcheck
linkcheck:
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in $(BUILDDIR)/linkcheck/output.txt."

.PHONY: doctest
doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."

.PHONY: coverage
coverage:
$(SPHINXBUILD) -b coverage $(ALLSPHINXOPTS) $(BUILDDIR)/coverage
@echo "Testing of coverage in the sources finished, look at the " \
"results in $(BUILDDIR)/coverage/python.txt."

.PHONY: xml
xml:
$(SPHINXBUILD) -b xml $(ALLSPHINXOPTS) $(BUILDDIR)/xml
@echo
@echo "Build finished. The XML files are in $(BUILDDIR)/xml."

.PHONY: pseudoxml
pseudoxml:
$(SPHINXBUILD) -b pseudoxml $(ALLSPHINXOPTS) $(BUILDDIR)/pseudoxml
@echo
@echo "Build finished. The pseudo-XML files are in $(BUILDDIR)/pseudoxml."
73 changes: 73 additions & 0 deletions New-loop-stages-outline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
Introduction
* Table of Contents
* Understanding This Guide
* Ways to Contribute
* Where to Go For Help With Your Implementation

Stage 0: General Setup and Project Prep
* Hardware & Equipment You Need
* pulling in hardware alternatives from ‘iterating and improving’, make this page overall more easy to read
* Storing Baseline Data
* Setting Up Your Raspberry Pi or other devices
* Setting Up openaps and dependencies

Stage 1: Logging, Cleaning, Analyzing Data
* Setting up visualization and monitoring
* Include NS related alerts and openaps system alerts for looping/not
*DIYPS style net basal insulin reports should get added to NS reports
* Setup script
* github.com/openaps/oref0/blog/master/bin/ns-uploader-setup.sh with some tweaks)
* Analyze your existing data
* basals & ISF, use NS report or Dex Studio/Clarity, whatever people prefer

Stage 2: Creating an Open Loop
* Configuring and learning to use openaps tools
* much of this covered by script, so mostly pulling suggest and enact from old version
* Running an open loop with oref0
* most of the content previously from creating loop and retry logic
* Building preflight and other checks

Stage 3: Understanding Your Open Loop
* Determining basal recommendations
* https://github.com/openaps/docs/blob/dev/docs/Build-manual-system/Understand-determine-basal.md
* Run for enough days to decide what max basal should be
* How often did you disagree or counteract what the loop was recommending?

Stage 4: Starting to Close the Loop
* Cron instructions (or daemon)
* this is obviously new and needs a lot of thought/contributions
* Observing the closed loop
* Starts with LGS mode only
* Don’t move forward until observed for 3 days
* If any consistent net negative low insulin amounts (check NS reports), then you may be overbolusing for meals and/or basals are too high 1.5-2 hours before the lows are occurring.
* Troubleshooting the closed loop
* Info from validating & testing

Stage 5: Tuning the Closed Loop
* Going beyond low glucose suspend mode
* (moving beyond max iob = 0)
* Tuning your targets
* After 3 days, at least one night with zero low alarms should occur before you consider dropping the max target from 160.
* Only drop 10 points at a time, again observing the outcomes over a few days.
* If going low three+ days, the “min” target may need to be raised

Stage 6: Iterating on the Closed Loop
* So you think you’re looping
* 3 nights consecutively with no major system problems and at least 1 night without low alarms – fill out form and get number
* Tests for when you are running for 24 hours
* Run 24 hours for 3 days (doesn’t have to be consecutive) to get a feel for how the system behaves when you do meal boluses with the system on
* Observe again net basal insulin delivery after 1 week of looping; see times of day when the system gives net negative; again, may be overbolusing and/or basals too high
* Enabling meal-assist and other advanced features
* First, regular carb entry required (so don’t accidentally trigger wtf-assist after meal-assist & co are enabled
* Confirm 1 week successful daytime looping
* Enable meal-assist & co to enable more aggressive high temps (setup script)
* Understanding the –assist features & how it works
* Close observation for a week

Resources
* #OpenAPS overview & history
* General technical resources
* Troubleshooting tips
* FAQs
* Other people, projects, and tools to check out
* Glossary
16 changes: 0 additions & 16 deletions docs/Overview/iterate-improve.md

This file was deleted.

19 changes: 0 additions & 19 deletions docs/Resources/faq.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/index.md

This file was deleted.

Loading