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

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
980
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
824
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
394
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
665
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
814
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
415
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
599
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
595
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
593
May ’23
weatherDataService Error when I call "getCurrnetWeather" using Weatherkit
I have a problem with Weatherkit and recive data error with 2022-12-04 11:22:05.564713+0900 weatherProject[13140:412146] [WeatherDataService] Response did not contain requested dataset: .appLocationConfig. Returning default value: AppLocationConfig(reportAnIssue: ReportIssueLocationConfig(position: beforeFooter, minDaysSinceInteraction: 0), expireTime: 2022-12-04 02:52:05 +0000 func getCurrnetWeather(CLlocation: CLLocation, completion: @escaping () -> Void){ Task { do { let result = try await weatherService.weather(for: CLlocation) weather? = result } catch { print(error) } } } How Can I solve this problem? I Checked my account identifier. But still have problem...
5
1
1.7k
Apr ’23
WeatherKit not returning gust in DayWeather
My SwiftUI weather app shows weather stats for the day that I'm pulling from DayWeather. I added wind speed to my app recently. I wanted to add Gusts but I hit a problem. Whenever I look at the results returned for DayWeather the "gust" inside of Wind is always nil. The iOS weather app includes gusts in a daily summary. For example, today for Pistol River, OR it says "Wind is currently 15 mph from the southeast. Today, wind speeds are 8 to 26 mph, with gusts up to 50 mph." A query I just did to WeatherKit returned 18mph with compass direction SSE but nil for gusts. I've searched the documentation and I can't determine if this is working as designed or a bug.
2
0
1k
Apr ’23
weatherkitrestapi stopped working
I started yesterday using the weatherkitrestapi and it was working fine to get weather data from past days, now when I try to get t historical weather conditions for a specified date range, it only returns data from today. Any Idea? The url that was working until yesterday was this https://weatherkit.apple.com/api/v1/weather/es_ES/40.49356/-3.56676/?dataSets=forecastHourly&dailyStart=2023-04-01T00:00:00Z&dailyEnd=2023-04-02T00:00:01Z&timezone=Europe/Madrid
2
0
534
Apr ’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
540
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
887
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
980
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
669
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
824
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
394
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
665
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
814
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
415
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
599
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
595
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
593
Activity
May ’23
weatherDataService Error when I call "getCurrnetWeather" using Weatherkit
I have a problem with Weatherkit and recive data error with 2022-12-04 11:22:05.564713+0900 weatherProject[13140:412146] [WeatherDataService] Response did not contain requested dataset: .appLocationConfig. Returning default value: AppLocationConfig(reportAnIssue: ReportIssueLocationConfig(position: beforeFooter, minDaysSinceInteraction: 0), expireTime: 2022-12-04 02:52:05 +0000 func getCurrnetWeather(CLlocation: CLLocation, completion: @escaping () -> Void){ Task { do { let result = try await weatherService.weather(for: CLlocation) weather? = result } catch { print(error) } } } How Can I solve this problem? I Checked my account identifier. But still have problem...
Replies
5
Boosts
1
Views
1.7k
Activity
Apr ’23
WeatherKit not returning gust in DayWeather
My SwiftUI weather app shows weather stats for the day that I'm pulling from DayWeather. I added wind speed to my app recently. I wanted to add Gusts but I hit a problem. Whenever I look at the results returned for DayWeather the "gust" inside of Wind is always nil. The iOS weather app includes gusts in a daily summary. For example, today for Pistol River, OR it says "Wind is currently 15 mph from the southeast. Today, wind speeds are 8 to 26 mph, with gusts up to 50 mph." A query I just did to WeatherKit returned 18mph with compass direction SSE but nil for gusts. I've searched the documentation and I can't determine if this is working as designed or a bug.
Replies
2
Boosts
0
Views
1k
Activity
Apr ’23
weatherkitrestapi stopped working
I started yesterday using the weatherkitrestapi and it was working fine to get weather data from past days, now when I try to get t historical weather conditions for a specified date range, it only returns data from today. Any Idea? The url that was working until yesterday was this https://weatherkit.apple.com/api/v1/weather/es_ES/40.49356/-3.56676/?dataSets=forecastHourly&dailyStart=2023-04-01T00:00:00Z&dailyEnd=2023-04-02T00:00:01Z&timezone=Europe/Madrid
Replies
2
Boosts
0
Views
534
Activity
Apr ’23