Last active
October 7, 2020 22:42
-
-
Save jasonsnell/4b458e2775e11ff7dd8b21dd26aa504e to your computer and use it in GitHub Desktop.
Purple AQI Widget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I've moved this to a proper GitHub project. | |
Check it out at: | |
https://github.com/jasonsnell/PurpleAir-AQI-Scriptable-Widget |
Go to the PurpleAir map and find a location near you, click on that
station, and in the URL you'll find a four or five digit number that is the
station ID.
…On Sun, Sep 20, 2020 at 10:07 AM maungtt ***@***.***> wrote:
***@***.**** commented on this gist.
------------------------------
How do i know my nearest location sensor ID?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<https://gist.github.com/4b458e2775e11ff7dd8b21dd26aa504e#gistcomment-3460819>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4G3ASXRMVKKNRIBGGK5PDSGYZELANCNFSM4RNV3ACQ>
.
geez, should I just make this a GitHub project now? Thanks Adam!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Jason, if you're interested I cleaned up the indenting of the file (mostly tabs -> spaces), and moved the trends and EPA adjustment stuff into functions. I also simplified
toLocaleTimeString()
to use your current locale settings where appropriate.It should otherwise be functionally identical, but easier to read 🙂.