Get real-time weather updates for your location or any city around the world with the Weather Web App. This application provides comprehensive weather details, including temperature, wind speed, humidity, and cloudiness, presented in an intuitive and visually appealing interface.
The Weather Web App is deployed and accessible online.
Explore the live application here: Weather App Live Demo.
- Real-Time Weather Updates: Fetch weather data for your current location or any searched city.
- Location-Based Weather: Grant location access to instantly get weather information for your area.
- City Search: Enter any city name to view its weather details.
- Dynamic UI: Smooth animations and a responsive design for seamless user experience across all devices.
- Error Handling: Alerts for invalid city names or API issues.
- Weather Details: Displays:
- Temperature
- Weather condition
- Wind speed
- Humidity
- Cloudiness
- Frontend:
- HTML5, CSS3 (Responsive Design)
- JavaScript (ES6)
- API Integration:
- OpenWeatherMap API
- Styling Framework:
- CSS Custom Variables & Keyframes for animations
- Icons and Images:
- Lazy-loaded for better performance.
-
Grant Location Access:
- Upon granting location access, the app fetches your geographical coordinates using the browser's Geolocation API.
- The coordinates are sent to the OpenWeatherMap API to retrieve real-time weather data for your current location.
-
Search by City:
- Enter the city name in the search bar and submit.
- The app fetches weather details for the provided city name via the OpenWeatherMap API.
-
Dynamic Tab Switching:
- Switch between "Your Weather" and "Search Weather" tabs for respective functionalities.
-
Error Handling:
- If an invalid city name is entered or the API call fails, an error message is displayed.
Follow these steps to set up the Weather Web App locally:
-
Clone the Repository
git clone https://github.com/shivlalsharma/PRODIGY_WD_05.git
-
Navigate to the Project Directory
Change to the project directory:cd PRODIGY_WD_05
-
Open in Browser
Open theindex.html
file in your web browser:open index.html
Alternatively, you can right-click the file and select "Open With" > "Browser."
This project is licensed under the MIT License. See the LICENSE file for details.
Created and deployed by Shivlal Sharma.
- GitHub: GitHub Profile
- LinkedIn: Shivlal Sharma