A simple weather application that fetches real-time weather data using the OpenWeatherMap API.
- Search weather by city name
- Display current temperature in Celsius
- Show weather description
- Error handling for invalid cities
- Clone this repository
git clone <your-repo-url>-
Get a free API key from OpenWeatherMap
-
Add your API key to the JavaScript file:
const API_KEY = "YOUR_API_KEY_HERE";- Open
index.htmlin your browser
- Enter a city name in the input field
- Click "Get Weather" button
- View the current weather information
- HTML
- CSS
- JavaScript (Vanilla)
- OpenWeatherMap API
MIT License