A web application that allows users to get the current weather and weather forecast for a specific location.
It is a simple web application that allows users to get the current weather and weather forecast for a specific location. It utilizes the OpenWeatherMap API to fetch weather data and display it in a user-friendly manner.
- Display the current weather information including date, time, location, temperature, and weather conditions.
- Show a 8-day weather forecast with daily temperature and weather icons.
- Retrieve weather data from the OpenWeatherMap API based on the user's input location.
- Use of asynchronous JavaScript (Async/Await) for making API requests and handling responses.
- Error handling for handling API request failures and displaying appropriate error messages.
- Responsive design for a better user experience on different devices.
To run the Weather App locally on your machine, follow these steps:
-
Clone the repository: git clone https://github.com/Sanghanmol/SkyCast.git
-
Open the project directory: cd SkyCast
-
Obtain an API key from OpenWeatherMap:
- Visit the OpenWeatherMap website and create an account.
- Generate a free API key for accessing weather data.
- Copy the API key for use in the application.
- Update the API key:
- Open the script.js file in a text editor.
- Replace 'API_KEY' with your actual OpenWeatherMap API key.
-
Launch the application: Open the index.html file in a web browser
-
Enter a location:
- Type the name of a city or a specific location in the input field.
- Click the "Search" button to fetch and display the weather information.
HTML CSS JavaScript
OpenWeatherMap API
This project is licensed under the MIT License.