Skip to content

PankajKrana/Weather_application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Weather and News Application

This is a simple Weather and News application built using Python and the Tkinter GUI library. The application allows users to get real-time weather information and relevant news articles based on the input city.

Features

  • Weather Information: Provides current weather details such as temperature, humidity, and wind speed for a specified city.
  • News Integration: Fetches news articles related to the specified city using the News API.
  • User-Friendly Interface: Simple and intuitive graphical user interface (GUI) built with Tkinter.
  • Background Image: The application uses a background image to enhance visual appeal.

Prerequisites

  • Python 3.x
  • Tkinter (usually included with Python)
  • Requests library (pip install requests)
  • PIL (Python Imaging Library) (pip install pillow)

Getting Started

  1. Clone the repository or download the code files.
  2. Install the required libraries using pip install -r requirements.txt (if you have a requirements file).
  3. Run the weather_app.py file.

Usage

  1. Launch the application.
  2. Enter the desired city in the provided input field.
  3. Click the "Get Weather & News" button to fetch weather information and news for the specified city.
  4. The weather information and news articles will be displayed on the interface.
  5. Optionally, click the "Show News" button to open a separate window displaying news articles in a larger text area.

Screenshots

Include screenshots of the application in action.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Weather data provided by WeatherAPI
  • News articles provided by NewsAPI
  • Icons and images used in the application are credited to their respective sources.

Releases

No releases published

Packages

 
 
 

Languages