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! π