A simple web application to check the current weather of any city using the OpenWeatherMap API.
- Search for the weather by city name
- Display current temperature, humidity, and wind speed
- Display weather icons based on the current weather conditions
- Show error message for invalid city names
- HTML
- CSS
- JavaScript
- OpenWeatherMap API
-
Clone the repository:
git clone https://github.com/suhanaparvin12/WeatherApp.git
-
Navigate to the project directory:
cd weather-app
-
Open
index.html
in your browser.
To use the OpenWeatherMap API, you need to get your API key from OpenWeatherMap. Replace the apiKey
variable value in the script
section of index.html
with your API key:
const apiKey = "YOUR_API_KEY";