Skip to content

Rahul-2006/Weather-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🌤️ 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

About

This a API based project. OPENWEATHERMAP api is used to get basic weather info and presented it using Streamlit

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages