This is a simple weather application that allows users to search for weather information for any city in the world.
- Clone this repository to your local machine using https://github.com/never-knewto-code/Python-Project.git
- Install the required packages using pip install -r requirements.txt
- Obtain an API key from https://openweathermap.org/api and save it in a .env file in the project directory as API_KEY=your_api_key
- Run python weather_app.py in your terminal.
- Select a city from the dropdown list.
- Click the "Get Weather" button to display the weather information for the selected city.
- Uses the OpenWeatherMap API to obtain weather information.
- Dropdown list of cities is populated using the GeonamesCache library.
- Displays temperature, humidity, pressure, and weather description for the selected city.
Displays an icon representing the current weather conditions for the selected city.
- requests
- json
- tkinter
- PIL
- geonamescache
- dotenv
Contributions are welcome! Please feel free to submit a pull request.