Skip to content

The code fetches current weather information for a user-specified city using the OpenWeatherMap API. It extracts relevant information from the JSON response and displays it to the user, while also writing it to a text file for record keeping. The program allows the user to check the weather and retrieve earlier search records.

Notifications You must be signed in to change notification settings

arpitya/Python-weather-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Current Weather Status of a City

This Python program uses the OpenWeather API to get the current weather status of a city. It displays the temperature, weather description, humidity, and wind speed.

Usage

  1. Enter the city name when prompted.
  2. The program will display the current weather status of the city.
  3. The program will also store the weather status in a text file named "earlier report.txt".
  4. The program will display the previous weather search records from the text file.

Requirements

  • Python 3
  • requests library
  • OpenWeather API key

Installation

  1. Clone the repository.
  2. Replace the OpenWeather API key in the code with your own API key.
  3. Install the requests library using the following command:

Screenshot

  • User input for terminal

image

  • Old user data of Weather status stored in "earlier report.txt" file.

image

Links

linkedin

Authors

About

The code fetches current weather information for a user-specified city using the OpenWeatherMap API. It extracts relevant information from the JSON response and displays it to the user, while also writing it to a text file for record keeping. The program allows the user to check the weather and retrieve earlier search records.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages