Skip to content

A simple web application that allows users to check the current weather and a seven-day forecast for a specified city.

License

Notifications You must be signed in to change notification settings

prabhsingh13/WeatherApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App

A simple web application that allows users to check the current weather and a seven-day forecast for a specified city.

Features

  • Current Weather Display:

    • Real-time weather information, including temperature, location, condition, and additional details.
  • Seven-Day Forecast:

    • Detailed forecast for the next seven days, providing information like temperature, wind speed, and more.
  • Dynamic Weather Icons:

    • Weather icons are dynamically updated based on the current weather conditions.

Usage

  1. Enter the name of a city in the input field.
  2. Click the search button or press Enter to fetch the weather data.
  3. View the current weather and seven-day forecast for the specified city.

Installation

  1. Clone the repository to your local machine:

    git clone https://github.com/your-username/weather-app.git
  2. Open the index.html file in your web browser.

API Key

To use this application, you'll need to obtain an API key from WeatherAPI and replace the placeholder in script.js with your actual API key.

const apiKey = 'your-api-key';

Dependencies

  • Bootstrap - Used for styling and layout.
  • Font Awesome - Provides icons used in the application.

Contributing

If you'd like to contribute to this project, please follow the Contributing Guidelines.

License

This project is licensed under the MIT License.

Acknowledgments

Thanks to WeatherAPI for providing the weather data.

Author

Prabhjeet Singh