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.
- 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.
-
Clone the repository:
git clone https://github.com/your-username/weather-forecasting-tool.git
-
Install the required dependencies:
pip install requests
-
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.
-
Open a terminal or command prompt.
-
Navigate to the project directory.
-
Run the script:
python weather_forecast.py
-
Enter the name of a city when prompted.
-
The weather forecast for the specified city will be displayed in the console.
Contributions are welcome! If you have any suggestions, improvements, or bug fixes, please submit a pull request.
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.