/Weather-App

A static weather website that takes your latitude and longitude data from session storage and returns temperature of your area.

Primary LanguageJavaScript

Weather Website

This is a mini project for a static website that allows users to view weather information based on latitude and longitude coordinates. The website utilizes session storage to store the user's location details and fetches weather data from the OpenWeather API.

Features

  • Retrieve weather information based on user's current location.
  • Search for weather information in any desired location.
  • Display weather details such as temperature, humidity, wind speed, and weather conditions.
  • Retrieve data from the OpenWeather API using API calls.
  • Parse the JSON response from the API to extract relevant weather information.

Prerequisites

To run this project, you will need the following:

  • Web browser (Chrome, Firefox, Safari, etc.)
  • Internet connection

Usage

  1. Clone or download the project repository to your local machine.
  2. Open the index.html file in your preferred web browser.
  3. Allow the website to access your location when prompted (if you want to view weather based on your current location).
  4. Alternatively, you can manually search for a location by entering latitude and longitude coordinates in the search box.
  5. Once the weather data is fetched, the website will display the temperature, humidity, wind speed, and weather conditions for the selected location.

Technologies Used

  • HTML
  • CSS
  • JavaScript

APIs Used

Development

If you wish to contribute to this project or further develop it, follow the steps below:

  1. Fork the repository.
  2. Make your desired changes or additions.
  3. Test your changes to ensure they work as expected.
  4. Submit a pull request with a detailed explanation of the changes you made.

Acknowledgements

  • The project utilizes the OpenWeather API for fetching weather data. Visit their website at https://openweathermap.org/ for more information.
  • The project was created as a learning exercise to understand API calls, data fetching, and JSON parsing.

License

This project is licensed under the MIT License. Feel free to modify and distribute it as needed.