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.
- 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.
To run this project, you will need the following:
- Web browser (Chrome, Firefox, Safari, etc.)
- Internet connection
- Clone or download the project repository to your local machine.
- Open the
index.html
file in your preferred web browser. - Allow the website to access your location when prompted (if you want to view weather based on your current location).
- Alternatively, you can manually search for a location by entering latitude and longitude coordinates in the search box.
- Once the weather data is fetched, the website will display the temperature, humidity, wind speed, and weather conditions for the selected location.
- HTML
- CSS
- JavaScript
- OpenWeather API (https://openweathermap.org/)
If you wish to contribute to this project or further develop it, follow the steps below:
- Fork the repository.
- Make your desired changes or additions.
- Test your changes to ensure they work as expected.
- Submit a pull request with a detailed explanation of the changes you made.
- 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.
This project is licensed under the MIT License. Feel free to modify and distribute it as needed.