• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
stevekrouse

stevekrouse

aqi

Email alerts when AQI is unhealthy near you
Public
Like
2
aqi
Home
Code
5
README.md
C
main.tsx
nominatim.ts
H
proxy.ts
utils.ts
Branches
1
Pull requests
Remixes
77
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
proxy.ts
https://stevekrouse--eedfc224220e11f0a1e8569c3dd06744.web.val.run
README.md

AQI Alerts

Note: I recently updated the code for this to the OpenAQ v3 API and there might be bugs.

Get email alerts when AQI is unhealthy near you.

Set up

  1. Click Remix
  2. Change location (Line 4 in main.tsx) to describe your location. It accepts fairly flexible English descriptions which it turns into locations via nominatim's geocoder API.
  3. Click Run

Background

This val uses nominatim's geocoder to get your lat, lon, and air quality data from OpenAQ. It uses EPA's NowCast AQI Index calculation and severity levels.

HTTP
  • proxy.ts
    stevekrouse--eedfc224220e11f0a1e8569c3dd06744.web.val.run
Cron
  • main.tsx
Code
README.md
C
main.tsx
nominatim.ts
H
proxy.ts
utils.ts
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.