HPOpenWeather Documentation Beta

Protocol Basic​Weather​Response

public protocol BasicWeatherResponse: Codable, Hashable 
BasicWeatherResponse BasicWeatherResponse Hashable Hashable BasicWeatherResponse->Hashable Codable Codable BasicWeatherResponse->Codable CurrentWeather CurrentWeather CurrentWeather->BasicWeatherResponse HourlyForecast HourlyForecast HourlyForecast->BasicWeatherResponse DailyForecast DailyForecast DailyForecast->BasicWeatherResponse

Conforms To

Codable
Hashable

Types Conforming to Basic​Weather​Response

CurrentWeather
DailyForecast
HourlyForecast

Requirements

timestamp

var timestamp: Date 

The timestamp when the data was collected

pressure

var pressure: Double? 

Atmospheric pressure on the sea level, hPa

humidity

var humidity: Double? 

Humidity in percent

dew​Point

var dewPoint: Double? 

Atmospheric temperature (varying according to pressure and humidity) below which water droplets begin to condense and dew can form. Unit Default: Kelvin, Metric: Celsius, Imperial: Fahrenheit.

uv​Index

var uvIndex: Double? 

UV index

visibility

var visibility: Double? 

Average visibility

cloud​Coverage

var cloudCoverage: Double? 

Cloudiness in percent

wind

var wind: Wind 

Basic information about observed wind