Widgets
AQI and Temperature Widget
Dual mode air quality and temperature widget powered by OpenWeather.

Overview
A small widget that toggles between air quality and temperature modes. It uses OpenWeather Air Pollution and Weather APIs, plus smart theming based on AQI or temperature range.
Setup
- Create a free OpenWeather account and generate an API key.
- Copy the script from the repository and save it as OpenWeatherAQI.js in Scriptable.
- Replace the API key string near the top of the script.
- Add a Scriptable small widget and select the script.
Parameters
- temp: show temperature mode instead of AQI.
- light: force light theme.
- dark: force dark theme.
- temp,light or temp,dark: combine mode and theme.
Notes
Location permission
This widget auto-detects your location. Make sure Scriptable has location access when you run the script the first time.
Data sources
- OpenWeather Air Pollution API
- OpenWeather Current Weather API

