Cloudflare Worker proxy for bjkw_weather.html.
The browser calls this Worker without a CWA API key. The Worker reads CWA_API_KEY from Cloudflare secrets, adds it to the upstream Central Weather Administration Open Data request, and returns JSON to the GitHub Pages weather dashboard.
https://blackjw1212.github.io.cd weather-proxy
npx wrangler login
npx wrangler secret put CWA_API_KEY
npx wrangler deploy
The public URL should be:
https://bjkw-weather-proxy.blackjw1212.workers.dev
If a different Worker URL is used, update WEATHER_PROXY_BASE in ../bjkw_weather.html.
To deploy from GitHub Actions, add these repository secrets:
CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_IDCWA_API_KEYThe workflow intentionally skips deployment if those secrets are absent.