Skip to content
This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Latest commit

Β 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌀️ Weatherly - Real-Time Weather Dashboard

Python Streamlit WeatherAPI License

Weatherly is a sleek, fast, and responsive weather dashboard built with Streamlit, fetching real-time weather, air quality, and a 3-day forecast for any city β€” powered by WeatherAPI.com.

🌐 Live Project: weatherly-smzufohbhuex5grhcavnd4.streamlit.app

πŸ” API keys are securely stored using secrets.toml β€” no hardcoding.


πŸš€ Features

  • 🌍 Real-time weather for any city worldwide
  • πŸ“Š Details: Temperature, humidity, UV index, cloud cover, wind speed/direction
  • 🫁 Air quality score (PM2.5-based) with emoji scale
  • πŸ“… 3-day forecast with dynamic weather icons
  • ⏱ Live local time + last updated timestamp
  • 🎨 Auto-switching weather icons (sunny, storm, fog, etc.)

πŸ›  Tech Stack

Component Technology
Backend Python
Frontend/UI Streamlit
API WeatherAPI (REST)
Secrets Mgmt secrets.toml
Deployment Streamlit Cloud 🌨️

πŸ” API Key Setup (secrets.toml)

  1. Sign up at WeatherAPI.com and get your free API key.
  2. In your Streamlit app folder, create a .streamlit/secrets.toml file:

[api] key = "your_weather_api_key_here"

βœ… Never commit your API key to GitHub β€” keep it in secrets.toml.


▢️ Run Locally

$ git clone https://github.com/yourusername/weatherly.git $ cd weatherly $ pip install -r requirements.txt $ streamlit run app.py

Make sure:

Your secrets.toml is inside .streamlit/ folder

Your main file is named app.py (or update the run command)


☁️ Deploy on Streamlit Cloud

  1. Push your code to GitHub

  2. Go to share.streamlit.io and connect your repo

  3. Add your API key in App Settings β†’ Secrets:

[api] key = "your_api_key"

  1. Deploy β€” you’re live!

πŸ“Œ Example API Call

https://api.weatherapi.com/v1/forecast.json?key=YOUR_KEY&q=London&days=3&aqi=yes

Returns:

Current weather

PM2.5 air quality

3-day forecast


πŸ“ Notes

Works best for cities with API coverage

PM2.5 Air Quality Scale:

🟒 Excellent

🟑 Moderate

🟠 Poor

πŸ”΄ Hazardous

Icons sourced from Google Weather Icons


πŸ‘€ Author

Ameya Kulkarni


πŸ“œ License: MIT β€” free to use, modify, and share.

⭐ If Weatherly helped you, drop a star!


About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages