This weather application provides users with accurate, real-time weather information for a selected location. Users can view the current weather conditions, including temperature, wind speed, and precipitation. Additionally, the application displays a background image of the city entered by the user. Users can toggle between metric and imperial units for temperature and wind speed.
Furthermore, the app includes hourly forecasts, allowing users to see detailed weather information for the upcoming hours. This feature provides insights into temperature changes and weather conditions throughout the day.
- Responsiveness: The application should be responsive and usable on various devices.
- Single Page Application: The application is a single-page application, meaning only one
index.html
file is used, and JavaScript updates the HTML using DOM manipulation. - API Interaction: The application interacts with an API to fetch weather data and background images.
- Loading/Error Handling: The application handles loading states and errors gracefully, displaying appropriate messages to the user.
- User Interaction: The application allows users to fetch different data from the API based on their input.
- Current Weather Conditions: Displays real-time temperature, wind speed, and precipitation for the user's selected location.
- Background Image: Shows a photo of the city typed in the search bar as the background.
- Toggle Feature: Allows users to switch between metric and imperial units for temperature and wind speed.
- Hourly and Daily Forecasts: Provide detailed forecasts for the upcoming hours and days.
- Weather Information: OpenWeatherMap API
- Background Images: Unsplash API or any other suitable image API.
- Structure of the web page.
- Styling and layout.
- Dynamic content and interactions.
- Icon library for UI elements.
- Media queries for mobile-friendly layout.
-
Clone the repository:
git clone https://github.com/yourusername/weather-app.git
-
Navigate to the project directory:
cd weather-app
-
Open
index.html
in your browser.
- Enter a city name in the search bar and click the search button.
- View the current weather conditions and background image for the city.
- Use the toggle button to switch between Celsius and Fahrenheit.
For any inquiries or feedback, please contact: