This repository contains a Python-based web application that provides real-time weather updates for any city. The application is built using Plotly Dash and provides a user-friendly interface to visualize temperature, humidity, and wind speed trends for a selected city.
- ๐ Real-time Weather Updates: Get the latest weather information for any city by simply entering its name.
- ๐ Weather Visualization: Visualize temperature, humidity, and wind speed trends over a specified forecast duration.
- ๐ฅ๏ธ Interactive UI: User-friendly interface built using Plotly Dash for easy selection of weather parameters and forecast duration.
- ๐ Python
- ๐ Dash (Plotly)
- ๐ค๏ธ Open-Meteo API for weather data
- ๐บ๏ธ Nominatim API for geocoding city names
-
Clone the repository:
git clone https://github.com/yourusername/city_weather_dashboard.git cd city_weather_dashboard -
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- Windows:
venv\Scripts\activate - macOS/Linux:
source venv/bin/activate
- Windows:
-
Install the required packages:
pip install -r requirements.txt
-
Run the application:
python city_weather_dashboard.py
-
Open a browser and go to
http://127.0.0.1:8050/to access the weather dashboard.
- ๐ City Name Input: Users can enter any city name, and the application fetches the latitude and longitude using the Nominatim API.
- ๐ก๏ธ Weather Data Fetching: The weather data for the selected city is retrieved from the Open-Meteo API.
- ๐ Interactive Graphs: The application visualizes the temperature, humidity, and wind speed trends for the selected forecast duration (12 to 48 hours).
