Getting my code....
Okay, here comes the crux. Getting a copy of my code. Get your ssh and git ready.
You needed to have:
- ssh client with ssh public key created (as per video) ready
- git client ready
Clone my repo, push to your Resin
- Go to your Resin.io page.
- Click on Application.
- In top right, there is a command starting with "git remote add....". Copy this command for later.
- Open up a terminal window or command prompt.
- Optionally change to a directory you want to store the code in. Wherever it is.... remember this location!
- Type the following git clone command:
- Which would sort of look like this:
- Change into that directory using:
cd resin-docker-rtlsdr
- Copy and paste the command you copied back in step 3 above. Press enter.
Example:
git remote add resin something@git.resin.io:somethingelse/yourproject.git
- Type the following git command:
git push resin master
- If you have issues you can force it by instead typing
git push --force resin master
- Wait for stuff to happen. A lot of stuff. Actually what you see happening is a complete install of everything!! The first time takes a long time, every time after that is a cinch.
- When you see the pretty unicorn - it's done.
What's happened?
Basically....
- You have copied my scripts and code to your computer
- You have pushed this code to your Resin
- Your Resin has pushed this code to your Raspberry Pi. Actually..... shortly, it will already be running Planefinder, Flightaware and Flightradar24 - with maybe some variables required.