An open API service indexing awesome lists of open source software.

https://github.com/satansdeer/weather-api

Small wrapper for https://darksky.net weather api. User in https://basicreact.com course.
https://github.com/satansdeer/weather-api

api-wrapper course expressjs javascript nodejs tutorial

Last synced: 2 months ago
JSON representation

Small wrapper for https://darksky.net weather api. User in https://basicreact.com course.

Awesome Lists containing this project

README

        

# Darksky API Wrapper

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)

They take security very seriously at Dark Sky. As a security precaution they have disabled cross-origin resource sharing (CORS) on their servers.

This is small and simple wrapper to make calls to Darksky API.

## How To Use

First you have to register on [darksky.net](https://darksky.net) and get an API key. Next register on [heroku.com](https://heroku.com). After that just press the Deploy To Heroku button above.

You'll be prompted with app creation screen.

![create heroku app](create_heroku_app.png)

Enter your app name and API key you got from Darksky. Click the __Deploy app__ button.

Now you can click the __View__ button and go to your app url.

To get forecast you need to provide latitude and longitude:

`/forecast/,`

You should get `JSON` response with forecast.