HourlyForecastConditions

struct HourlyForecastConditions

The hourly forecasted weather conditions.

  • Returns the field corresponding to the given field ID.

    Declaration

    Swift

    static func structField(id: UInt32) -> (any Field)?
  • Temp in centi-celsius (celsius scale with resolution of 0.01C). For example, use 2570 for 25.7C.

    Declaration

    Swift

    let temperature: Int32?
  • Hourly forecast humidity as a percentage ([0-100]).

    Declaration

    Swift

    let humidityPercent: Int32?
  • Air Quality Index, not yet supported in hourly forecasts.

    Declaration

    Swift

    let airQualityIndex: Int32?
  • The forecasted type of precipitation for this hour.

    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?
  • Hourly forecast cloud cover as a percentage ([0-100]).

    Declaration

    Swift

    let cloudCoverPercent: Int32?
  • Hourly forecast wind speed in kilometers per hour.

    Declaration

    Swift

    let windSpeedKph: Float?
  • Current visibility in kilometers.

    Declaration

    Swift

    let visibilityKm: Float?
  • Hourly forecast 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

    Declaration

    Swift

    let dewPoint: Int32?
  • 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.parseError when parsing fails.

    Declaration

    Swift

    init(decoder: TraitDecoder) throws

    Parameters

    decoder

    The raw data representing this Struct.

  • Writes this Struct to the given TraitEncoder. Throws HomeError.parseError if the data could not be encoded.

    Declaration

    Swift

    func encode(with encoder: TraitEncoder) throws