Skip to content

anderskravis/beachcheck

Repository files navigation

beachcheck

Minimalist conditions for Toronto's supervised beaches — water quality, water temperature, waves and wind. Built for swimmers and SUP riders who want one glance, not a dashboard.

Live site: https://anderskravis.github.io/beachcheck/

How it works

Plain HTML/CSS/JS, no build step, no servers.

  • A scheduled GitHub Action (.github/workflows/data.yml) pulls the city's live beach results service (secure.toronto.ca/opendata/adv/beach_results — the same feed behind the city's own beach water quality page, with daily E. coli values and posted SAFE/UNSAFE status) plus the beach observations open dataset (water temp, wave action, etc.), and commits the normalized result to data/conditions.json. The historical water quality dataset serves as fallback — it lags a season behind the live feed.
  • The browser loads that JSON and fetches live wind (and wave height where available) straight from Open-Meteo, so wind is real-time even though city data is daily.
  • Every push to main redeploys to GitHub Pages.

A beach reads swim when its latest E. coli geometric mean is under Toronto's posting limit (100 / 100 mL), no swim at or above it, and no data outside the June–September sampling season.

Development

node scripts/fetch-conditions.mjs --fixtures   # build conditions.json from canned data
node scripts/fetch-conditions.mjs              # hit the real city APIs
python3 -m http.server 8000                    # then open http://localhost:8000

Beaches are registered in beaches.js; deep-link any of them with a hash, e.g. #kew-balmy.

Not official safety advice — check the city's SwimSafe page before you swim.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors