The Weather App is a web application that allows users to check the current weather conditions, a 5-day forecast, air quality index, and other important meteorological data for any city. Users can enter a city name manually or fetch weather data for their current location.
- Search Weather by City: Users can enter a city name to get real-time weather updates.
- Current Location Support: Fetch weather data based on the user's current location.
- Current Weather Details: Displays temperature, weather conditions, date, and location.
- 5-Day Weather Forecast: Provides a forecast for the upcoming five days.
- Air Quality Index: Shows AQI levels with details such as PM2.5, PM10, CO, NO2, and more.
- Sunrise & Sunset Times: Displays the sunrise and sunset times for the selected location.
- Additional Weather Metrics:
- Humidity
- Atmospheric Pressure
- Visibility
- Wind Speed
- Feels Like Temperature
- Hourly Forecast: Shows weather predictions for different times of the day.
- HTML: Structure of the web page.
- CSS: Styling and layout.
- JavaScript: Handles API calls and dynamic content updates.
- OpenWeather API: Fetches real-time weather and forecast data.
- FontAwesome & Boxicons: Used for icons and visual enhancements.
- Moment.js: Handles date and time formatting.
- Clone the repository:
git clone https://github.com/your-repo/weather-app.git
- Navigate to the project folder:
cd weather-app - Open
index.htmlin a web browser.
This project uses the OpenWeather API. To use the app, you need to obtain an API key:
- Sign up on OpenWeather and get your API key.
- Open
index.jsand replaceYOUR_API_KEYwith your actual API key.
- Improve UI/UX for better responsiveness.
- Add more weather details like UV index.
- Deploy the application online.
This project is open-source and free to use.
For any questions or contributions, feel free to reach out!