Skip to content

ChronicChannel-test/uk-aq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

167 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uk-aq

Static web UI for CIC UK Air Quality Networks.

Structure

  • uk_aq_hex_map.html main hex map UI.
  • uk_aq_stations_chart.html station-search chart page.
  • data/ reference datasets and hex grids.
  • data/WHO-guidelines/ reference copy of the WHO GAQG 2021 CSV loaded into Supabase.

Supabase config (optional)

The HTML pages can embed the Supabase project ref and publishable key for live Edge Function URLs.

Create a .env file in the repo root or set env vars:

SUPABASE_PROJECT_REF=your_project_ref
SB_PUBLISHABLE_DEFAULT_KEY=your_publishable_key

Then run:

node scripts/uk_aq_inject_project_ref.mjs

Note: AQI_HISTORY_BASE_PLACEHOLDER injection is optional per file. Files that do not include that placeholder (for example uk_aq_hex_map.html) are skipped for that one token and still receive the required Supabase/Turnstile injections.

You can also target specific files:

node scripts/uk_aq_inject_project_ref.mjs uk_aq_hex_map.html

GitHub Pages

In your GH Pages workflow, set repo secrets SUPABASE_PROJECT_REF and SB_PUBLISHABLE_DEFAULT_KEY, then run:

node scripts/uk_aq_inject_project_ref.mjs

Hosting

Set your publish directory to web/ when deploying.

About

UK-AQ Webpage

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages