Skip to content

KartikJS1/Weather-App-Assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather-App-Assignment

Welcome to the Weather App, a web application that allows users to check the current weather for a location by making asynchronous requests to a weather API. This app displays weather data in a user-friendly format and handles error cases gracefully.

Project Structure

The project is organized as follows:

Directory weather-app/ |-- index.html |-- styles.css |-- app.js |-- README.md |-- sun.jpg

Getting Started

To use the Weather App, follow these steps:

  1. Clone or download this project from the repository.

  2. Open the index.html file in a web browser.

  3. Enter a location (e.g., city or ZIP code) in the input field.

  4. Choose the temperature unit (Celsius or Fahrenheit) from the dropdown.

  5. Click the "Get Weather" button to fetch and display the current weather conditions for the specified location.

  6. Optionally, you can click the "Use My Location" button (if implemented) to fetch weather data for your current location based on geolocation.

Features

  • Weather Display: Get the current weather conditions, including temperature, humidity, wind speed, and weather description.

  • Error Handling: User-friendly error messages are displayed if the location is not found or if there's an issue with the API request.

  • Temperature Units: Toggle between Celsius and Fahrenheit to view temperature in your preferred unit.

  • Background Image: The app uses a background image with a glass effect for a visually appealing design.

Customization

  • You can customize the app's appearance by modifying the CSS in the styles.css file.

API Key

Replace 'YOUR_API_KEY' in the app.js file with your actual API key from a weather API provider (e.g., OpenWeatherMap).

Testing

Thoroughly test the app on different devices and browsers to ensure it functions correctly.

Deployment

Deploy the application to a web server or hosting service of your choice to make it accessible online.

Important Notes

  • Keep your API key secure and do not share it publicly.

Credits

This Weather App was created by [KARTIK RAMESH CHAVAN].

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published