Build a Python Weather App

Six short lessons. By the end you'll have a program that fetches a real forecast and charts it.

What you'll learn

Before you start

The lessons

  1. 1Meet the weather APIAsk a real weather service a question and see what it says back.
  2. 2Fetch the forecastWrap the request in a function and turn the answer into Python data.
  3. 3Read the dataPull out the times and temperatures and print a tidy table.
  4. 4Save your readingsWrite the forecast to a file so you can look at it later.
  5. 5Draw a chartTurn the numbers into a picture with matplotlib.
  6. 6Make it yoursChange the city, the units and the chart, and plan what to build next.