Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 1.29 KB

File metadata and controls

48 lines (37 loc) · 1.29 KB

🌤️ Weather App - Streamlit + OpenWeatherMap


A simple and interactive weather web app built using Streamlit and OpenWeatherMap API. You have to enter the name of a city and get real-time weather updates, including temperature, humidity, wind speed, sunrise/sunset times, and more!!

Features

  • 🌆 Enter any city to fetch real-time weather data
  • 🌡️ Temperature and "Feels Like" in Celsius or Kelvin
  • 💨 Wind speed, humidity, and pressure
  • 🌅 Sunrise and 🌇 sunset times (in IST)
  • 📷 Weather condition icons
  • 🎈 Streamlit balloons for fun!

Setup

1. Clone the repo

git clone https://github.com/your-username/weather-app.git
cd weather-app

2. Install Virtual Environment

python -m venv venv
venv\Scripts\activate

3. Install all the dependencies

python -r requirements.txt

4. Set Up Your OpenWeatherMap API Key

  • Go to https://openweathermap.org/api
  • Sign up and create an API key
  • Create a .env file in the project root with the following content:
  • API_KEY=created_api_key

5. Run the streamlit app

streamlit run app.py