View Single Post
  #9  
Old 17th June 2017, 10:30 PM
Glenn Stewart Glenn Stewart is offline
Member
 
Join Date: Apr 2008
Posts: 20
Default

Getting my code....

Okay, here comes the crux. Getting a copy of my code. Get your ssh and git ready.

You needed to have:
  1. ssh client with ssh public key created (as per video) ready
  2. git client ready

Clone my repo, push to your Resin
  1. Go to your Resin.io page.
  2. Click on Application.
  3. In top right, there is a command starting with "git remote add....". Copy this command for later.
  4. Open up a terminal window or command prompt.
  5. Optionally change to a directory you want to store the code in. Wherever it is.... remember this location!
  6. Type the following git clone command:


  7. Which would sort of look like this:

  8. Change into that directory using:
    cd resin-docker-rtlsdr

  9. 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
  10. Type the following git command:
    git push resin master
  11. If you have issues you can force it by instead typing
    git push --force resin master
  12. 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.
  13. When you see the pretty unicorn - it's done.

What's happened?

Basically....
  1. You have copied my scripts and code to your computer
  2. You have pushed this code to your Resin
  3. 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.

Last edited by Glenn Stewart; 17th June 2017 at 10:53 PM.
Reply With Quote