Skip to content

jsubroto/5-day-weather-forecast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

5 Day Weather Forecast

Python application which calls the OpenWeatherMap API to get a 5-day weather forecast, partitioned into 3-hour blocks.

Input

  • City Name
  • or Zip Code

Output

  • City name
  • Country code
  • Datetime (YYYY-MM-DD HH:MM UTC)
  • Weather condition
  • Temperature (°C and °F)
  • Humidity

Getting Started

  1. Get an API key
    Sign up and get an API KEY: https://openweathermap.org/api

  2. Set up environment
    Copy the example file and edit your API key:

    cp .env.example .env

    Then open .env and replace with your key:

    OPENWEATHER_API_KEY=your-api-key-here
  3. Run the app
    Using uv:

    uv run --env-file .env main.py
  4. Read the API docs
    5-day forecast: https://openweathermap.org/forecast5

About

Python application which calls the OpenWeatherMap API to get a 5 day weather forecast

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages