Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

🌦️ Multi-Location Weather Dashboard (Python)

This Python script fetches real-time weather for multiple cities using the free Open-Meteo API, displaying temperature, wind speed, and direction in a terminal dashboard.

🛠️ Features

  • 🔁 Automatically updates weather at your chosen interval
  • 🌍 Supports any number of locations (just add latitude & longitude)
  • 🔌 No API key required
  • 💻 Simple command-line interface

📸 Sample Output

📊 Weather Dashboard (Live)
-----------------------------------
📍 Salepur (20.3869, 86.1318)
🌡️ Temp: 33.1°C
💨 Wind: 10.2 km/h
🧭 Dir: 170°

📍 Cuttack (20.4625, 85.8828)
🌡️ Temp: 34.4°C
💨 Wind: 11.7 km/h
🧭 Dir: 150°
-----------------------------------

🚀 How to Run

  1. Clone or Download the script:
git clone https://github.com/your-username/weather-dashboard
cd weather-dashboard
  1. Install dependencies (only requests is required):
pip install requests
  1. Run the script:
python weather_dashboard.py
  1. Enter the update interval (e.g., 5 for every 5 minutes)

🧾 Customize Your Locations

Edit the locations list in the script:

locations = [
    {"name": "Your City", "lat": XX.XXXX, "lon": YY.YYYY}
]

Use Google Maps or latlong.net to find coordinates.

📚 Dependencies

✅ API Used

  • Open-Meteo: A free, no-auth weather API with real-time data.

📌 To-Do (Suggestions)

  • Save output to CSV
  • Add color formatting
  • Build a GUI version with Tkinter or PyQt
  • Add hourly/weekly forecast

🧑‍💻 Author

Made with ❤️ by CodeWithPython