Welcome to WeatherApp, your reliable and user-friendly weather application. Stay updated with real-time weather conditions, forecasts, and severe weather alerts for your location and any place around the world.
- Real-time Weather Data: Get the latest weather information including temperature, humidity, wind speed, and more.
- 5-Day Forecast: Plan ahead with detailed weather forecasts for the next five days.
- Severe Weather Alerts: Receive notifications for severe weather conditions like storms, hurricanes, and extreme temperatures.
- Location-based Services: Automatically fetch weather data based on your current location.
- Search Functionality: Search for weather information by city, country, or coordinates.
- User-friendly Interface: Easy-to-use interface with clean and intuitive design.
To install WeatherApp, follow these steps:
- Flutter installed on your system. You can download Flutter from the official Flutter website.
- API key from a weather service provider (e.g., OpenWeatherMap, WeatherAPI).
-
Clone the repository:
git clone https://github.com/EzraAriwomoi/weatherapp.git cd weatherapp
-
Install dependencies:
flutter pub get
-
Create a
.env
file in the root directory and add your API key:WEATHER_API_KEY=your_api_key_here
-
Run the application:
flutter run
Once the application is running, you can use it to:
- View current weather conditions.
- Check the 5-day weather forecast.
- Receive alerts for severe weather conditions.
- Search for weather information in different locations.
- Home Screen: Displays current weather and basic forecast for your location.
- Search Function: Allows you to search for weather data by entering a city name or coordinates.
- Alerts Section: Shows any active weather alerts for your area.
You can customize WeatherApp by modifying the following configurations:
- API Key: Set your weather service API key in the
.env
file. - Default Location: Change the default location by editing the configuration in
lib/config.dart
.
WeatherApp uses external APIs to fetch weather data. Below are some of the key endpoints:
GET /weather?q={city name}&appid={API key}
GET /forecast?q={city name}&appid={API key}
GET /alerts?q={city name}&appid={API key}
Refer to the documentation of your chosen weather API provider for more details on available endpoints and parameters.
We welcome contributions to WeatherApp! To contribute, follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes and commit them (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
Please ensure your code adheres to our coding standards and includes appropriate tests.
WeatherApp is licensed under the MIT License. See the LICENSE file for more details.
Thank you for using WeatherApp! We hope it helps you stay prepared and informed about the weather.