Skip to content

Dark Sky API

Elizabeth Adams edited this page Jul 22, 2019 · 3 revisions
Screen Shot 2019-02-19 at 5 02 33 PM Dark Sky specializes in weather forecasting and visualization. The coolest aspect of Dark Sky is their weather API that we can use to retrieve the weather data from almost anywhere in the world. It's not just weather is rainy or sunny but temperature, dew point, wind gust, humidity, precipitation, pressure, UV index, and more, all easily available for wherever you want, whenever you want.

In order to use the Dark Sky API, you first need your own API key. Don't worry, getting an API key is quick and free. All you need to do is go to the website and click "Try for Free" to create an account.

You get 1,000 API calls for free each day. Every API request over the free daily limit costs $0.0001. This limit automatically resets each day at midnight UTC.The Forecast Request returns the current weather forecast for the next week.The Time Machine Request returns the observed or forecast weather conditions for a date in the past or future.

Your secret Dark Sky API key will look something like this:

0123456789abcdef9876543210fedcba

We will use this later in the code.

<< Initial State - Adafruit IO & PyPortal >>

Clone this wiki locally