A simple weather application built using Python's Tkinter library and the OpenWeatherMap API.
This Weather App allows users to get the current weather information for a specified city. It provides details such as temperature, weather condition, pressure, humidity, wind speed, and sunrise/sunset times.
- Fetches real-time weather data from OpenWeatherMap API.
- Displays current temperature, weather condition, pressure, humidity, wind speed, and sunrise/sunset times.
- Simple and intuitive user interface.
- Clone the repository to your local machine:
git clone <repository-url> cd <repository-directory>
- Install the required Python packages:
pip install requests tkinter- Obtain an API key from OpenWeatherMap.
- Replace the placeholder API key in the script with your own API key:
api = "https://api.openweathermap.org/data/2.5/weather?q="+ city +"&appid=YOUR_API_KEY"- Run the script:
python weather_app.py- Enter the city name in the text field and press Enter to get the weather information.
To convert the script to an executable, you can use auto-py-to-exe, a GUI tool for PyInstaller. Install it using:
pip install auto-py-to-exeRun auto-py-to-exe and follow the instructions to convert your Python script into a standalone executable.
Contributions are welcome! If you have any ideas or suggestions, please let me know!