Here’s a simple README file for your GitHub repository for the weather forecasting application using Python and Tkinter:
The Weather Tech App is a simple Python-based desktop application that allows users to get real-time weather information for any Indian state. It uses the OpenWeatherMap API to fetch current weather conditions, including climate, description, temperature, and pressure.
- Select any Indian state from a dropdown menu.
- Retrieve and display the current weather, including:
- Main climate condition
- Weather description
- Temperature (in Celsius)
- Atmospheric pressure
- Python 3.x
- Tkinter (for the GUI)
- Requests library
-
Clone the repository:
git clone https://github.com/your-username/weather-tech-app.git cd weather-tech-app
-
Install the required Python packages:
pip install requests
-
Run the
weather_tech_app.py
file:python weather_tech_app.py
-
Select your state from the dropdown menu and click "DONE" to fetch the weather details.
- Tkinter is used for building the GUI.
- Requests library is used to fetch weather data from the OpenWeatherMap API.
- The weather data is displayed in the form of labels on the application window.
Ensure you have a valid OpenWeatherMap API key. Replace the placeholder in the data_get
function with your own API key.
data = requests.get("https://api.openweathermap.org/data/2.5/weather?q="+city+"&appid=YOUR_API_KEY").json()
Contributions are welcome! Feel free to fork the repository and submit a pull request.
This project is open-source and available under the MIT License.
For any inquiries or suggestions, please reach out via GitHub.
the gui interface SCREENSHOTS : the output interface page of GUI using python
You can modify the above template based on your specific needs or preferences!