RunKit + npm: weather-underground-by-zip

node v6.17.1
endpointsharetweet
var weather = require('weather-underground-by-zip'); var weatherEmoticon = require('weather-emoticon-finder'); var zipcode = 92122; weather().request(zipcode, function (err, data) { if (err) { console.error(err) } else { console.log(data); // { location: "San Diego, CA", temperature: 74.4, description: "Clear" } console.log(weatherEmoticon().get(data.description)); // ☀️ } })
Created from: https://npm.runkit.com/weather-underground-by-zip
Loading…

no comments

    sign in to comment