ezy-weather-api
A ez'y way to get weather data
Last updated 5 months ago by thecodingcat .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ezy-weather-api 
SYNC missed versions from official npm registry.

Ezy Weather API

Install ⌨⌨

npm install ezy-weather-api

Usage


const weather = require('ezy-weather-api');



weather.getForecast('lat','long','units').then(result=>{
	console.log(result);
}); 


// this will get the weather for the given lat and long


weather.getLatAndLong('New york');

// What do you get?  You get New Yorks latitude and longitude of course ????????????????????


Docs

This.getForecast();

Params

Latitude

Longitude

Units: optional defualts to auto

Auto is based on your latitude and longitude and time zone

This.getLatAndLong();

Params

Query: this is required and is to find out the latitude and longitude of a given location

Notes

  • This is a basic npm package for making use of the dark sky weather api and basically just makes it easier to get the data.

  • In order to use this package you will need to get an api key from darksky.net

Attribution

Current Tags

  • 0.0.3                                ...           latest (5 months ago)

3 Versions

  • 0.0.3                                ...           5 months ago
  • 0.0.2                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |