A simple and responsive Weather Application built using HTML, CSS, and JavaScript. The app allows users to search for any city and view real-time weather information including temperature, humidity, wind speed, and current weather conditions using the OpenWeather API. Weather apps commonly use API-based real-time weather retrieval and city search functionality similar to this project. :contentReference[oaicite:0]{index=0}
- Search weather by city name
- Real-time weather information
- Temperature display in Celsius
- Humidity information
- Wind speed information
- Dynamic weather icons
- Responsive design
- Error handling for invalid city names
- HTML5
- CSS3
- JavaScript (ES6)
- OpenWeather API
Weather-App/
│
├── index.html
├── style.css
├── index.js
├── images/
│ ├── clear.png
│ ├── clouds.png
│ ├── drizzle.png
│ ├── humidity.png
│ ├── mist.png
│ ├── rain.png
│ ├── search.png
│ ├── snow.png
│ └── wind.png
│
└── README.md
- Clone the repository
git clone https://github.com/Eyob-bit/Weather-App.git- Navigate to the project directory
cd Weather-App- Open
index.htmlin your browser
-
Create a free account at :contentReference[oaicite:1]{index=1}
-
Generate an API key.
-
Replace the API key in
index.js:
const apiKey = "YOUR_API_KEY";Add a screenshot of your application here.
- Working with REST APIs
- Using JavaScript Fetch API
- Handling asynchronous operations with async/await
- DOM manipulation
- Error handling
- Responsive web design
- 5-day weather forecast
- Current location weather
- Dark mode
- Temperature unit conversion (°C / °F)
- Recent search history
Contributions, issues, and feature requests are welcome.
This project is open source and available under the MIT License.
Eyob Behailu
GitHub: :contentReference[oaicite:2]{index=2}