Skip to main content
GuidesAPI ReferenceExamplesFAQ

Base Entities

Estimated reading time: 2 minutes

Weather-related functionalities are organized into distinct classes, each designed to encapsulate specific weather data. These include LocationForecast, Conditions, and Parameter. This document provides a detailed explanation of each class and its purpose.

LocationForecast class

This class is responsible for retaining data such as the forecast update datetime, the geographic location and forecast data.

PropertyTypeDescription
updatedDateTimeForecast update datetime (UTC)
coordCoordinatesGeographic location
forecastList<Conditions>Forecast data
hello_map
Current Weather Forecast Explained

Conditions class

This class is responsible with retaining weather conditions for a given timestamp.

PropertyTypeDescription
typeStringFor possible values see add ref[PredefinedParameterTypeValues]
stampDateTimeDatetime for condition (UTC)
imageUint8ListImage representation as Uint8List
imgImgThe conditions image as Img
descriptionStringDescription translated according to the current SDK language
daylightDaylightDaylight condition
paramsList<Parameter>Parameter list

PredefinedParameterTypeValues

This class contains the common values for [Parameter.type] and [Conditions.type].

PropertyDescriptionUnit
airQuality'AirQuality'-
dewPoint'DewPoint'°C
feelsLike'FeelsLike'°C
humidity'Humidity'%
pressure'Pressure'mb
sunRise'Sunrise'-
sunSet'Sunset'-
temperature'Temperature'°C
uv'UV'-
visibility'Visibility'km
windDirection'WindDirection'°
windSpeed'WindSpeed'km/h
temperatureLow'TemperatureLow'°C
temperatureHigh'TemperatureHigh'°C

Parameter class

Class responsible for containg weather parameter data.

PropertyTypeDescription
typeStringFor possible values see add ref[PredefinedParameterTypeValues]
valuedoubleValue
nameStringName translated according to the current SDK language
unitStringUnit