Skip to content

This project implements a Weather Agent that utilizes the OpenWeatherMap API to fetch and process weather information for different cities.

License

Notifications You must be signed in to change notification settings

Busrapehlivan/weather_agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Agent

This project implements a Weather Agent that utilizes the OpenWeatherMap API to fetch and process weather information for different cities.

Features

  • Fetch current weather data for any city
  • Display temperature, humidity, weather conditions, and wind speed
  • Error handling for API requests
  • Environment variable support for API key security

Setup

  1. Sign up for a free API key at OpenWeatherMap
  2. Create a .env file in the project root and add your API key:
    OPENWEATHER_API_KEY=your_api_key_here
    
  3. Install dependencies:
    pip install -r requirements.txt
    

Usage

Run the script with:

python weather_agent.py

The agent will prompt you to enter a city name and will display the current weather information for that location.

About

This project implements a Weather Agent that utilizes the OpenWeatherMap API to fetch and process weather information for different cities.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages