Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

🌤️ Weather App

A simple command-line weather application that fetches real-time weather data for any city using the OpenWeatherMap API.

📋 Features

  • Real-time weather information for any city worldwide
  • Displays temperature in Celsius
  • Shows weather description, humidity, and wind speed
  • Formatted output with current date and time
  • Simple and intuitive command-line interface

🛠️ Technologies Used

  • Python 3.x
  • Requests Library - For API calls
  • OpenWeatherMap API - Weather data source

📥 Installation

  1. Clone or download this repository

  2. Install required dependencies:

    pip install requests
  3. Get your free API key from OpenWeatherMap

  4. Replace the api_key in the code with your own API key

🚀 Usage

Run the script and enter any city name when prompted:

python weather_app.py

Example Output:

Enter the city name: London
----------------------------------------------------------------
Weather Stats for -LONDON  || 16 Oct 2025 | 02:30:45 PM
----------------------------------------------------------------
Current temperature is: 18.50 deg C
Current weather desc : light rain
Current Humidity     : 72 %
Current wind speed   : 5.2 kmph

📊 Data Displayed

  • Temperature - Converted from Kelvin to Celsius
  • Weather Description - Current weather conditions
  • Humidity - Percentage of moisture in air
  • Wind Speed - Wind speed in km/h
  • Date & Time - Local timestamp of query

⚠️ Note

Make sure to keep your API key secure and don't share it publicly. Consider using environment variables for better security.

📄 License

This project is open source and available for personal and educational use.

👨‍💻 Author

Rohan Goyal


⭐ If you find this helpful, consider giving it a star!

About

Cyber Security- 7 Days Hands on Bootcamp

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages