Skip to content

btwsuraj/weathor-web-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Web App

A simple web application that allows users to check the current weather for a location using asynchronous requests (AJAX) to a weather API. This app provides weather information in a user-friendly format and gracefully handles error cases.

Features

  • Homepage: The main page features a user-friendly interface with an input field for entering a location (e.g., city or ZIP code) and a "Get Weather" button to trigger the weather request.
  • Weather Display: The app displays the current weather conditions for the specified location, including details such as temperature, humidity, wind speed, and weather description.
  • Error Handling: The app handles error cases, such as when the location entered by the user is not found or when there is an issue with the API request. It displays user-friendly error messages and guides users on how to proceed.
  • Unit Selection: Users can switch between temperature units (Celsius and Fahrenheit) using a toggle or dropdown. The weather data updates accordingly.
  • Optional: Geolocation: Users have the option to use their device's geolocation to automatically fetch the weather for their current location. The app requests and handles geolocation permissions appropriately.
  • Styling: The app features an attractive CSS style with attention to layout, color scheme, and readability, providing an appealing user experience.
  • Responsive Design: The app is responsive and functions well on both desktop and mobile devices, ensuring usability on various screen sizes.

How to Use

  1. Enter the name of a city or a ZIP code in the "Enter location" input field.
  2. Select your preferred temperature unit (Celsius or Fahrenheit) from the "Select Unit" dropdown.
  3. Click the "Get Weather" button to retrieve the current weather conditions for the specified location.

Instructions

For detailed instructions on how to use the Weather Web App, please refer to the on-screen guidance provided when you access the app.

Technologies Used

  • HTML
  • CSS
  • JavaScript
  • AJAX for asynchronous API requests

API Used

The app fetches weather data from the OpenWeatherMap API.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published