Post

Replies

Boosts

Views

Activity

Comment on WeatherKit airQuality mystery
Ok so that helped me get it to work. You can get the airQuality number with Mirror(reflecting: weather).descendant("airQuality", "some", "index"). But my guess is that this only works because the playgrounds runner for macOS runs inside a platform binary and WeatherKit checks for this and only populates it in that case. Maybe something they will expose in the future? It's clear that they dogfooded this API for Weather and are using it internally but perhaps it's not quite ready for us yet.
Topic: App & System Services SubTopic: General Tags:
Jun ’22
Comment on WeatherKit airQuality mystery
Hmm, I'm still not seeing it…which platform are you testing this on? I would love to have this information, and it sounds like I can probably use Mirror to extract it, but it doesn't seem to be present for me…
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’22
Comment on WeatherKit airQuality mystery
Ok so that helped me get it to work. You can get the airQuality number with Mirror(reflecting: weather).descendant("airQuality", "some", "index"). But my guess is that this only works because the playgrounds runner for macOS runs inside a platform binary and WeatherKit checks for this and only populates it in that case. Maybe something they will expose in the future? It's clear that they dogfooded this API for Weather and are using it internally but perhaps it's not quite ready for us yet.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’22
Comment on WeatherKit airQuality mystery
Filed FB10384879: Please expose WeatherKit airQuality data as API
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’22