Fishing conditions, a seabed map and a snapper habitat map for Bream Bay and Urquharts Bay near Whangārei, New Zealand.
Live site: https://breamfishing.sonka.cloud.edu.au (stages 0 and 1 live since 26 November 2026; stage 2 goes live when it is merged)
Stage 0 is a conditions site. For three zones (the harbour entrance, the inner bay and the outer bay with the Hen and Chickens) it shows wind, gusts, waves, rain and tide for the next seven days, and rates every hour as good, fair or poor for boat, kayak and shore fishing. The map shows the no-take marine reserve and boat ramps.
Stage 1 adds the seabed: depth, how far that depth can be trusted, bottom type and depth contours, joined from the 2025 LINZ coastal LiDAR, a LINZ multibeam survey and LINZ chart data. It is worked out on a 100 m grid and drawn on a 20 m one when zoomed in. Tap the water to read them for a spot. See docs/seabed.md.
Stage 2c shades the map where the depth was measured, so reefs, channels and banks show as shapes, and adds a rough-ground layer from the 2 m LiDAR. Water with only charted depths is left unshaded.
Stage 2 adds a snapper habitat map: each 100 m square ranked, season by season, by how well its depth, its bottom and its distance from reef suit snapper, going by published studies. It is a habitat index, not a catch forecast: nobody publishes where fish are caught in this bay, so there is nothing to build or test a forecast with. The site's methods page gives every curve with the study it leans on, how the index tests against the few real records, and what it cannot tell you. See docs/habitat.md and docs/roadmap.md.
push to main ──▶ CI: test, build frontend ──▶ `release` branch
│
Puppet agent on the server, every 30 minutes
▼
server: nginx ── / static frontend (web/dist)
└─ /data/* JSON published by the pipeline
breamfish-refresh.timer hourly: fetch → rate → publish
src/breamfish/: the pipeline.breamfish refreshfetches the sources, computes the comfort ratings and atomically writesconditions.jsonandstatus.json. If a source is down it reuses a cached copy and says so instatus.json.web/: the frontend, in Vite, TypeScript, MapLibre GL and uPlot. It is fully static: no API, no database, no cookies. The basemap is a self-hosted OpenStreetMap extract, so the page loads nothing from other sites.scripts/build_seabed.py: builds the seabed grids. It is run by hand on a development machine, and its output is committed underweb/public/seabed/, so the server needs none of its libraries.scripts/build_imagery.py: joins the PlanetScope pictures of one satellite pass into a natural-colour picture and writes it as one archive of map tiles underweb/public/tiles/. Run by hand from a fetched order, with its output committed and Planet's own files never. On trial: docs/imagery.md.scripts/build_aerial.pyandbreamfish aerial: LINZ's aerial photographs of the shore (CC BY 4.0) as one archive of map tiles. It is too large to commit, so it is built by hand, published, and fetched by the server once a day by version, with its size and hash checked. On trial: docs/imagery.md.scripts/build_relief.py: shades the 2 m LiDAR and the multibeam model into two archives of map tiles underweb/public/tiles/, and builds the rough-ground layer. Run by hand after the seabed build, with its output committed.scripts/build_habitat.py: builds the habitat index from those grids and fromsrc/breamfish/species/snapper.toml, which holds every curve and its evidence. Also run by hand, with its output committed underweb/public/habitat/. The formula itself is insrc/breamfish/habitat.py.- Deployment is pull-based. CI publishes the
releasebranch; the server's configuration lives in a separate Puppet control repo, which keeps the checkout at the head of that branch and puts back anything changed by hand. See docs/runbook.md.
Needs uv and Node 22 or newer.
uv sync
uv run breamfish refresh # writes ./data/published/*.json from live sources
cd web
npm ci
npm run dev # serves the app and ./data/published at /data/Checks, as CI runs them:
uv run ruff check . && uv run ruff format --check . && uv run pytest -q
cd web && npm run buildThe comfort rating for each hour is the worst of three checks (wind, gusts, wave height) against limits for each fishing style, lowered one step for heavy rain, an offshore wind for kayaks, a strong onshore wind for shore fishing, or wind against an outgoing tide at the harbour entrance. The limits live in one place, src/breamfish/config.py, and the site's About panel displays them. They are sensible defaults, not safety advice.
Moon phase, solunar tables and barometric pressure are left out on purpose: published tests do not support them.
The code is MIT licensed. The data is not ours: each source keeps its own terms, listed with attribution in docs/data-sources.md. Open-Meteo's free tier is for non-commercial use.
No keys or secrets belong in this repo. Keys such as the LINZ Data Service key are kept encrypted in the Puppet control repo and reach the pipeline through an environment file on the server.
This is an experimental guide. Check the official marine forecast before you go, and the current fishing rules before you fish.