WeatherTrait.CurrentConditions

class WeatherTrait.CurrentConditions : ClusterStruct


The current weather conditions.

Summary

Public constructors

CurrentConditions(
    temperature: Int?,
    humidityPercent: Int?,
    airQualityIndex: Int?,
    precipitationType: WeatherTrait.PrecipitationType?,
    chanceOfPrecipitationType: WeatherTrait.PrecipitationType?,
    precipitationChancePercent: Int?,
    cloudCoverPercent: Int?,
    windSpeedKph: Float?,
    visibilityKm: Float?,
    dewPoint: Int?,
    uvIndex: Int?
)

Public properties

Int?

Air Quality Index, not yet supported.

WeatherTrait.PrecipitationType?

The type of precipitation that has a chance of occurring, corresponding to precipitation_chance_percent.

Int?

Current cloud cover as a percentage (0-100).

Int?

Current dew point in centi-celsius.

Int?

Current humidity as a percentage (0-100).

Int?

Chance of precipitation as a percentage (0-100).

WeatherTrait.PrecipitationType?

Type of current precipitation.

Int?

Temp in centi-celsius (celsius scale with resolution of 0.01C).

Int?

Values range between 0, 11, and higher values mark stronger radiation.

Float?

Current visibility in kilometers.

Float?

Current wind speed in kilometers per hour.

Public constructors

CurrentConditions

CurrentConditions(
    temperature: Int? = null,
    humidityPercent: Int? = null,
    airQualityIndex: Int? = null,
    precipitationType: WeatherTrait.PrecipitationType? = null,
    chanceOfPrecipitationType: WeatherTrait.PrecipitationType? = null,
    precipitationChancePercent: Int? = null,
    cloudCoverPercent: Int? = null,
    windSpeedKph: Float? = null,
    visibilityKm: Float? = null,
    dewPoint: Int? = null,
    uvIndex: Int? = null
)

Public properties

airQualityIndex

val airQualityIndex: Int?

Air Quality Index, not yet supported.

chanceOfPrecipitationType

val chanceOfPrecipitationType: WeatherTrait.PrecipitationType?

The type of precipitation that has a chance of occurring, corresponding to precipitation_chance_percent.

cloudCoverPercent

val cloudCoverPercent: Int?

Current cloud cover as a percentage (0-100).

dewPoint

val dewPoint: Int?

Current dew point in centi-celsius. This is the temperature at which air, at a given pressure, becomes saturated with water vapor. For example, use 2570 for 25.7C.

humidityPercent

val humidityPercent: Int?

Current humidity as a percentage (0-100).

precipitationChancePercent

val precipitationChancePercent: Int?

Chance of precipitation as a percentage (0-100).

precipitationType

val precipitationType: WeatherTrait.PrecipitationType?

Type of current precipitation.

temperature

val temperature: Int?

Temp in centi-celsius (celsius scale with resolution of 0.01C). For example, use 2570 for 25.7C.

uvIndex

val uvIndex: Int?

Values range between 0, 11, and higher values mark stronger radiation.

visibilityKm

val visibilityKm: Float?

Current visibility in kilometers.

windSpeedKph

val windSpeedKph: Float?

Current wind speed in kilometers per hour.