Skip to content

Instantly share code, notes, and snippets.

@syrkis
syrkis / Coronavirus.js
Last active January 18, 2021 10:14 — 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" to a value from https://coronavirus-19-api.herokuapp.com/countries/
const country = "Denmark"
const url = `https://coronavirus-19-api.herokuapp.com/countries/${country}`
const req = new Request(url)
const res = await req.loadJSON()
if (config.runsInWidget) {

Keybase proof

I hereby claim:

  • I am syrkis on github.
  • I am syrkis (https://keybase.io/syrkis) on keybase.
  • I have a public key ASATTKUdFddkxIexrZPf2MA76gqMSuM_BJHDVQjJR_neAgo

To claim this, I am signing this object: