Versions
- Open: VersionChanges from v3 to v4+1-1import { email } from "https://esm.town/v/std/email?v=9";import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=5";export async function aqi(interval: Interval) {
const location = "Philadelphia"; // <-- change to place, city, or zip codeconst data = await easyAQI({ location });if (!interval.lastRunAt) {⦚ 13 unchanged lines ⦚import { email } from "https://esm.town/v/std/email?v=9";import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=5";export async function aqi(interval: Interval) {const location = "West Goshen, PA"; // <-- change to place, city, or zip codeconst data = await easyAQI({ location });if (!interval.lastRunAt) {⦚ 13 unchanged lines ⦚ - Open: VersionChanges from v2 to v3+1-1import { email } from "https://esm.town/v/std/email?v=9";import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=5";export async function aqi(interval: Interval) {
const location = "Philadelphia, PA"; // <-- change to place, city, or zip codeconst data = await easyAQI({ location });if (!interval.lastRunAt) {⦚ 13 unchanged lines ⦚import { email } from "https://esm.town/v/std/email?v=9";import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=5";export async function aqi(interval: Interval) {const location = "Philadelphia"; // <-- change to place, city, or zip codeconst data = await easyAQI({ location });if (!interval.lastRunAt) {⦚ 13 unchanged lines ⦚ - Open: VersionChanges from v1 to v2+1-1import { email } from "https://esm.town/v/std/email?v=9";import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=5";export async function aqi(interval: Interval) {
const location = "Philadelphia"; // <-- change to place, city, or zip codeconst data = await easyAQI({ location });if (!interval.lastRunAt) {⦚ 13 unchanged lines ⦚import { email } from "https://esm.town/v/std/email?v=9";import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=5";export async function aqi(interval: Interval) {const location = "Philadelphia, PA"; // <-- change to place, city, or zip codeconst data = await easyAQI({ location });if (!interval.lastRunAt) {⦚ 13 unchanged lines ⦚ - Open: VersionChanges from v0 to v1+1-1import { email } from "https://esm.town/v/std/email?v=9";import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=5";export async function aqi(interval: Interval) {
const location = "downtown brooklyn"; // <-- change to place, city, or zip codeconst data = await easyAQI({ location });if (!interval.lastRunAt) {⦚ 13 unchanged lines ⦚import { email } from "https://esm.town/v/std/email?v=9";import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=5";export async function aqi(interval: Interval) {const location = "Philadelphia"; // <-- change to place, city, or zip codeconst data = await easyAQI({ location });if (!interval.lastRunAt) {⦚ 13 unchanged lines ⦚ - Open: Version+20-0import { email } from "https://esm.town/v/std/email?v=9";import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=5";export async function aqi(interval: Interval) {const location = "downtown brooklyn"; // <-- change to place, city, or zip codeconst data = await easyAQI({ location });if (!interval.lastRunAt) {email({text:`You will now get Air Quality alerts for ${location} if it's unhealthy. It is now ${data.aqi} which is ${data.severity}.`,subject: `AQI Alerts for ${location} setup!`,});}if (data.severity.includes("Unhealthy")) {email({text: "Air Quality: " + data.severity,subject: `AQI in ${location} is ${data.aqi}`,});}}
Updated: March 12, 2025