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.
- Host: GitHub
- URL: https://github.com/utkarshmishra2507/weather-app-in-python
- Owner: utkarshmishra2507
- Created: 2025-04-14T13:37:49.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-04-14T14:43:58.000Z (10 months ago)
- Last Synced: 2025-04-15T01:17:26.953Z (10 months ago)
- Topics: pandas, plotly-express, python3, request, streamlit
- Language: Python
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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