An open API service indexing awesome lists of open source software.

https://github.com/utkarshmishra2507/weather-app-in-python

A responsive and user-friendly weather forecast app built using Python and Streamlit. It fetches real-time weather data from the OpenWeatherMap API based on the user's location or a custom city input. The app displays current weather, a 5-day forecast, and a temperature trend chart with dynamic visuals based on weather conditions.
https://github.com/utkarshmishra2507/weather-app-in-python

pandas plotly-express python3 request streamlit

Last synced: 10 months ago
JSON representation

A responsive and user-friendly weather forecast app built using Python and Streamlit. It fetches real-time weather data from the OpenWeatherMap API based on the user's location or a custom city input. The app displays current weather, a 5-day forecast, and a temperature trend chart with dynamic visuals based on weather conditions.

Awesome Lists containing this project

README

          

# Weather-app-in-python

# 🌦️ Weather App - Python + Streamlit

This is a sleek and responsive weather forecast application built using **Python**, **Streamlit**, and the **OpenWeatherMap API**. The app detects your location automatically or allows you to enter a city name to view live weather conditions and a 5-day forecast.

## 🔧 Features

- 🌍 Auto-detect user location using IP
- 🔎 Search weather by city name
- 📍 Current weather conditions (temperature, humidity, wind, etc.)
- 📅 5-Day forecast with visuals
- ⏰ Hourly forecast for next 12 hours
- 📊 Interactive temperature trend chart (Plotly)
- 🎨 Dynamic background based on weather condition

## 🛠 Tech Stack

- **Python 3**
- **Streamlit** – UI framework
- **Requests** – For making API calls
- **Pandas** – Data processing
- **Plotly Express** – Visualization
- **OpenWeatherMap API** – Weather data source

## 📦 Installation

1. **Clone the repo**
```bash
git clone https://github.com/utkarshmishra2507/weather-app.git
cd weather-app

2. Create a virtual environment (optional but recommended)
```bash
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate

3. Install dependencies
```bash
pip install -r requirements.txt

4. Add your OpenWeatherMap API key
Replace "YOUR API KEY HERE." in the script with your actual API key.

Run the App
```bash
streamlit run your_script_name.py