Skip to content

Swarnim114/Weather-New

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌦️ Weather Website

📖 Overview

A simple and interactive weather website built using HTML, CSS, and JavaScript. It fetches real-time weather data for any city using the OpenWeather API and displays charts of the weather forecast for the next seven days using Chart.js.


🌟 Features

  • City Weather Search: Enter the name of any city to get current weather details and a seven-day forecast.
  • Interactive Charts: Visualize temperature, humidity, and other weather factors for the week using dynamic graphs powered by Chart.js.
  • Automatic Location Detection: Automatically fetches and displays weather data for your current location on page load.
  • Responsive Design: Optimized for all screen sizes, ensuring a seamless experience on both mobile and desktop devices.

🔧 Technologies Used

  • HTML: For structuring the web pages.
  • CSS: For styling and creating a visually appealing interface.
  • JavaScript: For implementing functionality and fetching weather data.
  • Chart.js: To create interactive and responsive weather charts.
  • OpenWeather API: To fetch real-time weather data.

🚀 How to Run the Project Locally

  1. Clone the repository:

    git clone https://github.com/your-username/weather-website.git
  2. Navigate to the project directory:

    cd weather-website
  3. Open the index.html file in your browser:

    • Double-click the file in your file explorer.
    • Or, run a local server using tools like VS Code Live Server for best performance.

💡 How It Works

  1. Search for a City: Enter the city name in the search bar to view current weather details and a forecast for the next seven days.
  2. Charts: Explore weather trends like temperature, humidity, wind speed, etc., displayed in visually appealing charts.
  3. Location Detection: If enabled, the app will fetch and display weather data for your current location automatically.

📷 Screenshots & Demo

Live Link

Click here to visit the live site

Screenshot 1

Screenshot of City Weather Search

Screenshot 2

Screenshot of Weather Charts


🔗 APIs Used