Skip to content

Commit a19c620

Browse files
committed
Merge pull request openaps#135 from openaps/dev
Dev to master
2 parents a94894f + 8ce17fe commit a19c620

19 files changed

+323
-156
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ Below is an overview of all content linked inside of this document repository. [
125125
* <a href="docs/docs/walkthrough/phase-6/considerations.md" class="reference internal">Phase 6: Iterating on Your Closed Loop</a>
126126
* <a href="docs/docs/walkthrough/phase-6/keeping-up-to-date.md" class="reference internal">So you think you’re looping? Now keep up to date!</a>
127127
* <a href="docs/docs/walkthrough/phase-6/daytime-testing.md" class="reference internal">Testing during the day</a>
128+
* <a href="docs/docs/walkthrough/phase-6/Usability-considerations.md" class="reference internal">Usability Considerations</a>
128129
* <a href="docs/docs/walkthrough/phase-6/advanced-features.md" class="reference internal">Advanced features</a>
129130
* <a href="docs/docs/walkthrough/phase-6/Configure-Automatic-Sensitivity-Mode.md" class="reference internal">Configuring Automatic Sensitivity Mode</a>
130131
- <a href="docs/docs/Resources/index.rst" class="reference internal">Resources</a>

docs/Resources/wifi.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
###Wifi Troubleshooting
2+
3+
#My wifi connection keeps dropping and/or I keep getting kicked out of ssh
4+
There is a script that you can add to your root cron that will test your connection and reset it if it is down. Here is an example that runs every two minuntes (odd minutes). You could also do it every 5 minutes or less. Note, this does not have to be for an Edison, you can set this up for a Pi, etc as well.
5+
6+
```
7+
cd ~/src
8+
git clone https://github.com/TC2013/edison_wifi
9+
cd edison_wifi
10+
chmod 0755 /home/edison/src/edison_wifi/wifi.sh
11+
```
12+
Next, add the script to your root cron. Note this is a different cron that what your loops runs on, so when you open it don't expect to see your loop and other items you've added.
13+
* Log in as root ```su root```
14+
* Edit your root cron ```crontab -e```
15+
* Add the following line ```1-59/2 * * * * /home/edison/src/edison_wifi/wifi.sh google.com 2>&1 | logger -t wifi-reset```
16+
17+
#I forget to switch back to home wifi and it runs up my data plan
18+
You can add a line to your cron that will check to see if <YOURWIFINAME> is avaiable and automatically switch to it if you are on a different network.
19+
* Log in as root ```su root```
20+
* Edit your root cron ```crontab -e```
21+
* Add the following line ```*/2 * * * * ( (wpa_cli status | grep <YOURWIFINAME> > /dev/null && echo already on <YOURWIFINAME>) || (wpa_cli scan > /dev/null && wpa_cli scan_results | egrep <YOURWIFINAME> > /dev/null && udo pa_cli select_network $(wpa_clilist_networks | grep jsqrd | cut -f 1) && echo switched to <YOURWIFINAME> && sleep 15 && (for i in $(wpa_cli list_networks | grep DISABLED | cut -f 1); do wpa_cli enable_network $i > /dev/null; done) && echo and re-enabled other networks) ) 2>&1 | logger -t wifi-select```
22+
23+
#I am having trouble consistently connecting to my wifi hotspot when I leave the house (iPhone)
24+
When you turn on your hotspot it will only broadcast for 90 seconds and then stop (even if it is flipped on). So, when you leave your house you need to go into the hotspot setting screen (and flip on if needed). Leave this screen open until you see your rig has connected. It make only take a few seconds or a full minute.

docs/docs/Images/Pull_Request.png

83.9 KB
Loading

docs/docs/Resources/my-first-pr.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,32 @@ It's actually not too hard to do one and it is a great way to contribute. This d
77
* Double checking that they your edits look good to you on your copy.
88
* Make a few notes for what you did so people can understand why you made the change.
99
* Then do a pull request, which is to ask the administrataors of the repository to pull your changes
10-
back into the dev branch of the main repository.
10+
back into the dev (not master) branch of the main repository.
1111
* At which time they will do a quick review and merge your changes in.
1212

1313
OK, let's get started. For our example we are going to make an edit to the openaps docs repository.
1414

1515
1. Go to https://github.com/openaps/docs and hit Fork in the upper right to make your own copy of the repository.
1616
2. Github will automatically take you to your copy (notice in the address bar you are now in your own personal github directory)
17-
3. In the branch drop down on the upper left of the page we are going to select the dev branch, since that is the one we want to edit.
17+
3. In the branch drop down on the upper left of the page we are going to select the dev branch instead of master, since that is the one we want to edit.
1818
4. Now we need to find the file we want to edit. Click through the directory structure until you find and are looking at the content of the file you want to change.
1919
5. Next, press the pencil icon in the upper right next to the trash can icon.
2020
6. Make edits to the file as necessary.
2121
7. Next we want to commit our changes. But first we should note what we changed and why. Be sure to put a one liner explaining the why of making the changes you did.
2222
8. Commit the changes.
2323
9. Now look and make sure everyting you changed looks like you meant it to (no typos, etc). If any problems, go back and edit again and save again.
2424

25-
We now have an improved file that we want to be pulled back into the dev repository at https://github.com/openaps/docs
26-
27-
1. Go to https://github.com/openaps/docs
28-
2. Select dev from the branch drop down on the upper left (since that's where we'd like the changes to go to)
29-
3. Press the pull request button
30-
4. Set up the the branches you are targeting. The easiest way of thinking about the branch range is this: the base branch is where you think changes should be applied, the head branch is what you would like to be applied.
31-
5. So choose so the base fork as openaps/docs and then the base as dev. The head fork is going to be <youraccount>/docs and the base as dev.
32-
6. It should show the list of changes you made. If not, you did something wrong so stop here and ask for help. If the list looks like your changes then put a note in there to what the overarching reason for the changes are (in your case you only made one, but you could have made a bunch). Create the PR.
25+
We now have an improved file that we want to be pulled back into the dev branch of the openaps/docs repository at https://github.com/openaps/docs
26+
27+
1. Go to https://github.com/[YOUR_GITHUB_USERNAME]/docs
28+
* Or you can go to https://github.com and then click on "docs" in the "Your repositories" section in the lower right. Both methods will get you to the right place.
29+
2. Select "dev" (not "master") from the branch drop down on the upper left (since that’s where we’d like the changes to go to)
30+
3. Click the green "New pull request" button
31+
4. Under the Compare Changes heading, click "compare across forks"
32+
5. Set up the the branches you are targeting. The easiest way of thinking about the branch range is this: the base branch is where you think changes should be applied, the head branch is what you would like to be applied.
33+
6. So, choose the base fork as openaps/docs and then the base as dev (not master). The head fork is going to be <i>youraccount</i>/docs and the base as dev (not master).
34+
![Pull Request](../Images/Pull_Request.png)
35+
7. It should show the list of changes you made. If not, you did something wrong so stop here and ask for help. If the list looks like your changes then put a note in there to what the overarching reason for the changes are (in your case you only made one, but you could have made a bunch). Create the PR.
3336

3437
It will now be in a list of PR's that the team will review and potentially give feedback on before committing to the main documentation for openaps!
3538

docs/docs/Resources/troubleshooting.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ OpenAPS uses git as the logging mechanism, so it commits report changes on each
5454

5555
To fix a corrupted git repository you can run `oref0-fix-git-corruption.sh`, it will try to fix the repository, and in case when repository is definitly broken it copies the remainings in a safe place (`tmp`) and initializes a new git repo.
5656

57-
Warning: do not run any openaps commands with sudo in front of it `sudo openaps`. If you do, your .git permissions will get messed up. Sudo should only be used when a command needs root permissions, and openaps does not need that.
57+
Warning: do not run any openaps commands with sudo in front of it `sudo openaps`. If you do, your .git permissions will get messed up. Sudo should only be used when a command needs root permissions, and openaps does not need that. Such permission problems can be corrected by running `sudo chown -R pi.pi .git` in the openaps directory. If you are using an Intel Edison, run `sudo chown -R edison.users .git`.
5858

5959
### Environment variables
6060

@@ -74,5 +74,7 @@ json: error: input is not JSON: Unexpected '<' at line 1, column 1:
7474
7575
This error usually comes up when you have pulled a file down from Nightscount that was an invalid file. Typcially you might see this when trying to pull down treatments. Make sure that you have your HOST and API_KEY set correctly at the top of your cron, in your ~/.profile
7676

77+
### Wifi and hotspot issues
78+
See [wifi troubleshooting page](wifi.md)
7779

7880

75.7 KB
Loading

docs/docs/walkthrough/phase-0/hardware.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
# Hardware
33
This section describes the hardware components required for a 'typical' OpenAPS implementation. There are numerous variations and substitutions that can be made but the following items are recommended for getting started. If you come across something that doesn't seem to work, is no longer available, or if you have a notable alternative, feel free to edit this document with your suggestions.
44

5+
To start, here is a high-level guide for understanding if your pump is compatible for OpenAPS:
6+
7+
!["Can I do OpenAPS with this pump?"](https://github.com/openaps/docs/blob/b6b742d30b8313dce33b59fc279647343e4915cb/docs/docs/walkthrough/phase-0/Can%20I%20close%20the%20loop%20with%20this%20pump_May%2020%202016.jpg "Can I do OpenAPS with this pump?")
8+
59
If you're interested in working on communication for another pump (Omnipod, Animas, etc), [click here](http://bit.ly/1nTtccH) to join the collaboration group focusing on alternative pump communication.
610

711

@@ -13,7 +17,9 @@ If you're interested in working on communication for another pump (Omnipod, Anim
1317
* 515/715
1418
* 522/722
1519
* 523/723 (with firmware 2.4A or lower)
16-
* 554 (European Veo, with firmware 2.6A or lower)
20+
* 554/754 (European Veo, with firmware 2.6A or lower)
21+
* (To check firmware, hit Esc on the home screen and scroll all the way to the bottom. You can also go into the Utilities menu and look for a PC Connect option. If that is present, the pump will *not* work for looping. If it's absent, it should be able to receive temp basal commands.)
22+
1723
* <b>A way to communicate with the pump</b>:
1824
* Medtronic CareLink USB stick is the recommended option for your initial loop setup
1925
* **Note** that there are now other hardware options available to communicate with the pump. Some positives to an alternative include better range; some negatives include having to solder and the fact that they're not documented in this set of documentation yet. But if you're interested, check out some of the alternatives in [the mmeowlink wiki](https://github.com/oskarpearson/mmeowlink/wiki).
@@ -121,6 +127,7 @@ A large-capacity power supply that is greater than 8000 mAh (milliAmp-hours) is
121127

122128
[TeckNet® POWER BANK 9000mAh USB External Battery Backup Pack](http://www.amazon.com/gp/product/B00FBD3O2M)
123129

130+
[Zendure® 2nd Gen A3 Portable Charger 10000mAh - 2.1a Dual USB - in-line charging](www.amazon.com/Zendure-2nd-Portable-Charger-10000mAh/dp/B014RBEAQC/ref=sr_1_1)
124131

125132
### USB Cables
126133

@@ -138,10 +145,9 @@ Repeated wireless communication with the pump drains the battery quite quickly.
138145

139146
### Cases
140147

141-
The Raspberry Pi is extremely minimalistic and does not come in a protective case. This is fine for development work, but presents an issue for day-to-day use. There are hundreds of cases available, but here some examples of what others are using in their OpenAPS builds.
148+
The Raspberry Pi is extremely minimalistic and does not come in a protective case. This is fine for development work, but presents an issue for day-to-day use. There are hundreds of cases available, but here is an example of what others are using in their OpenAPS builds.
142149

143150
[JBtek® Jet Black Case for Raspberry Pi B+ & Raspberry Pi 2 Model B](http://www.amazon.com/gp/product/B00ONOKPHC)
144151

145-
[Raspberry Pi B+ /PI2 Acrylic Case](http://www.amazon.com/Raspberry-Pi-PI2-Acrylic-Case/dp/B00M9ZW6QU)
146152

147153
Additionally, for mobile use, it is helpful to have something besides a lunchbox to carry the entire rig around. The size and weight of the component set as well as the limited range of the CareLink USB stick constrains the options here, but there are still some workable solutions. Waist-worn running gear and camera cases seem to work well. Two options: [FlipBelt](https://flipbelt.com/) and [Lowepro Dashpoint 20](http://store.lowepro.com/dashpoint-20).

docs/docs/walkthrough/phase-0/loops-in-progress.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
To get you comfortable with submitting a "PR" (stands for pull request), test it out by submitting a PR to this page, adding your name to the list of people who have loops in progress. This way we know how many people are in the development phase, too.
44

5-
New to Github, and PRs? Check out how to submit your first PR.
5+
New to Github, and PRs? [Check out how to submit your first PR](../../../../docs/docs/Resources/my-first-pr.md).
6+
7+
When you submit the PR, be sure to target the *dev* branch of openaps/docs, not the master branch. If you target master, we'll need to ask you to re-submit, or it will likely cause a merge conflict with edits from people who correctly targeted dev.
68

79
List of people who are working on closed loops:
810

@@ -11,7 +13,16 @@ List of people who are working on closed loops:
1113
- Chris Hannemann
1214
- Sarah Howard
1315
- Mike Stebbins
16+
- Scott Hanselman
17+
- Greg Scull
1418
- Aaron Michelson
1519
- Jayson EWER --Intel Edison w/ TI--cc1111
1620
- Frank Best
21+
- Brooke Armstrong & Matt Pazoles
22+
- David Young
23+
- Paul Martin
24+
- Jarred Yaw
25+
- Shane Mitchell
1726
- Boris and Kayley Raskin
27+
- Andy Pabari
28+
- Rob Kresha - (Papillion, NE, USA)

0 commit comments

Comments
 (0)