CitraClient.Schemas.CurrentWeather (citra_client v0.3.0)
View SourceCurrent weather data
Fields
:clouds—integer()— Cloudiness, %:dew_point—number()(API key:dewPoint) — Atmospheric temperature below which water droplets begin to condense:dt—integer()— Current time, Unix, UTC:feels_like—number()(API key:feelsLike) — Temperature. This temperature parameter accounts for the human perception of weather:humidity—integer()— Humidity, %:pressure—integer()— Atmospheric pressure on the sea level, hPa:sunrise—integer()— Sunrise time, Unix, UTC:sunset—integer()— Sunset time, Unix, UTC:temp—number()— Temperature:uvi—number()— UV index:visibility—integer()— Average visibility, metres:weather— list ofCitraClient.Schemas.WeatherCondition.t()— Weather conditions:wind_deg—integer()(API key:windDeg) — Wind direction, degrees:wind_gust—number()(API key:windGust) — Wind gust:wind_speed—number()(API key:windSpeed) — Wind speed
Summary
Functions
Build this struct from a decoded JSON map received from the API. Unknown fields are ignored.
Convert this struct into a map with the API's camelCase keys, ready
to be JSON-encoded. Fields whose value is nil are omitted.
Types
@type t() :: %CitraClient.Schemas.CurrentWeather{ clouds: integer() | nil, dew_point: number() | nil, dt: integer() | nil, feels_like: number() | nil, humidity: integer() | nil, pressure: integer() | nil, sunrise: integer() | nil, sunset: integer() | nil, temp: number() | nil, uvi: number() | nil, visibility: integer() | nil, weather: [CitraClient.Schemas.WeatherCondition.t() | map() | nil], wind_deg: integer() | nil, wind_gust: number() | nil, wind_speed: number() | nil }