 console.log(params);
      if (params.get("sensor")) {
        input.value = params.get("sensor");
      }
      async function go() {
        if (input.value) {
          const data = await fetchAqi(input.value);
          h2.innerHTML = `AQI at ${data.details.results[0].Label} is <span class="current">${data.current}</span>`;
          pre.innerText = JSON.stringify(data.details, null, 4);
        }
      }
      go();

      /* Adapted from https://github.com/zakj/scriptable/blob/d42a2d7727a2642ad6ee880