Skip to content

jonezy/reckon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reckon

Reckon is a wrapper for the forecast.io api. It provides a simple way of accessing the amazing weather data they provide!

// instantiate reckon like so
var reckoner = new Reckon({apiKey:'your api key from http://developer.forecast.io'});

// call the api lat + long and you'll get back weather data!
reckoner.get({lat:'valid lat',lon:'valid long'}, function(data){
  res.render('index', {'results':data});
});

Installation

Clone the repo

git clone git@github.com:jonezy/reckon.git ./reckon

Install dependencies

cd reckon && npm install

Setup settings.json

Go to developer.forecast.io and register for an account. After you register you will be at the developer dashboard, copy the api key from the bottom of the screen

mv example/settings.local example/settings.json

{
    'apiKey': 'your api key from above',
}

Run the example site

cd example
grunt

Run tests

mocha -R nyan (the best way to run tests)

About

node client lib to access forecast.io api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published