Hello,
I'm migrating my app to use WeatherKit from Dark Sky, and although most of the data fields is transformable, there are a few that are missing from WeatherKit's response; for example, summary
and icon
for daily/hourly/current weather data blocks.
I'm curious, what workarounds have people used for these fields that can bridge that gap? My app relies on these values to render icons.
Thank you!
The conditionCode
field in the daily, hourly, and current weather response can be used to select an icon representing the weather expected in the period. If your choice of icon differs based on the time of day (such as showing a moon at night vs a sun during the day) you can also incorporate the daylight
boolean to determine whether the period in question is during the day or night.