The Daily Weather Web App is a web application that fetches and displays weather data dynamically from the WeatherAPI. Built using HTML, CSS, and JavaScript, this app allows users to search for a city's weather, view current conditions, and access a 24-hour forecast with intuitive navigation.
- Search Functionality: Search for any city to get the current weather and a 24-hour forecast.
- Dynamic Weather Data: Displays temperature, weather condition, precipitation, and cloud cover.
- 24-Hour Forecast: View detailed hourly forecasts with navigation arrows to browse through the data.
- Error Handling: Meaningful error messages are displayed if the API request fails.
- Responsive Design: Optimized for various screen sizes and devices.
- API: Use WeatherAPI for fetching weather data.
- Technologies: HTML, CSS, and JavaScript.
- Data Retrieval: Implement JavaScript
fetch()
for API calls. - Data Display: Ensure data is well-formatted and easy to understand.
- User-Friendly Features: Include search functionality and future forecast with sorting options.
- Error Handling: Display meaningful error messages for API request failures.
- Performance Optimization: Ensure good load times and responsiveness.
-
Search for Weather:
- Enter a city name in the search input field.
- Click the "Search" button to fetch weather data.
-
View Forecast:
- Use the left and right arrow buttons to navigate through the 24-hour forecast.
- The back button, positioned outside the forecast box, allows you to clear the search and refresh the app.
You can view the live application here: Daily Weather Web App.
To run this application locally:
- Clone the repository:
git clone https://github.com/tonmoy7722/Daily-Weather.git
- Open the
index.html
file in your browser to view the application locally.
To use the Daily Weather Web App:
- Open the web application.
- Enter the name of a city or location in the search bar.
- Click the Search button to retrieve and display weather data.
- Use the arrows in the 24-hour forecast section to navigate through the hourly forecast.
- If you're done viewing the forecast, click the Back button to return to the search interface.
Tonmoy Day Sarkar
- GitHub: @Tonmoy7722
- Email: Your Email