This Python-based Weather App leverages the OpenWeatherMap API to provide real-time weather information for user-specified cities. It displays essential weather details such as temperature, weather condition, and showcases corresponding weather icons.
- Live Weather Data: Fetches current weather data from the OpenWeatherMap API.
- Display Information: Shows temperature, weather condition, and location.
- Visual Representation: Presents weather information using graphical weather icons.
- Python installed on your system.
- Required Python libraries:
tkinter,requests,PIL,ttkbootstrap.
- Install Python.
- Install necessary Python libraries using pip:
pip install tkinter requests pillow ttkbootstrap - Copy the provided Python code into a new file.
- Replace the placeholder API key with your personal OpenWeatherMap API key.
- Run the Python script.
- Input the desired city name in the provided text field.
- Click the "Search" button to retrieve and exhibit the weather details.
- Weather specifics like location, temperature, and weather condition will be showcased, accompanied by a weather icon.
The Weather App delivers real-time weather data, enhancing user accessibility to current weather information. Its intuitive interface and graphical representations make it a user-friendly tool for obtaining weather forecasts conveniently.