CitraClient.Schemas.DailyForecast (citra_client v0.3.0)
View SourceDaily forecast data
Fields
:astronomical_twilight_begin—integer()(API key:astronomicalTwilightBegin) — Astronomical dusk (sun at -18°), Unix, UTC:astronomical_twilight_end—integer()(API key:astronomicalTwilightEnd) — Astronomical dawn (sun at -18°), Unix, UTC:clouds—integer()— Cloudiness, %:dew_point—number()(API key:dewPoint) — Atmospheric temperature below which water droplets begin to condense:dt—integer()— Time of the forecasted data, unix, UTC:feels_like—CitraClient.Schemas.DailyFeelsLike.t()(API key:feelsLike) — Daily feels like temperature:humidity—integer()— Humidity, %:moon_phase—number()(API key:moonPhase) — Moon phase:moonrise—integer()— Moonrise time, Unix, UTC:moonset—integer()— Moonset time, Unix, UTC:pop—number()— Probability of precipitation:pressure—integer()— Atmospheric pressure on the sea level, hPa:rain—number()— Precipitation volume, mm:snow—number()— Snow volume, mm:sunrise—integer()— Sunrise time, Unix, UTC:sunset—integer()— Sunset time, Unix, UTC:temp—CitraClient.Schemas.DailyTemperature.t()— Daily temperature:uvi—number()— The maximum value of UV index for the day: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.DailyForecast{ astronomical_twilight_begin: integer() | nil, astronomical_twilight_end: integer() | nil, clouds: integer() | nil, dew_point: number() | nil, dt: integer() | nil, feels_like: CitraClient.Schemas.DailyFeelsLike.t() | map() | nil, humidity: integer() | nil, moon_phase: number() | nil, moonrise: integer() | nil, moonset: integer() | nil, pop: number() | nil, pressure: integer() | nil, rain: number() | nil, snow: number() | nil, sunrise: integer() | nil, sunset: integer() | nil, temp: CitraClient.Schemas.DailyTemperature.t() | map() | nil, uvi: number() | nil, weather: [CitraClient.Schemas.WeatherCondition.t() | map() | nil], wind_deg: integer() | nil, wind_gust: number() | nil, wind_speed: number() | nil }