aqiPushGotify
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.
Get push notification alerts via Gotify when AQI is unhealthy near you.
- Click
Fork
- Change
location
(Line 7) to describe your location. It accepts fairly flexible English descriptions which it turns into locations via nominatim's geocoder API. - Create an app in your Gotify Server and add your message endpoint URL w/ the app's API key (e.g., "https://push.example.de/message?token=") as a Val Town Secret named "gotifyWebhookURL".
- Click
Run
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. Learn more: https://www.val.town/v/stevekrouse.easyAQI
Cron