Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

🌦️ Weather App Using OpenWeatherMap API

A simple Python application that fetches and displays real-time weather information for any city using the OpenWeatherMap API.

🚀 Features

  • Get current weather information for any city
  • Display temperature in Celsius
  • Show current weather conditions
  • Simple command-line interface
  • Uses real-time data from the OpenWeatherMap API

🛠️ Technologies Used

  • Python 3
  • Requests library
  • OpenWeatherMap API

📂 Project Structure

WeatherAppUsingAPI/
│
├── weather_app.py
├── README.md
└── requirements.txt

📋 Prerequisites

Before running this project, ensure you have:

  • Python 3 installed
  • An active internet connection
  • An OpenWeatherMap API key

🔑 Getting an API Key

  1. Visit https://openweathermap.org/
  2. Create an account or log in.
  3. Navigate to the API Keys section.
  4. Generate a new API key.
  5. Wait for the key to become active (it may take some time).

⚙️ Installation

  1. Clone this repository:
git clone https://github.com/your-username/WeatherAppUsingAPI.git
  1. Navigate to the project directory:
cd WeatherAppUsingAPI
  1. Install the required dependencies:
pip install requests

▶️ Usage

  1. Open the weather_app.py file.

  2. Replace the placeholder API key with your own:

API_KEY = "YOUR_API_KEY"
  1. Run the application:
python3 weather_app.py
  1. Enter the city name when prompted:
Enter city name: Lucknow

📌 Sample Output

Enter city name: Lucknow

Weather in Lucknow:
Temperature: 39.1°C
Condition: broken clouds

🔮 Future Enhancements

  • Display humidity and wind speed
  • Show "feels like" temperature
  • Add support for multiple city searches
  • Improve error handling
  • Create a graphical user interface (GUI)

🤝 Contributing

Contributions, issues, and feature requests are welcome.

📄 License

This project is open-source and available under the MIT License.


Made with ❤️ using Python and OpenWeatherMap API.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages