Welcome to the Weather Dashboard! ☀️🌧️ This project allows users to check real-time weather updates for different cities using a weather API. It is a great way to learn about HTML, CSS, JavaScript, and optional React, while working with APIs and improving UI design skills.
- ✅ Fetch weather data using OpenWeatherMap API or Google Weather API
- ✅ Display real-time temperature, humidity, and wind speed
- ✅ Search for weather updates by city name
- ✅ Implement a clean and responsive UI
📁 weather-dashboard
┣ 📂 assets/ # Store images, icons, and stylesheets
┣ 📜 index.html # Main HTML file
┣ 📜 style.css # Stylesheet
┣ 📜 script.js # JavaScript for API requests and functionality
┣ 📜 README.md # Documentation
- Search Weather by City 🔎: Users can enter a city name to fetch weather data.
- Real-Time Weather Data ☁️: Displays current temperature, humidity, and wind speed.
- Weather Icons ⛅: Dynamic icons based on weather conditions.
- User-Friendly UI 🎨: A simple and visually appealing interface.
- 5-Day Forecast 📅 (Optional)
- Dark Mode Toggle 🌙 (Optional)
- Save Last Searched City 💾 (Optional)
- Frontend: HTML, CSS, JavaScript
- API: OpenWeatherMap API or Google Weather API (for fetching weather data)
git clone https://github.com/your-github-username/weather-dashboard.gitcd weather-dashboardopen index.html
# OR
start index.html (For Windows)
# OR
xdg-open index.html (For Linux)- Create an account at OpenWeatherMap or explore the Google Weather API
- Get your API Key.
- Replace
YOUR_API_KEY_HEREinscript.jswith your actual API key:
const apiKey = 'YOUR_API_KEY_HERE';- Making API Calls with Fetch 🔥
- Handling JSON Data & Asynchronous JavaScript 🌍
- Updating the UI Dynamically 🖥️
- Using Local Storage for Saving Data 💾
Want to improve this project? Follow these steps:
- Fork the repo 🍴
- Create a new branch:
git checkout -b feature-name - Commit changes:
git commit -m 'Added a cool feature' - Push the branch:
git push origin feature-name - Open a Pull Request 🚀
If you have any questions, feel free to reach out! 🎯
📧 Email us at: csekitclub@gmail.com
Happy Coding! 🚀