Skip to content

A simple weather application built with HTML, CSS, and JavaScript that uses the Google Weather API to display real-time weather information for any searched location.

Notifications You must be signed in to change notification settings

Munazza-Iman/WeatherApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌀️ Weather App

A simple Weather Web Application built using HTML, CSS, and JavaScript. This app allows users to get real-time weather information for any city in the world using the Google API for location input and weather data fetching.


πŸš€ Features

  • 🌎 Search by Location β€” Enter any city name to get live weather updates.
  • β˜€οΈ Real-Time Weather Data β€” Displays temperature, humidity, wind speed, and weather conditions.
  • πŸ“ Google API Integration β€” Fetches location details and corresponding weather information.
  • πŸ’‘ User-Friendly Interface β€” Minimal, responsive, and easy-to-use design.
  • 🎨 Custom Styling β€” Built with clean HTML and CSS for a visually appealing layout.

πŸ› οΈ Technologies Used

  • HTML5 β€” Structure of the application.
  • CSS3 β€” Styling and layout.
  • JavaScript (ES6) β€” Logic for fetching and displaying weather data.
  • Google API β€” Used for location and weather data retrieval.

βš™οΈ How It Works

  1. The user enters a city name in the search box.
  2. The app uses the Google API to fetch location coordinates (latitude and longitude).
  3. It then calls the Google Weather API (or you can use other integrated API) to get weather data for that location.
  4. The weather information β€” such as temperature, humidity, feel like, and weather condition β€” is displayed dynamically on the page.

πŸ“Έ Screenshot

App Screenshot


🧩 Project Structure

weather-app/
β”‚
β”œβ”€β”€ app/
|   β”‚
|   β”œβ”€β”€ index.html       # Main HTML file
|   β”œβ”€β”€ app.css          # CSS for styling the app
|   |__ app.js           # JavaScript file with app logic
β”œβ”€β”€ assets/              # GUI picture
└── README.md            # Project documentation

πŸ”‘ Setup & Usage

  1. Clone the repository:

    git clone https://github.com/Munazza-Iman/WeatherApp.git
  2. Navigate to the project folder:

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

  4. Make sure to add your Google API key in the JavaScript file:

    const apiKey = "YOUR_GOOGLE_API_KEY";
  5. Type any city name in the search bar and press Enter to see real-time weather updates!


πŸ’‘ Future Enhancements

  • 🌦️ Add 5-day weather forecast.
  • πŸ“± Improve responsive design for mobile devices.
  • πŸ•’ Show sunrise and sunset times.
  • 🎨 Include theme options (light/dark mode).
  • πŸ—ΊοΈ Add an interactive map showing searched location.

πŸ‘¨β€πŸ’» Author

Munazza Iman


About

A simple weather application built with HTML, CSS, and JavaScript that uses the Google Weather API to display real-time weather information for any searched location.

Topics

Resources

Stars

Watchers

Forks