Just for my curiosity and knowledge, do you know if it is possible by using the Terminal Command Line to check my current weather conditions only by using the native Apple Framework?

I am aware of some specific command line that I can execute in my Terminal such as finger [email protected] or curl wttr.in/melbourne

but I am more interesting if I can use some kind of utility that comes by default within the official Apple framework and only use the Terminal Shell.

I noticed that Apple has two directories:


  • A few years ago I used Dark Sky to build a Twitter application that provided weather forecasts for my "followers". Dark Sky was free, amazingly functional and I was able to generate my forecasts easily from JSON data with a bash script. Sadly, Apple bought it, and it's effectively dead AFAIC. However, there are some providers that claim to be "Dark Sky replacements" - you may find something useful.
    – Seamus
    Nov 10, 2021 at 9:11
  • 1
    Yes it's possible, I found github.com/zadr/Weather/tree/… which shows an example of how to interact with the private weatherkit framework. Just wrap that in a CLI app and your'e good to go
    – 1110101001
    Nov 10, 2021 at 21:07

1 Answer 1


Yes it's possible to call into the weatherkit framework. The key method in question is currentDailyForecastForCoordinate. You can see a full example of how to use this in practice (as well as other methods that are available) in this repo (not mine), but essentially once you obtain the header file (e.g. via classump) for WeatherKit you can just call into the library via something like

    [[WMWeatherStore sharedWeatherStore] currentConditionsForCoordinate:location.coordinate result:^(WMWeatherData *result) {
        // Do something with result

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .