A simple weather dashboard application that provides the current weather and a 5-day forecast for any city using the OpenWeatherMap API. It also has a feature to get the weather of your current location using geolocation.
- 🌍 Search by City: Enter the name of a city to get current weather and 5-day forecast.
- 📍 Current Location: Use your device's location to get the weather forecast.
- 📅 5-Day Forecast: See the weather forecast for the next 5 days.
- 📊 Detailed Weather Info: Displays temperature, wind speed, humidity, and weather icon.
- HTML
- CSS
- JavaScript
- OpenWeatherMap API for weather data
-
Clone the Repository:
git clone https://github.com/Pawan0019/Weather-Forecasting-App.git cd weather-forecasting-app -
Open the project folder and edit the script.js file. Replace the API_KEY with your own API key from OpenWeatherMap:
const API_KEY = "your_api_key_here";
-
Open
index.htmlin your browser.- Enter a city name in the input field and click "Search" to see the weather details for that city.
- Click "Use Current Location" to get the weather of your current location.
- Enter City Name: Type the name of a city and click
Search. - Use Current Location: Click
Use Current Locationto get the weather for your current geographical position.
- Go to the OpenWeatherMap website and sign up if you don’t have an account.
- Navigate to the API keys section under your account.
- Create a new API key and copy it.
- Replace the placeholder in script.js with your API key.
weather-dashboard-app/
│
├── HTML/ # Folder of HTML
├──index.html # Main HTML file
├── CSS/ # Folder of CSS
├── style.css # CSS file for styling
├── JavaScript/ # Folder of JavaScript
├──script.js # JavaScript file for functionality
└── screenshots/ # Folder for screenshots
├── main.png # Screenshot of the main screen
└── weather.png # Screenshot of the weather forecast
This project is licensed under the MIT License. See the LICENSE file for details.
- OpenWeatherMap for providing the weather data.
- Icons used from OpenWeatherMap.

