Widget written in Javascript in Scriptable on iOS.
Needs better error handling. Seems like JSON doesn't reliably come from the URL, shaped for the nearest PurpleAir sensor to my home.
- iOS Device on iOS 14 (or other OS supporting widgets).
- iOS App Scriptable.
- (Optional) iOS App Working Copy or some other GitHub-friendly app.
- (Optional) Some other easy way of copy/pasting from GitHub to Scriptable in iOS (like emailing the source).
- Create script in Scriptable.
- Copy script from GitHub to iOS somehow.
- Paste into new script in Scriptable.
- Create Widget in iOS home page.
- Click Done.
- Long-press Widget in iOS home page.
- Edit Widget
- For Script, choose the script you just pasted into in Scriptable.