BLACK FRIDAY: Save 50% on all my Swift books and bundles! >>

Hacking with MacOS - Project 10 Weather Bar

Forums > Books

Project 10 requires an API key from darksky.net to make the app. Dark Sky is no longer taking new developers for their API, so no key available. Is there a work around for this?

3      

I actually enjoyed Project 10 by having to change things in the code to use another public API - OpenWeatherMap. I actually learned more about the topics covered by having to dig into everything. Just thought others wouldlike to know.

3      

The problem with using external services. Always the risk of them shutting down or being bought up. It will be interesting to see what Apple plans to do with them. Maybe we'll see a WeatherKit in the future :)

I ran in to the same problem, and found the same solution. OpenWeatherMap is fairly close to the DarkSky API so it wasn't really any larger differences.

@twostraws: Might be an idea to update the book to cover it instead, if you haven't already :)

3      

Thanks for the suggestion! In fact OpenWeatherMap.org has recently introduced a brand new One Call API to allow easier transition from the DarkSky API.

3      

Had to go the same route as well. Unfortunately haven't been able to get percipitation chance % from OWM, so I fell back to using rain mm in the last hour. Great project though

3      

Great tip to use OpenWeatherMap. I've just done the same using the One Call API; a few sight differences as others have found but nothing major and motivated me to read and understand the API rather than just copy verbatim from the text!

3      

Save 50% in my WWDC sale.

SAVE 50% All our books and bundles are half price for Black Friday, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.

Save 50% on all our books and bundles!

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

All interactions here are governed by our code of conduct.

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.