struct DailyForecastConditionsThe daily forecasted weather conditions.
-
Returns the field corresponding to the given field ID.
Declaration
Swift
static func structField(id: UInt32) -> (any Field)? -
The minimum forecasted temperature for the day in centi-celsius (celsius scale with resolution of 0.01C). For example, use 2570 for 25.7C.
Declaration
Swift
let minTemperature: Int32? -
The maximum forecasted temperature for the day in centi-celsius (celsius scale with resolution of 0.01C). For example, use 2570 for 25.7C.
Declaration
Swift
let maxTemperature: Int32? -
Daily forecast humidity as a percentage ([0-100]).
Declaration
Swift
let humidityPercent: Int32? -
Air Quality Index, not yet supported in daily forecasts.
Declaration
Swift
let airQualityIndex: Int32? -
The forecasted type of precipitation for this day.
Declaration
Swift
let precipitationType: Google.WeatherTrait.PrecipitationType? -
The type of precipitation that has a chance of occurring, corresponding to
precipitation_chance_percent.Declaration
Swift
let chanceOfPrecipitationType: Google.WeatherTrait.PrecipitationType? -
Chance of precipitation as a percentage ([0-100]).
Declaration
Swift
let precipitationChancePercent: Int32? -
Daily forecast cloud cover as a percentage ([0-100]).
Declaration
Swift
let cloudCoverPercent: Int32? -
Daily forecast wind speed in kilometers per hour.
Declaration
Swift
let windSpeedKph: Float? -
Values range between [0, 11], and higher values mark stronger radiation.
Declaration
Swift
let uvIndex: Int32? -
Creates a new Struct instance using data read from the given
TraitDecoder.Throws
HomeError.parseErrorwhen parsing fails.Declaration
Swift
init(decoder: TraitDecoder) throwsParameters
decoderThe raw data representing this Struct.
-
Writes this Struct to the given
TraitEncoder. ThrowsHomeError.parseErrorif the data could not be encoded.Declaration
Swift
func encode(with encoder: TraitEncoder) throws