Skip to content

aletorrado/smn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage (NOT UPDATED)

Weather for one city

var smn = require('smn');
smn.fromCity('Buenos Aires', function(err, weather){
    if (err) {
        return console.log(err && err.stack || err);
    }
    console.log(weather);
});

// output
{
    city: 'Buenos Aires',
    temperature: 25.8,
    feelsLike: null,
    visibility: 10,
    humidity: 84,
    pressure: 1005.8,
    windSpeed: 'Norte  11 Km/h',
    status: 'Nublado',
    icon: 'nublado'
}

Fetching weather for every city

var smn = require('smn');
smn.fetchAll(function(err, array){
    if (err) {
        return console.log(err && err.stack || err);
    }
    console.log(array); // logs an array of weather objects
});

About

Scraper for Servicio Meteorológico Nacional

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published