Real-time weather data
This is a comprehensive project. The knowledge points are mainly from Chapter 1, Fundamentals of Data Collection, Cleaning, and Preprocessing, and Chapter 3, Visualization with Statistical Graphs.
The free weather API provides current weather data for more than 200,000 cities in the world. You can apply for a free trial here: https://openweathermap.org/api. In this example, you will build a visualization of the temperature for major US cities. Refer to the following instructions:
- Read the API documentation for the current endpoint: https://openweathermap.org/current. Write some short scripts to test the validity of your API key by querying the current weather in New York. If you don't have one, apply for a free trial.
- Write another function that will parse the returned data into tabular format.
- Query the current weather in Los Angeles, Chicago, Miami, and Denver as well. You may want to store their zip codes in a dictionary for reference...