dapted from <a href="https://github.com/zakj/scriptable/blob/d42a2d7727a2642ad6ee880c15ae65dca4232fe4/purpleAir.js">purpleAir.js</a> by <a href="https://github.com/zakj">Zak Johnson</a> - no clear license.</p>
    <h2 id="aqi"></h2>
    <pre id="details"></pre>

    <script type="module">
      const input = document.getElementById("sensor");
      const pre = document.getElementById("details");
      const h2 = document.getElementById("aqi");
      const params = new URLSearchParams(location.search);
     