A simple weather forecast application that allows users to check real-time weather conditions for any city using the OpenWeather API.
- 🔍 Search for any city
- 🌡️ Display current temperature
- 📈 Max and min temperature
- 💧 Humidity level
- 💨 Wind speed
- 🌥️ Weather description with icon
⚠️ Error handling for invalid cities
- HTML5
- CSS3
- JavaScript (Vanilla JS)
- OpenWeather API
- Font Awesome (icons)
- Google Fonts (Poppins)
📁 project
┣ 📁 src
┃ ┣ 📁 styles
┃ ┃ ┗ 📄 style.css
┃ ┣ 📁 javascript
┃ ┃ ┗ 📄 script.js
┃ ┗ 📁 images
┃ ┗ 📄 404.svg
┣ 📄 index.html
- Clone the repository:
git clone https://github.com/your-username/your-repo.git-
Open the
index.htmlfile in your browser -
Type a city name in the search bar
This project uses the OpenWeather API. You can get your API key here:
👉 https://openweathermap.org/api
Replace it in script.js:
const apiKey = 'YOUR_API_KEY_HERE';- The user enters a city name
- The app sends a request to the API
- The returned data is processed and displayed on the screen
- If the city is not found, an error message is shown
- Centered layout
- Modern gradient design
- Responsive UI
- Clean and intuitive icons
- Empty input → alert message
- City not found → error message + image
- 📍 Auto geolocation
- 🌙 Dark mode
- 📅 5-day forecast
- 🌎 Multi-language support
- 💾 Search history
Developed by you 🚀
This project is licensed under the MIT License.