Widgets

AQI and Temperature Widget

Dual mode air quality and temperature widget powered by OpenWeather.

AQI widget preview

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

  1. Create a free OpenWeather account and generate an API key.
  2. Copy the script from the repository and save it as OpenWeatherAQI.js in Scriptable.
  3. Replace the API key string near the top of the script.
  4. 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