Commit Graph
4 Commits
Author SHA1 Message Date
robbertjanssen85andClaude Opus 4.8 22e54a57a5 Add current €/kWh prices per charger across the stack
NDW already publishes OCPI tariffs (embedded per connector); resolve the
cheapest currently-applicable ENERGY price and surface it everywhere:

- pipeline: tariff.ts resolveConnectorPrice() matches connector power +
  build-time (Europe/Amsterdam) against each element's restrictions, with
  a €0.05–5.0 sanity band. Baked onto EnrichedConnector.priceKwh and the
  location headline LightLocation.priceKwh (min across connectors) ->
  crop-out/national point properties. Preserved through freight merge.
- webapp: detail panel shows the resolved price (falls back to parsing the
  raw tariff); new "Kleur op prijs" filter colors points by €/kWh ramp with
  legend + hover price.
- analysis: chargers.py reads priceKwh from crop-outs -> price_kwh_median/
  _mean/_n + price_pct percentile -> "Prijs" choropleth metric + scorecard.
- regenerated data: ~40k locations priced (median ≈€0.39); all 342 gemeenten
  get a median price.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 21:24:18 +02:00
robbertjanssen85andClaude Opus 4.8 b2cee874dd Fix hourly snapshot CI failure: create .cache dir before download
createWriteStream does not create parent directories, so the snapshot
job failed with ENOENT on a fresh runner where data-pipeline/.cache/
does not exist. mkdir it before writing the downloaded gz.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 07:33:29 +02:00
Robbert JanssenandClaude Opus 4.8 800ad823e9 Add hourly usage snapshots, analysis layer, scorecard, tooltips & guided tour
- data-pipeline: hourly NDW snapshot job (occupancy + status) + GitHub Action;
  per-gemeente day files, current-status, daily-average rollup.
- webapp: usage-over-day chart in detail panel; fresh per-gemeente status colours;
  national analysis choropleth (LayerSwitcher) + gemeente scorecard with demand
  (peer-model), siting priority, congestion and live/potential net-impact scenario.
- analysis/ (Python): golden dataset (CBS Kerncijfers + chargers) -> derived
  metrics + models (demand, siting, congestion, municipal percentiles).
- UX: InfoTip tooltips throughout, expanded methodology modal, interactive
  guided tour (spotlight + blur) that drives the app to example screens.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-02 22:01:28 +02:00
Robbert JanssenandClaude Opus 4.8 ab9ed8abb8 Initial commit: Laadpalenviewer
Static-generation EV charging map for the Netherlands with two layers
(passenger / logistics-freight), per-municipality crop-outs, and
gemeente + province boundaries from PDOK/CBS.

- data-pipeline/ (Node/TS): NDW OCPI download + classify (freight >=350kW /
  MCS / megawatt / Milence,WattHub) + external sources (curated, OCM, EAFO)
  + PDOK CBS boundaries -> static GeoJSON/JSON.
- webapp/ (Next.js 16 + React 19 + deck.gl + MapLibre): national view loads
  all points without details; selecting a gemeente eagerly loads its detail
  bundle (OCPI EVSE/connector/tariff + status) for instant marker clicks.
  Passenger colored by OCPI status (fleetsim-style), freight amber/megawatt.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-02 15:26:56 +02:00