Skip to content

Naol724/WeatherApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒฆ๏ธ Weather Application

This project is a modern, user-friendly Weather Application built with JavaScript that provides real-time weather information using the OpenWeatherMap API.

It allows users to quickly check current weather conditions either by entering a city name or by using their current geographic location.


Features

  • Search weather by city name
  • Displays temperature, humidity, and wind speed
  • Mobile responsive
  • Clean and modern UI

Screenshots

Home Screen

Home Screen

Location Weather

addis ababa

Location Weather

Dubai

By Using Exact Location

harar

๐Ÿš€ What This Project Does

This application:

  • ๐Ÿ” Retrieves weather data by city name search
  • ๐Ÿ“ Retrieves weather data using the userโ€™s current location
  • ๐ŸŒก๏ธ Displays the current temperature in Celsius
  • ๐Ÿ™๏ธ Shows the city name
  • โ˜๏ธ Presents a clear weather description
  • ๐Ÿ–ผ๏ธ Displays the official weather icon
  • โš ๏ธ Handles common errors such as:
    • Empty city input
    • City not found
    • Location permission denied
    • Network or API issues

โš™๏ธ How It Works

  1. The user either:

    • Enters a city name and clicks the search button
    • Or clicks the location button to use browser geolocation
  2. The application sends a request to the OpenWeatherMap API.

  3. The returned weather data is processed and dynamically displayed on the webpage.

  4. If any issue occurs (invalid input, denied permission, or failed request), a clear alert message is shown.


๐ŸŽฏ Purpose of the Project

This project demonstrates:

  • Integration with an external API
  • Use of asynchronous JavaScript (async/await)
  • DOM manipulation
  • Event handling
  • Geolocation API usage
  • Basic error handling

๐Ÿ’ก Summary

This is a real-time weather application that provides accurate and instant weather updates based on user input or current location, offering a clean and interactive user experience.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published