Skip to content

abhi17bgp/Weather-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

☀️ Weather App

Live Demo: abhi17bgp.github.io/Weather-App

This is a simple and responsive weather app built using HTML, CSS, and JavaScript. It allows users to search for any city and view real-time weather data like temperature, humidity, wind speed, and conditions using the OpenWeatherMap API.


✨ Features

  • 🔍 Search for any city worldwide
  • 🌡️ Displays temperature (°C), humidity, wind speed, and weather conditions
  • 🌐 Real-time data powered by OpenWeatherMap API
  • 💡 Clean and minimal UI
  • 📱 Fully responsive and mobile-friendly

🛠️ Tech Stack

Technology Purpose
HTML Structure of the webpage
CSS Styling and responsiveness
JavaScript Functionality and API interaction
OpenWeatherMap API Real-time weather data
GitHub Pages Hosting the live app

📦 How It Works

  1. User enters a city name into the search bar.
  2. The app calls the OpenWeatherMap API:

https://api.openweathermap.org/data/2.5/weather?q={city}&appid={your_api_key}&units=metric

  1. The response is parsed, and data like temperature, humidity, wind speed, and weather description is displayed dynamically on the page.

📁 File Structure

weather-app/

├── index.html # Main HTML file

├── style.css # CSS for layout and styling

└── script.js # JavaScript for API logic


🔧 Setup Instructions

  1. Clone the repository:
    git clone https://github.com/abhi17bgp/Weather-App.git
    
    

1.Get your free API key from OpenWeatherMap.

2.Open script.js and replace your_api_key with your actual API key.

3.Open index.html in any browser to run the app locally.

Made with ☁️ and 💻 by Abhishek Anand

About

A simple weather app that shows real-time weather data using OpenWeatherMap API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors