Skip to content

Instantly share code, notes, and snippets.

@msrcgm

msrcgm/Chapter 4 Secret

Created September 17, 2015 06:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msrcgm/0fafb4bd8445687c2906 to your computer and use it in GitHub Desktop.
Save msrcgm/0fafb4bd8445687c2906 to your computer and use it in GitHub Desktop.
Proposed new Chapter 4 to setup guide
Section 4 -- Using the Open APS tools
Now that you have successfully installed the software tools that will ultimately run your OpenAPS system, you need to learn to actually use those tools. Before you can do that, you need to create a place to hold all your Open APS files and inner workings. That place is called a “Repo” (think repository).
Step 4.1: Create a Repo on your RPi2
Type: openaps init myopenaps
You will see the following response to that command explaining that a repository is being created:
Initialized empty Git repository in /home/pi/myopenaps/.git/
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: empty ident <pi@raspberrypi.(none)> not allowed
Next, respond to the command by providing your user email and user name with the commands requested, so type:
git config --global user.email "you@yourdomain"
then type:
git config --global user.name "your github account name"
Step 4.2: Accessing and Working with your “myopenaps” file
Now that you have a Repo set up, you are going to be working within a specific file held in that respository. That file is called “myopenaps” and you need to go into that file and start working there. To do that type:
openaps init myopenaps
Next, you want to navigate your terminal to point into your myopenaps file by typing:
cd myopenaps
Now your command line prompt should look like this within terminal:
pi@raspberrypi ~/myopenaps $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment