Skip to content

sanyamsj97/Weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Weather Forecasting Tool

Description

The Weather Forecasting Tool is a command-line application built with Python that provides users with real-time weather forecasts for cities worldwide. It leverages the OpenWeatherMap API to fetch weather data and offers a user-friendly interface to display the forecasted information.

Features

  • Fetches current weather forecasts for cities using the OpenWeatherMap API.
  • Displays information such as temperature, humidity, wind speed, and weather description.
  • Supports input for any city worldwide.
  • Handles API requests, JSON parsing, and error handling.
  • Utilizes the GitHub Copilot coding assistant to streamline development.

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/weather-forecasting-tool.git
  2. Install the required dependencies:

    pip install requests
  3. Obtain an API key from OpenWeatherMap:

    • Visit the OpenWeatherMap website and sign up for a free API key.
    • Replace "YOUR_API_KEY" in the code with your actual API key.

Usage

  1. Open a terminal or command prompt.

  2. Navigate to the project directory.

  3. Run the script:

    python weather_forecast.py
  4. Enter the name of a city when prompted.

  5. The weather forecast for the specified city will be displayed in the console.

Contributing

Contributions are welcome! If you have any suggestions, improvements, or bug fixes, please submit a pull request.

License

This project is licensed under the MIT License.


Feel free to customize this README.md file according to your project's specific details and requirements. Provide instructions for installation, usage, and contribution, and make sure to mention the license under which the project is released.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages