codex-lv2-may-2025

Level Navigation: 1 2 Current Level: 3 4 5 6 7 8 9 10

Step 3: Copy Weather Data

Goal: Get weather data from previous lessons or download fresh data for your app.


📋 What You’ll Do

  1. Choose between two options for getting weather data
  2. Get weather data for New Orleans to start your app
  3. Save the data in a format you can use

🚀 Step-by-Step Instructions

If you completed Week 6 Lesson 2, you already have weather data:

Option B: Download Fresh Data

If you need fresh weather data:

  1. Open Postman
  2. Use the Open-Meteo API from Lesson 2
  3. Get weather for New Orleans (coordinates: 29.95, -90.07)
  4. Save the response as current-weather.json

API Details (if needed)

URL: https://api.open-meteo.com/v1/forecast
Parameters:
- latitude: 29.95
- longitude: -90.07
- current_weather: true

💡 What This Accomplishes

Weather data is the core content that your app will display. By using real API data from previous lessons or downloading fresh data, you ensure your app works with authentic information rather than placeholder text. This step also reinforces the connection between different lessons and shows how data can be reused across projects.


Check Your Work


🔗 Navigation


Ready for the next step? Continue to Step 4: Create POJO in script.js


Level Navigation: 1 2 Current Level: 3 4 5 6 7 8 9 10