The Weather App is a simple Python application that provides weather information for a specified location. It uses the tkinter library for the graphical user interface (GUI) and fetches weather data from the WeatherAPI. The app displays both current weather conditions and a 7-day weather forecast.
- Display current weather conditions, including temperature, wind speed, humidity, and weather icon.
- View a 7-day weather forecast with maximum and minimum temperatures.
- Click on a forecast day to see detailed weather information for that day.
- Easily switch between different locations by entering the city, state, or country in the input field.
- Python 3.x
- tkinter library
- PIL (Pillow) library
- requests library
- Clone the repository to your local machine:
git clone https://github.com/your-username/weather-app.git- Navigate to the project directory:
cd weather-app- Install the required Python packages:
pip install -r requirements.txt- Get an API key from WeatherAPI and replace "YOUR_API_KEY" in ui.py with your actual API key.
- Run the application using the following command:
python weather_app.py-
The Weather App GUI will open.
-
Enter the location (e.g., "New York, NY") in the input field.
-
Click the "Get Weather" button or press Enter to fetch weather data.
-
The current weather conditions and 7-day forecast will be displayed.
-
Click on a forecast day to view detailed weather information for that day.
-
Enjoy exploring the weather!