weather
weather
#
The WeatherKit JSON scalar.
Weather
#
Bases: JSONScalar
A WeatherKit capture at a moment and place.
Every field is required except pressure_trend and wind_gust_mps.
The capture time is stored as epoch seconds through its field transform.
Attributes:
| Name | Type | Description |
|---|---|---|
temperature_celsius |
float
|
Air temperature. |
apparent_temperature_celsius |
float
|
"Feels like" temperature. |
dew_point_celsius |
float
|
Dew point. |
humidity_ratio |
float
|
Relative humidity, 0 to 1. |
pressure_hpa |
float
|
Sea-level pressure in hectopascals. |
wind_speed_mps |
float
|
Sustained wind speed. |
wind_direction_degrees |
float
|
Wind heading. |
condition |
str
|
WeatherKit condition code — a vendor passthrough string, exempt from the snake_case wire convention. |
symbol_name |
str
|
SF Symbol name for the condition. |
cloud_cover_ratio |
float
|
Cloud cover, 0 to 1. |
precipitation_intensity_mmph |
float
|
Precipitation rate. |
visibility_meters |
float
|
Visibility distance. |
uv_index |
float
|
Ultraviolet index. |
is_daylight |
bool
|
Whether the capture was during daylight. |
time |
Annotated[datetime, Epoch]
|
The capture time. |
pressure_trend |
PressureTrend | None
|
The pressure's direction, if the provider reports one. |
wind_gust_mps |
float | None
|
Peak gust speed, if reported. |