-
Notifications
You must be signed in to change notification settings - Fork 7
DTO: Day
Forecasts | Measurements | Miscellaneous |
---|---|---|
Alert | Cloud cover | Area |
Alert details | Direction | Coordinate |
Day | Humidity | Message |
Hour | Precipitation | Moon |
Minute | Pressure | Provider |
Period | Temperature | Source |
Visibility | Sun times | |
Wind | Time period |
The historical or forecasted weather conditions for a specified day.
An enumeration value indicating the weather condition at the time.
getCondition(): \Rugaard\WeatherKit\Enums\WeatherCondition
Returns an enum of type Rugaard\WeatherKit\Enums\WeatherCondition
.
A Collection
that contains the daytime
and overnight
forecast.
Note: If DTO contains todays forecast, a restOfday
forecast will be available.
getForecasts(): \Illuminate\Support\Collection
Returns an object of type Illuminate\Support\Collection
.
All keys return a DTO of type Rugaard\WeatherKit\DTO\Forecasts\Period
.
The time period which forecast covers.
getForecastTime(): \Rugaard\WeatherKit\DTO\TimePeriod
Returns a DTO of type Rugaard\WeatherKit\DTO\TimePeriod
.
The maximum ultraviolet (UV) index value.
getForecastTime(): \Rugaard\WeatherKit\Enums\UVIndex
Returns an enum of type Rugaard\WeatherKit\Enums\UVIndex
.
The moonrise/moonset times and moon phase.
getMoon(): \Rugaard\WeatherKit\DTO\Moon
Returns a DTO of type Rugaard\WeatherKit\DTO\Moon
.
The precipitation forecasted to occur during the day.
getPrecipitation(): \Illuminate\Support\Collection
Returns an object of type Illuminate\Support\Collection
with five keys: type
, chance
, amount
and snowfall
.
- The
type
key will return an enum of typeRugaard\WeatherKit\Enums\Precipitation
. - The
chance
key will return afloat
. - All other keys will return a DTO of type
Rugaard\WeatherKit\DTO\Measurements\Precipitation
.
A Collection
with sunrise/sunset times (incl. civil
, nautical
and astronomical
times).
getSunTimes(): \Illuminate\Support\Collection
Returns an object of type Illuminate\Support\Collection
with four keys: solarMidnight
, solarNoon
, sunrise
and sunset
.
- The
solarMidnight
andsolarNoon
keys returns aDateTime
object. - The
sunrise
andsunset
keys returns a DTO of typeRugaard\WeatherKit\DTO\SunTimes
.
The min
and max
temperature forecasted to occur.
getTemperature(): \Illuminate\Support\Collection
Returns an object of type Illuminate\Support\Collection
, where each key returns a DTO of type Rugaard\WeatherKit\DTO\Measurements\Temperature
.
Convert the entire DTO
to an array
.
toArray(): array
Returns an array
.