Skip to content

Instantly share code, notes, and snippets.

@hxperman
hxperman / Coronavirus County 100K.js
Last active November 17, 2020 09:13 — forked from planecore/Coronavirus.js
Coronavirus Scriptable Widget
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-green; icon-glyph: user-md;
// change "country" in the options to a value from https://coronavirus-19-api.herokuapp.com/countries/
// Fork from https://gist.github.com/planecore/e7b4c1e5db2dd28b1a023860e831355e
const country = (args.widgetParameter)
const url = `https://coronavirus-19-api.herokuapp.com/countries/${country}`
const req = new Request(url)
const res = await req.loadJSON()