Reader small image

You're reading from  Building Apple Watch Projects

Product typeBook
Published inFeb 2016
Reading LevelIntermediate
PublisherPackt
ISBN-139781785887369
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Stuart Grimshaw
Stuart Grimshaw
author image
Stuart Grimshaw

Stuart Grimshaw has programmed for Apple computers since the days before OS X and has been involved with developing for the Apple Watch since its release. Born in the UK and having lived in Germany and the Netherlands, he is currently a Senior iOS developer in London, England, United Kingdom. He has around 10 years of end-to-end development of projects experience in, iOS, iPadOS, watchOS (Apple Watch), tvOS (AppleTV), and macOS. He is passionate about the potential of the Apple Watch and Apple TV, as well as Apple's Swift programming language, and is a keen proponent of beach coding.
Read more about Stuart Grimshaw

Right arrow

Getting the data


So how, and from where, do we get the data we need from the web? There are, in fact, very many sources that will provide us with data for free, and not just weather data. Searching through Google open data just now yielded 728 million results, which should be enough to keep most curious developers amused for some time.

Welcome to openweathermap.org

From the large number of open weather data sources, we will select http://openweathermap.org, which provides a large quantity of data for free to registered users. Go to the URL above and perform the following steps:

  1. Create a new account, which is free, requiring only an email address.

  2. Copy the API Key that will be generated once you have created an account.

You're done! Now you have an API key that you will include when you request data from the server, confirming that you are entitled to access that data. The key will look something like this: 78c75588dfe58276a694af9c660edxxx

With less form-filling than it takes to create a Google...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Building Apple Watch Projects
Published in: Feb 2016Publisher: PacktISBN-13: 9781785887369

Author (1)

author image
Stuart Grimshaw

Stuart Grimshaw has programmed for Apple computers since the days before OS X and has been involved with developing for the Apple Watch since its release. Born in the UK and having lived in Germany and the Netherlands, he is currently a Senior iOS developer in London, England, United Kingdom. He has around 10 years of end-to-end development of projects experience in, iOS, iPadOS, watchOS (Apple Watch), tvOS (AppleTV), and macOS. He is passionate about the potential of the Apple Watch and Apple TV, as well as Apple's Swift programming language, and is a keen proponent of beach coding.
Read more about Stuart Grimshaw