Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Yahoo weather API wrapper for node
JavaScript
branch: master
Failed to load latest commit information.
.gitignore Added .gitignore
LICENCE Add licence
README.md Update README.md
package.json 0.1.0
yahoo.js Use "place" rather than lat/long to determine weather

README.md

Example

An example of how to get the weather based on location.

var weather = require('weather');

weather({location: 'Melbourne'}, function(data) {
  if (data.temp > 30) {
    console.log("Damn it's hot!");
  }
});

Example JSON result:

{
  temp: 18, // Current temperature
  high: 20, // High for the day
  low: 9,   // Low for the day
}

Licence

Licensed under the MIT License

Something went wrong with that request. Please try again.