This is a weather app that allows users to get weather information for a specific location or their current location. The app displays current weather conditions, air quality information, hourly forecasts, and a 5-day weather forecast. It also includes a search feature for users to input a location and view weather details.
-
Clone the repository to your local machine:
git clone https://github.com/FireBird1998/Weather-App-V2.git
-
Navigate to the project directory:
cd weather-App-V2 -
Open the
index.htmlfile in your web browser to use the app.
- To view weather information for your current location, click on the "Use Current Location" button.
- To search for weather information for a specific location, type the location in the search bar and press Enter.
- The app will display current weather conditions, air quality details, hourly forecasts, and a 5-day weather forecast.
- You can click on a specific day in the 5-day forecast to view more details about that day's weather.
You can access the live web app here: Weather App V2
index.html: The main HTML file that structures the app's user interface.main.js: Contains functions for updating weather information and handling location-related features.api.js: Handles data fetching and API requests for weather information.module.js: Contains utility functions for formatting dates, times, and air quality levels.router.js: Manages routing based on URL hashes to update content dynamically.styles.css: Stylesheet file for styling the app's user interface.
This project is licensed under the MIT License.