Skip to content

"Predict tomorrow's weather today with Python! Leverage data and machine learning to create accurate and dynamic forecasts in just a few lines of code."

Notifications You must be signed in to change notification settings

tejasam571/WEATHER-FORCASTING.

Repository files navigation

Here’s a simple README file for your GitHub repository for the weather forecasting application using Python and Tkinter:


Weather Tech App

Overview

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.

Features

  • 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

Requirements

  • Python 3.x
  • Tkinter (for the GUI)
  • Requests library

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/weather-tech-app.git
    cd weather-tech-app
  2. Install the required Python packages:

    pip install requests

Usage

  1. Run the weather_tech_app.py file:

    python weather_tech_app.py
  2. Select your state from the dropdown menu and click "DONE" to fetch the weather details.

Code Explanation

  • 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.

API Key

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()

Contributing

Contributions are welcome! Feel free to fork the repository and submit a pull request.

License

This project is open-source and available under the MIT License.

Contact

For any inquiries or suggestions, please reach out via GitHub.


the gui interface SCREENSHOTS : Screenshot 2024-08-09 121107 the output interface page of GUI using python

Screenshot 2024-08-09 121133 the result page

You can modify the above template based on your specific needs or preferences!

About

"Predict tomorrow's weather today with Python! Leverage data and machine learning to create accurate and dynamic forecasts in just a few lines of code."

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages