WeatherKit

RSS for tag

Bring weather information to your apps and services through a wide range of data that can help people stay up to date, safe, and prepared.

Posts under WeatherKit tag

200 Posts

Post

Replies

Boosts

Views

Activity

Widgets calling WeatherService.shared.weather multiple times at the same time
Hello. I noticed pretty early on that WeatherService.shared.weather seems to cache results. I realized this when I called it, killed network connectivity to my device, and then called it again I still got results back. My concern is about my widgets, which are also able to call WeatherService.shared.weather. I put my call inside of getTimeline(). After adding logging I realized that getTimeline() is called multiple times at the same time. For example, if I have two different widgets each with three different sizes (small, large, rectangular, etc) then six calls to getTimeline() are made for an update. I found a blog by Shopify iOS developers that describes how they found the same thing, but the forums aren't letting me link to their website's blog. My questions is which of these scenarios is happening: Even though WeatherService.shared.weather is called six times in the same second it's actually only the first call that goes out via the network and the remaining five calls just returned cached results. More than one of the six calls in the same second could be making a network call. If that's the case I'm going to need to add some form of throttling/caching because the number of free API calls per month is limited. Thank you!
1
0
887
Jun ’23
WeatherKit historical starting point
The web app that I work on has been using DarkSky for a few years and we have had historical weather data for many years prior to the date we integrated it. We rely on historical data for accurate reports and data analysis. The issue we are having now is it looks like WeatherKit only supports historical data back to 7/31/2021 which is almost 2 years but much less than DarkSky provided. Is that going to be the official start moving forward or will earlier data be supported eventually?
0
0
857
Jun ’23
Weatherkit REST API timezone
Hi all. I am working on weatherkit rest api to integrate to my android app. As a Dark Sky api user I can get timezone of the location which is requested which provides by Dark Sky api by default. But as far as i see there is no data for timezone info in weatherkit rest api. As an example it is necessary for sunrise data and etc. I know getting device timezone is easiest way but it's possible that an user can request a location has different timezone. I wish rest api provide location's timezone by default.
3
3
1.2k
May ’23
Weatherkit forecast only returns 24 hours forecast
The REST API documentation says that by default weatherkit returns 10 days weather forecast but we can change it by setting dailyStart and dailyEnd. It was working for me couple weeks ago, but this week I found out that, no matter what range we set, it always return 24 hours forecast. This looks to be a bug to me, is there any ETA of fixing it?
1
0
996
May ’23
Weatherkit 502
We are seeing consistent 502 BAD GATEWAY errors from Weatherkit. Looking over the stack trace we see Connection refused: weatherkit.apple.com/23.45.233.25:443. This doesn't happen to all of our requests so it seams like one of the WeatherKit IP addresses has some issues. Any one else effected by this?
3
2
1.6k
May ’23
WeatherKit Issues? (401, NOT_ENABLED, etc.)
If you haven't yet, submit your feedback to https://feedbackassistant.apple.com/new-form-response I found WeatherKit under iOS & iPadOS (scroll all the way down). Recent Similar Reports show as "None", so perhaps there hasn't been enough reports. Also, it's ridiculous Apple hasn't responded to any of the recent posts in this forum. 15 days left of support for Dark Sky and WeatherKit has been down for almost 2 days without any acknowledgement from Apple.
1
2
834
May ’23
Visisbility attribute missing
Hello, Could anyone please let me know which DataSet should I use to fetch the visibility data for previous dates. I checked on both forecast daily api and forecastHourly api. For forecast daily the visibility attribute is missing and forecastHourly API is giving weather data of current date even if I am passing a previous date in the dateStart param. Could anyone please help me with this ? Thanks!!
0
0
399
May ’23
WeatherKit API historical
Is the information returned for historical weather the actual weather conditions that were observed or is it just the historical forecast as it was predicted on the given date/time? It appears to be the forecast prediction and not the actual weather, but can someone please confirm?
1
0
673
May ’23
WeatherKit: condition code doesn't report rainfall consistently
I understand that the condition code is a slightly brutal way of summarising the weather for a particular time, since it condenses everything down into a single code. This would usually be the predominant or most significant weather for that time, e.g. if it's cloudy but there is also a hurricane, then it should report "hurricane" or at least "windy" rather than "cloudy". By the same token, I think that most people would expect "rain" to be reported as the condition rather than just "cloudy", since most people would want to know more if it will rain than if there will be some clouds in the sky. But I'm finding that very often a "PartlyCloudy" condition code is being returned for an hour in which there will be rain, even 0.6mm of rain, which isn't insignificant. At other times it will return a "Drizzle" condition code for 0.5mm of rain. Is anyone else finding these condition codes a bit hit and miss? I'm using the REST API if it makes any difference.
1
0
861
May ’23
Weatherkit REST API current weather doesn't include precipitation type?
Hello - i've successfully migrated from DarkSky to WeatherKit using the REST API. All is reasonably well, EXCEPT for the fact that the dataSet currentWeather (to get the latest up to date weather) does NOT include the precipitation type. Instead, it does include a precipitation intensity field, but not a type. The hourly forecast by contrast does include a precipitation type field, so you would need to grab that data set, then loop through the hours until you get the current one and pull the precip type that way, which seems ridiculous. Is there a plan for the currentWeather data set to include more granular precipitation info? thanks all, dinaj
1
0
421
May ’23
WeatherKit vs DarkSky REST API total calls difference
We have recently migrated our DarkSky application to WeatherKit and our API total calls seem to have doubled from one service to another. For example, 03/15 on DarkSky did 118k calls and after full migration 04/15 on WeatherKit shows 217k calls. We are requesting a lot of data per call using the dataSets parameter so maybe our calls count as multiple calls on the backend? The documentation does not mention anything about API call costs so I might have introduced a bug during migration. If every call is always counted as "one call" feel free to close this thread. Cheers
1
0
610
May ’23
How to upgrade WeatherKit quota or tier?
I'm close to running out of my monthly WeatherKit usage. I am the "Account Holder" and I'm struggling to find where in the account management dashboard I can increase the quota. Going to Services -> WeatherKit allows me to view the usage for the period, but I see no controls for changing the quota. Where should I be looking?
1
0
599
May ’23
When are free calls used in a month when you are on a paid plan?
My current quota is for 2 million calls that is about to run out (3% left) with my subscription expiring on May 7. At this point, it’s become clear I will need around 2.5m calls a month. Will my free 500k calls be used once my paid quota has finished? Based on my usage numbers per day, I believe so, but it’s unclear. If I was to downgrade to 1m or re-subscribe to a 2m package, it says it will start after the current one expires, potentially resulting in downtime for a few days... unless my 500k calls will be used in the interim. I know if I was to upgrade to the 5m package, it will begin immediately, ensuring no downtime, but it will be unnecessary 1) if it was going to fallback to 500k free calls which is more than enough to cover usage for the few days before a new sub package begins and 2) because I don’t need 5m calls in a month. Hope someone can help! I’ve contacted Apple but not heard anything so far. Thanks so much.
0
0
599
May ’23
Widgets calling WeatherService.shared.weather multiple times at the same time
Hello. I noticed pretty early on that WeatherService.shared.weather seems to cache results. I realized this when I called it, killed network connectivity to my device, and then called it again I still got results back. My concern is about my widgets, which are also able to call WeatherService.shared.weather. I put my call inside of getTimeline(). After adding logging I realized that getTimeline() is called multiple times at the same time. For example, if I have two different widgets each with three different sizes (small, large, rectangular, etc) then six calls to getTimeline() are made for an update. I found a blog by Shopify iOS developers that describes how they found the same thing, but the forums aren't letting me link to their website's blog. My questions is which of these scenarios is happening: Even though WeatherService.shared.weather is called six times in the same second it's actually only the first call that goes out via the network and the remaining five calls just returned cached results. More than one of the six calls in the same second could be making a network call. If that's the case I'm going to need to add some form of throttling/caching because the number of free API calls per month is limited. Thank you!
Replies
1
Boosts
0
Views
887
Activity
Jun ’23
WeatherKit not showing Temp Correctly on device
Hi, I'm in the process of developing a weather app using WeatherKit. Everything seems to be working fine in the Simulator, but when I put it on the device (iPhone 13 Pro Max) the temperature displays wrong. Example: On Simulator: 34 F On Device: 34.98 F Anyone else have this problem? Dan Uff
Replies
2
Boosts
0
Views
1.5k
Activity
Jun ’23
WeatherKit historical starting point
The web app that I work on has been using DarkSky for a few years and we have had historical weather data for many years prior to the date we integrated it. We rely on historical data for accurate reports and data analysis. The issue we are having now is it looks like WeatherKit only supports historical data back to 7/31/2021 which is almost 2 years but much less than DarkSky provided. Is that going to be the official start moving forward or will earlier data be supported eventually?
Replies
0
Boosts
0
Views
857
Activity
Jun ’23
WeatherKit: Data Quality & Accuracy
Is there a study or report for the WeatherKit accuracy that can be downloaded? Something similar to what's found on OpenWeather's site ( https://openweathermap.org/accuracy-and-quality ).
Replies
0
Boosts
1
Views
654
Activity
Jun ’23
Weatherkit REST API is throwing 401 errors {'reason': 'NOT_ENABLED'}
I have a script which fetches observations from weatherkit rest API which was working fine till morning. Suddenly I am getting {'reason': 'NOT_ENABLED'} error. I haven't changed anything. My key still has access to weatherkit. Any idea what happened here?
Replies
19
Boosts
7
Views
5.9k
Activity
Jun ’23
Random 404s when fetching historical data
I am trying to download historical data for the past 1 year. The API would work for a few seconds and then randomly throw 404s. Is anyone else facing this issue? I don't see any downtime mentioned on the website.
Replies
0
Boosts
2
Views
543
Activity
May ’23
Weather Kit down again. Tons of 404 error. No system status update
Here we go again. 7 days since the last failure. I guess we only find out when our users are complaining since the status is always green and there are no service emails. https://developer.apple.com/system-status/
Replies
5
Boosts
1
Views
1.1k
Activity
May ’23
Following "Meet WeatherKit"- getting async error
'async' call cannot occur in a global variable initializer for weather variable. import WeatherKit import CoreLocation let weatherService = WeatherService() let chicago = CLLocation(latitude: 47, longitude: 87.58293) let weather = try! await weatherService.weather(for: chicago) let temperature = weather.currentWeather.temperature
Replies
1
Boosts
0
Views
894
Activity
May ’23
Weatherkit REST API timezone
Hi all. I am working on weatherkit rest api to integrate to my android app. As a Dark Sky api user I can get timezone of the location which is requested which provides by Dark Sky api by default. But as far as i see there is no data for timezone info in weatherkit rest api. As an example it is necessary for sunrise data and etc. I know getting device timezone is easiest way but it's possible that an user can request a location has different timezone. I wish rest api provide location's timezone by default.
Replies
3
Boosts
3
Views
1.2k
Activity
May ’23
Weatherkit forecast only returns 24 hours forecast
The REST API documentation says that by default weatherkit returns 10 days weather forecast but we can change it by setting dailyStart and dailyEnd. It was working for me couple weeks ago, but this week I found out that, no matter what range we set, it always return 24 hours forecast. This looks to be a bug to me, is there any ETA of fixing it?
Replies
1
Boosts
0
Views
996
Activity
May ’23
Weatherkit 502
We are seeing consistent 502 BAD GATEWAY errors from Weatherkit. Looking over the stack trace we see Connection refused: weatherkit.apple.com/23.45.233.25:443. This doesn't happen to all of our requests so it seams like one of the WeatherKit IP addresses has some issues. Any one else effected by this?
Replies
3
Boosts
2
Views
1.6k
Activity
May ’23
WeatherKit Down Again - API status show that its fine.
Here we go again. Looks like Weather Kit is down yet again and the API status shows that it is fine yet again. https://developer.apple.com/system-status/
Replies
0
Boosts
0
Views
676
Activity
May ’23
WeatherKit Issues? (401, NOT_ENABLED, etc.)
If you haven't yet, submit your feedback to https://feedbackassistant.apple.com/new-form-response I found WeatherKit under iOS & iPadOS (scroll all the way down). Recent Similar Reports show as "None", so perhaps there hasn't been enough reports. Also, it's ridiculous Apple hasn't responded to any of the recent posts in this forum. 15 days left of support for Dark Sky and WeatherKit has been down for almost 2 days without any acknowledgement from Apple.
Replies
1
Boosts
2
Views
834
Activity
May ’23
Visisbility attribute missing
Hello, Could anyone please let me know which DataSet should I use to fetch the visibility data for previous dates. I checked on both forecast daily api and forecastHourly api. For forecast daily the visibility attribute is missing and forecastHourly API is giving weather data of current date even if I am passing a previous date in the dateStart param. Could anyone please help me with this ? Thanks!!
Replies
0
Boosts
0
Views
399
Activity
May ’23
WeatherKit API historical
Is the information returned for historical weather the actual weather conditions that were observed or is it just the historical forecast as it was predicted on the given date/time? It appears to be the forecast prediction and not the actual weather, but can someone please confirm?
Replies
1
Boosts
0
Views
673
Activity
May ’23
WeatherKit: condition code doesn't report rainfall consistently
I understand that the condition code is a slightly brutal way of summarising the weather for a particular time, since it condenses everything down into a single code. This would usually be the predominant or most significant weather for that time, e.g. if it's cloudy but there is also a hurricane, then it should report "hurricane" or at least "windy" rather than "cloudy". By the same token, I think that most people would expect "rain" to be reported as the condition rather than just "cloudy", since most people would want to know more if it will rain than if there will be some clouds in the sky. But I'm finding that very often a "PartlyCloudy" condition code is being returned for an hour in which there will be rain, even 0.6mm of rain, which isn't insignificant. At other times it will return a "Drizzle" condition code for 0.5mm of rain. Is anyone else finding these condition codes a bit hit and miss? I'm using the REST API if it makes any difference.
Replies
1
Boosts
0
Views
861
Activity
May ’23
Weatherkit REST API current weather doesn't include precipitation type?
Hello - i've successfully migrated from DarkSky to WeatherKit using the REST API. All is reasonably well, EXCEPT for the fact that the dataSet currentWeather (to get the latest up to date weather) does NOT include the precipitation type. Instead, it does include a precipitation intensity field, but not a type. The hourly forecast by contrast does include a precipitation type field, so you would need to grab that data set, then loop through the hours until you get the current one and pull the precip type that way, which seems ridiculous. Is there a plan for the currentWeather data set to include more granular precipitation info? thanks all, dinaj
Replies
1
Boosts
0
Views
421
Activity
May ’23
WeatherKit vs DarkSky REST API total calls difference
We have recently migrated our DarkSky application to WeatherKit and our API total calls seem to have doubled from one service to another. For example, 03/15 on DarkSky did 118k calls and after full migration 04/15 on WeatherKit shows 217k calls. We are requesting a lot of data per call using the dataSets parameter so maybe our calls count as multiple calls on the backend? The documentation does not mention anything about API call costs so I might have introduced a bug during migration. If every call is always counted as "one call" feel free to close this thread. Cheers
Replies
1
Boosts
0
Views
610
Activity
May ’23
How to upgrade WeatherKit quota or tier?
I'm close to running out of my monthly WeatherKit usage. I am the "Account Holder" and I'm struggling to find where in the account management dashboard I can increase the quota. Going to Services -> WeatherKit allows me to view the usage for the period, but I see no controls for changing the quota. Where should I be looking?
Replies
1
Boosts
0
Views
599
Activity
May ’23
When are free calls used in a month when you are on a paid plan?
My current quota is for 2 million calls that is about to run out (3% left) with my subscription expiring on May 7. At this point, it’s become clear I will need around 2.5m calls a month. Will my free 500k calls be used once my paid quota has finished? Based on my usage numbers per day, I believe so, but it’s unclear. If I was to downgrade to 1m or re-subscribe to a 2m package, it says it will start after the current one expires, potentially resulting in downtime for a few days... unless my 500k calls will be used in the interim. I know if I was to upgrade to the 5m package, it will begin immediately, ensuring no downtime, but it will be unnecessary 1) if it was going to fallback to 500k free calls which is more than enough to cover usage for the few days before a new sub package begins and 2) because I don’t need 5m calls in a month. Hope someone can help! I’ve contacted Apple but not heard anything so far. Thanks so much.
Replies
0
Boosts
0
Views
599
Activity
May ’23