Post

Replies

Boosts

Views

Activity

Reply to Is WeatherKit wind direction backwards?
Yes - what's reported is a "west wind." But the wind bearing is east. The wind direction is the compass heading from which the wind is blowing (so, 90.0 °, or West), but the wind bearing is the direction in which the wind is moving, so East. Put a weather vane in a west wind and it will point east. In short, compassDirection = windBearing. That's my understanding.
Jun ’22
Reply to Weatherkit REST API is throwing 401 errors {'reason': 'NOT_ENABLED'}
An update. Seems like maybe @Hi_Thomas solution was a coincidence, as someone else suggested. I am getting 401 errors again starting today. Why is Apple not saying anything about this? They are on the boards answering other questions. But they ignore this issue that is clearly the biggest cause of concern. I'm happy if they say we devs are doing something wrong. But the silence is unprofessional. Here are things you can say: We are looking into it but don't know anything yet. We've looked into it, and everything is fine on our end We have isolate the root cause and are working on a fix, though we don't have a timeline for when we will deploy a fix. We decided not to look into it. Even 4. is better than nothing.
Feb ’23
Reply to 502 Errors. Can someone from Apple please respond?
I appreciate that posting here is not the same as opening a support ticket. But Apple engineers have answered questions about REST API errors and other questions here. And there have been so many questions about the WeatherKit REST API throwing intermittent errors (502:Bad Gateway; 401:Not Authorized). Here's a sample: https://developer.apple.com/forums/thread/725397 https://developer.apple.com/forums/thread/724132 https://developer.apple.com/forums/thread/723971 And there's no response...
Feb ’23
Reply to Weatherkit Rest API 500 errors this morning
I didn't look at why my requests were failing (error code/ timing out) - but yes. For about an hour this morning I don't seem to have gotten many 200 responses from the API. The API remains unreliable. It cannot be used for production without a backup weather source in place. It doesn't help that we don't get any information from Apple other than number of requests (response time? return code? hello?). And that WeatherKit always just shows "Green" as its status.
Mar ’23