Forecast

node v0.12.18
version: 5.0.0
endpointsharetweet
forecastCities is an asynchronous function (defined below) that will return the three day forecast of the cities passed in. Use the object viewer pop up to select "Chart" and compare them:
var Promise = require("bluebird"); var R = require("ramda"); await forecastCities("New York", "San Francisco");
async function forecastCities() { var forecast = require("notebook")("tonic/forecast/2.0.0"); var promises = R.map(forecast.threeDay, arguments); return R.zipObj(arguments, await Promise.map(promises, R.identity)); }
Loading…

no comments

    sign in to comment