Skip to content

Instantly share code, notes, and snippets.

View chukon's full-sized avatar

Chuck Konkol chukon

View GitHub Profile
@chukon
chukon / what-to-wear.js
Last active October 20, 2018 03:56 — forked from monkbroc/what-to-wear.js
What to wear
function forecastUrl(apiKey, location) {
var apiUrl = "https://api.darksky.net/forecast";
var excludeFields = "exclude=minutely,hourly&si";
return apiUrl + "/" + apiKey + "/" + location + "?" + excludeFields;
}
function getForecast(url) {
var got = require("got");
return got(url)
.then(function (response) {