Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: weather-underground-by-zip
node v6.17.1
endpoint
share
tweet
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