Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bangladesh-Weather-App-cli

A simple Python weather application that fetches real-time weather data using the OpenWeatherMap API.

Features

  • Current weather description
  • Temperature in Celsius
  • Feels-like temperature
  • Humidity information
  • Error handling for invalid city names
  • Network error handling

Requirements

  • Python 3.x
  • requests

Install dependencies:

pip install -r requirements.txt

Setup

  1. Create a free account at OpenWeatherMap.
  2. Generate an API key.
  3. Open weather_report_function.py.
  4. Replace:
w_api_key = "YOUR_OPENWEATHER_API_KEY"

with your actual API key.

Run

python weatherapp.py

Example Output

Weather Report of Dhaka in Bangladesh:

Description : scattered clouds Temperature : 31.2°C Feels like 35.1°C Humidity : 72%

Project Structure

weather-app/ │ ├── weatherapp.py ├── weather_report_function.py ├── requirements.txt └── README.md

Author

Md. Sazid Al Mafi

About

A simple Python weather application that fetches real-time weather data using the OpenWeatherMap API.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages