Skip to content

Getting Started

Elizabeth Adams edited this page Apr 9, 2019 · 7 revisions

We’ve already put most of the code together, but you'll need you to make a few adjustments along the way. There is lots of opportunities for expanding on what we've done, too.

To retrieve all of the things we’ve prepared for you, you’ll need to clone the repository from GitHub. You will want to run this script on a dedicated device. You can use a laptop or Raspberry Pi.

To clone the repository all we need to do is go into our computer's or Pi’s terminal, and type this command:

$ git clone https://github.com/InitialState/airvisual.git

Hit enter and you’ll see this information:

$ git clone https://github.com/InitialState/airvisual.git
Cloning into 'airvisual'...
remote: Enumerating objects: 21, done.
remote: Counting objects: 100% (21/21), done.
remote: Compressing objects: 100% (20/20), done.
remote: Total 20 (delta 5), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (21/21), done.

Once you see this then congrats, you’ve successfully cloned the GitHub Repo and have all of the necessary files to build this project.

Let’s move into the new directory. To change directory’s, all you need to do is type “cd” and then type the name of the directory that you wish to go to. In this case, we’ll type

 $ cd airvisual

Once we hit enter, you’ll see that we’re now in the airvisual directory. Let’s type ls to see what files we’ve installed. You should seem something as follows:

 LICENSE   README.md   airquality.py

We need some other items before we can edit the code so let's look at the Air Quality API next.

<< Introduction - AirVisual API >>

Clone this wiki locally