Skip to content

dannymidnight/node-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Yahoo weather API wrapper for node

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published