Weatherly is a real-time, responsive weather forecast web app built with HTML, CSS, and JavaScript. It offers an intuitive and visually engaging interface for users to get up-to-date weather information, air quality indices, sunrise/sunset times, and more — all powered by OpenWeatherMap and WAQI APIs.
- 🔍 Search for any city and get instant weather updates
- 📍 Use geolocation to fetch weather for your current location
- 🌤️ Dynamic backgrounds that reflect current weather conditions
- 🌙 Toggle between dark and light themes
- 🌡️ Current temperature, high/low, and "feels like"
- 🕒 3-hour interval hourly forecast with wind and UV data
- 📆 5-day extended forecast
- 📊 Weather details (wind, pressure, humidity, UV index, etc.)
- 🧪 Real-time air quality index with pollutants data
- 🌅 Interactive sunrise and sunset timeline
- HTML5
- CSS3 (with custom styling)
- JavaScript (DOM manipulation & API integration)
- Font Awesome (for weather and UI icons)
- Google Fonts (
Montserrat) - OpenWeatherMap API
- WAQI (World Air Quality Index) API
-
Clone the repository:
git clone https://github.com/deepak-s-git/Weatherly.git cd weatherly -
Open the
index.htmlfile in a browser or use Live Server (VS Code). -
Make sure to add your API keys for:
OpenWeatherMap→ https://openweathermap.org/apiWAQI→ https://aqicn.org/data-platform/token/
-
Insert your API keys into the appropriate section in
script.js:const WEATHER_API_KEY = "YOUR_OPENWEATHERMAP_API_KEY"; const AQI_API_KEY = "YOUR_WAQI_API_KEY";
weatherly/
├── index.html
├── style.css
├── script.js
└── README.md
- Add multi-language support
- Save favorite cities
- Offline caching with service workers
- Animated weather icons