An interactive weather dashboard built using Dash by Plotly that fetches live weather data from the OpenWeather API for multiple cities.
This tool allows users to:
- Search and add any city worldwide
- View current weather conditions (temperature, humidity, wind speed, description)
- Explore 5-day forecast trends with interactive line and bar charts
- Compare weather conditions across cities
- Toggle between Light 🌞 and Dark 🌙 modes
- View condition distribution per city with pie charts
- 🔎 Search any city and view live data
- 🌍 Multi-city comparison
- 📈 Interactive line & bar charts
- 🥧 Condition distribution pie charts
- 🌞🌙 Theme toggle
- Source: OpenWeather API
- Data: Live updates (current snapshot + 5-day/3-hour forecast)
- Metrics Captured:
Temperature(°C)Humidity(%)Wind Speed(km/h)Weather Condition(Clear, Rain, Clouds, etc.)
🔁 Clone this Repository
git clone https://github.com/JagguDada01/Real-time-Weather-Data-Visualizer.git
cd Real-time-Weather-Data-Visualizer📦 Create Virtual Environment (Optional but Recommended)
python -m venv venv
source venv/bin/activate # macOS/Linux
venv\Scripts\activate # Windows🔧 Install Dependencies
pip install -r requirements.txtpython weather.py🌐 Then open your browser and visit:
http://127.0.0.1:8050
If you see this error when running the app:
- Address already in use
- Port 8050 is in use by another program.
✅ Kill the process using port 8050
💻 On macOS/Linux:
lsof -i :8050
kill -9 <PID>Replace <PID> with the number shown in the output of the lsof command.
🖥️ On Windows (Command Prompt):
netstat -ano | findstr :8050- This will show something like:- TCP 127.0.0.1:8050 ... PID: 12345
Then stop the process using:
taskkill /PID 12345 /F- Replace 12345 with the actual Process ID (PID) shown.