Skip to content

Wassaf001/Weather_forecasting_tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Forecast Website

Welcome to the Weather Forecast Website! This site allows users to obtain current weather information for any specified city using the OpenWeather API. Simply enter the name of a city to receive real-time data on temperature, humidity, wind speed, and more.

Prerequisites

Before getting started, ensure you have the following:

  • An OpenWeather API key, which can be obtained by signing up on OpenWeather.

Getting Started

Clone the Repository

Download or clone the repository to your local machine.

git clone https://github.com/your-username/weather-forecast-website.git

Open in Browser Navigate to the project directory and open the index.html file in a web browser.

Configuration

Set Your API Key

In the index.html file, locate the following line:

const apiKey = "YOUR_API_KEY";

Replace with Your API Key Replace "YOUR_API_KEY" with your actual OpenWeather API key.

Save the Changes

Ensure you save the changes to the index.html file.

Usage

Open in Browser

Open the index.html file in a web browser.

Enter a City

Enter the name of a city in the input field and click the "Get Weather" button.

View Weather Information

The website will display the current weather information for the specified city, including temperature, humidity, wind speed, and more.

Search for Additional Cities

You can enter additional cities and view their weather information as well.

Contributing

To contribute:

Fork the repository. Create a new branch for your feature or bugfix. Make your changes. Submit a pull request with a detailed description of your changes. License

This project is licensed under the MIT License. See the LICENSE file for more details.

Enjoy using your Weather Forecast Website with the OpenWeather API! If you have any questions or encounter any issues, please feel free to open an issue or reach out.

About

Website for weather forecasting by city name using the openweather api.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published