A simple weather application built with HTML, CSS, and JavaScript that lets users check real-time weather conditions for any city. The app fetches live weather data using the OpenWeather API and updates the interface dynamically based on the current weather and time of day.
https://jhanvi-code23.github.io/Weather-App/
- Search weather by city name
- Real-time weather data using the OpenWeather API
- Current temperature and feels-like temperature
- Humidity, wind speed, pressure, and visibility
- Maximum and minimum temperature
- Dynamic weather icons using Font Awesome
- Weather-specific background images
- Different backgrounds for day and night
- Weather-based suggestions for users
- Responsive and clean user interface
- HTML5
- CSS3
- JavaScript (ES6)
- OpenWeather API
- Font Awesome
-
Clone this repository.
-
Open the project folder.
-
Replace the API key in
index.jswith your own OpenWeather API key.
const apiKey = "YOUR_API_KEY";- Open
index.htmlusing Live Server (recommended) or any local web server.
This project uses the OpenWeather API to fetch real-time weather data.
Generate your free API key from: https://openweathermap.org/api
Note: If the application stops fetching weather data, your API key may have expired, reached its usage limit, or become invalid. Simply generate a new API key from OpenWeather and update it in index.js.
This project helped me gain hands-on experience with:
- DOM manipulation
- Event handling
- Fetch API
- Async/Await
- Working with JSON data
- API integration
- Updating the UI dynamically based on data
- Writing cleaner and more modular JavaScript
Some features I'd like to add in the future:
- Current location weather
- 5-day weather forecast
- Temperature unit toggle (°C / °F)
- Better animations and transitions
- Backend integration to securely manage the API key
Jhanvi Gupta
If you have any suggestions or feedback, feel free to connect or open an issue.
Thank you for checking out Weather-o-meter! ⭐

