Skip to content

Instantly share code, notes, and snippets.

@Wdavery
Wdavery / COVID.js
Last active January 26, 2021 21:34 — forked from planecore/Coronavirus.js
Canadian COVID-19 Daily Cases 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" to a value from https://coronavirus-19-api.herokuapp.com/countries/
const url = `https://api.covid19tracker.ca/summary/split`
const req = new Request(url)
const res = await req.loadJSON()
const url2 = `https://api.covid19tracker.ca/summary`
const req2 = new Request(url2)