weather_pack library
The project is designed to obtain weather via the OpenWeatherMap API.
With handy features. :)
Classes
- GeocodingService
- The class provides access to the geocoding service of cities.
- ImagePathWeather
- The class provides a helper for getting the image path of a given package.
- OWMBuilder
- The class is intended for single http requests and subsequent error handling.
- OWMTestService
- A class to help check your APIkey.
- PlaceGeocode
- The model represents the location.
- WeatherAlert
- Model represents national weather alerts.
- WeatherCurrent
- The model is current weather data API response for WeatherOneCall.
- WeatherDaily
- Model represents daily forecast weather for WeatherOneCall.
- WeatherHourly
- Model represents hourly forecast weather data for WeatherOneCall.
- WeatherMinutely
- Model represents minute forecast weather for WeatherOneCall.
- WeatherOneCall
- Model represents weather by One Call API request.
- WeatherService
- Service for fetching weather data:
Enums
- OneCallApi
- Defines the API version for accessing the "One Call" weather.
- Pressure
- Represents units of pressure measurement.
- SideOfTheWorld
- Represents the cardinal directions or, in other words, cardinal points.
- Speed
- Represents units of speed.
- Temp
- Represents units of temperature measurement.
- WeatherLanguage
- You can use lang parameter to get the output in your language.
Mixins
- UnitValue
- Mixin provides the ability for unit classes to convert a value to text or number with the desired accuracy.
Properties
-
codeAndLangMatching
→ Map<
String, WeatherLanguage> -
Map of matching WeatherLanguage.code and WeatherLanguage.
no setter
Exceptions / Errors
- OwmApiException
- Custom Exception for the Open Weather.