Your daily weather report for power.
What it costs now, what happens next, and proof we got it right.
Built at HackTheBurgh XIII (7-8 November 2026) for the HRT track "Best Use of Data for Predictions and Decision Making" and the G-Research track "Making the Unseen Seen".
Live: https://htb.stefvuck.dev
- A live forecast with odds, for six zones, and proof it works. Every hour we forecast the day-ahead power price for GB, France, Germany-Luxembourg, the Netherlands, Belgium and southern Norway, with a best guess and a likely range. In a walk-forward backtest (12,086 hours over six zones) the error is 36% lower than persistence, which assumes the price stays where it was (33.3 against 52.3 per MWh, pooled £ and €). 78.5% of outcomes landed inside the 80% range. Every run is hashed and sealed on Solana (devnet) before the result is known, then scored live on reveal day.
- The hidden grid, made visible in money. Wind paid to switch off, carbon arriving through the cables, and the lines that are full, each shown in pounds. Then the what-ifs: close the Strait of Hormuz or trip the Norway cable and see what it costs and who pays.
- Built by three people running about 15 Claude agents through a task hub. 330+ tasks merged in about a day, each one landed only when the tests and the web build passed.
Honest limits. Weather v2 features cut error in our tests (wind 14.7% lower) but are tested, not live. The Solana seals are on devnet, which a network reset can erase. Modelled and estimated figures are labelled as such on screen. We lose to simple baselines in some places, and the Proof screen shows them.
Power prices move for reasons you can't see: wind that gets paid to switch off, gas setting the price in GB most hours, cables between countries running flat out. So we put six zones on one map, forecast where prices are heading with a best guess and a likely range around it, and let you break things (close the Strait of Hormuz, trip the Norway cable) to see what it costs. Every forecast gets scored against what actually happened. Including the ones we got wrong.
Think of it as a weather app for the grid: Now is current conditions, Forecast is the outlook with odds, Hidden grid is the radar, What if is the warnings, History is past storms and record days, Proof is whether the forecast was right, Tonight and the data centre planner are "do I need an umbrella", and Play is beating the forecaster.
flowchart LR
D["Public data<br/>prices, weather,<br/>flows, gas"] --> F["Hourly forecast<br/>best guess and<br/>likely range"]
F --> M["Now<br/>prices and flows"]
F --> G["Forecast<br/>the next 24 hours"]
F --> S["What if<br/>an event's cost in pounds"]
F --> B["Batteries and households<br/>when to charge"]
F --> SC["Proof<br/>checked against<br/>what happened"]
M & G & S & B & SC --> P["Grid operators,<br/>battery owners,<br/>households on<br/>dynamic tariffs"]
The map shows GB, France, Germany-Luxembourg, the Netherlands, Belgium and southern Norway (NO2), coloured by this hour's day-ahead price, with arcs for electricity moving through the interconnectors (the cables that link one country's grid to another's). The day-ahead price is set in an auction the day before, and it's what we forecast. On the evening of 7 November that was £268/MWh in GB, €322 across the four coupled continental zones and €205 in NO2. A megawatt-hour (MWh) is 1,000 kWh, the unit on your bill. These are wholesale prices: what energy suppliers pay. A household bill adds network costs and other charges, and only follows wholesale changes later.
- Now: this hour's price, demand, generation mix, carbon intensity and flows for each zone.
- Forecast: where prices are heading over the next 24 hours. The faint block on the map is our forecast; the fainter it is, the less sure we are. It shows our best guess (the single most likely price) and a likely range around it (P10 to P90), which should hold the real price 8 times out of 10. The range gets wider the further out you look.
- Hidden grid: Scottish wind paid to switch off when a boundary is full (a boundary is the group of power lines between two areas, such as Scotland and England), and the constraint cost: what the grid pays generators on each side of a full line, which ends up on everyone's bills.
- What if: pick an event, see what it costs in pounds or euros and which zones take the hit.
- Proof: our forecasts against simple guesses, such as persistence: assume the price stays where it was when the forecast was made. Only forecasts logged before the outcome count. Each frozen forecast has a fingerprint, a short code from the forecast file that changes completely if one digit does, posted on a public blockchain so anyone can check we did not change it.
- Batteries: a 1 MW / 2 MWh battery in each zone trading on our forecasts, against a naive rule and against perfect foresight.
- Replay: the 26 October storm, played back by a model that never saw that day.
- Household: the cheapest window tonight to charge your car or run the dishwasher.
From the live site, 8 November 2026 (1920x1080).
Three of us, three lanes: Stefan (data and models), Keanu (engine and live state) and Manu (front end and demo).
flowchart LR
subgraph sources["Public data (cached as parquet)"]
EC[Energy-Charts<br/>continental prices, load, flows]
NP[Nord Pool<br/>day-ahead results]
EL[Elexon<br/>GB system price, mix, links]
OM[Open-Meteo<br/>weather forecasts]
NE[NESO, Carbon Intensity,<br/>Octopus Agile, TTF gas, EUA]
end
subgraph A["Lane A: pipeline/"]
F[features] --> M[LightGBM quantile models<br/>P10 / P50 / P90]
M --> LOG[(forecast log<br/>append-only, made_at on every row)]
LOG --> SC[scorer + backtest]
end
subgraph B["Lane B: engine/ + spacetime/"]
API[FastAPI<br/>/state /intervene /scores /replay ...]
PUB[publisher] --> STDB[(SpacetimeDB<br/>live shared state)]
end
subgraph C["Lane C: web/"]
WEB[React + deck.gl map]
end
sources --> F
sources --> API
LOG --> API
SC --> API
LOG --> PUB
API -->|HTTPS| WEB
STDB -->|websocket| WEB
Python pulls every source and caches it as parquet. At five past each hour the scheduler builds features, runs the model and appends to the forecast log. FastAPI answers the questions ("what was the state at 15:00?", "what if Norway's cable trips?"). Once a minute the publisher pushes actuals, forecasts, scores and battery runs into SpacetimeDB, so every screen updates together.
A forecast only counts if it was logged before the result was published. Every row has a made_at timestamp and the scorer ignores anything later.
flowchart TD
A["Scheduler, :05 every hour"] -->|"writes made_at = now"| B[("Forecast log<br/>rows are never edited")]
C["Outcome published<br/>Elexon about 15 min after each period;<br/>day-ahead auctions next day"] --> D
B --> D["Scorer, :12 every hour<br/>joins forecasts to outcomes<br/>where made_at is earlier than the outcome"]
D --> E["Scoreboard: our error vs persistence,<br/>share of outcomes inside P10 to P90,<br/>number of forecasts scored"]
Monday's forecast freezes at 09:15 UTC on Sunday, before the GB auction (09:50 UTC) and the continental one (11:00 UTC) close. It meets the real result in the 12:30 demo.
Each frozen forecast, and each hourly run, is hashed with SHA-256 and the hash is posted to Solana (devnet, so a network reset can erase it) as a Memo-program transaction from one published wallet:
FYgaqPzTFtMhdJU7DSx3pt65bsH76W17K4WixM6XfS2x (every transaction)
This is our second wallet. We retired the first, H82mxBj3HeSsgUpz1xSgxeteQquSvk4HvFyiUE8sc8Gv, on 7 November 2026 because a test run on a developer account posted about 66 junk memos to it, some labelled with future freeze times, so its history no longer proves anything. Its two real commitments are the freeze at 20:00 UTC (transaction 4fCxKkxHLnRXbUsP7UDJaFB9rCkaxBjHRqXhdF6k7tDV8wyMCgDtmEYbX4WZpMuVM1sc2Qr5A2rXWNHuPs1XKJeF) and the hourly run at 20:05 UTC (5YddW2t167bUtrKv6f9ShpXcME1LCAZS1bCoThRQ2YFg1LGqx4pDu3dfQWgesfPfe8p6zZE4J4B4DDnTApkbLpAr). We moved its balance to the new wallet in a plain transfer. Only the scheduled jobs hold the key, and the code refuses to post under pytest or without an explicit key path.
The memo reads lg1|<freeze or run>|<UTC time>|<sha256>. The hashed bytes are the canonical CSV in data/commitments/ (header, rows sorted by every column, UTC times ending in Z, floats as Python prints them). A hash proves a forecast existed unchanged at that time; it cannot prove we did not post others, so the wallet's full history is the check. python -m pipeline.commit_chain verify recomputes the hashes and reads the memos back. Code: pipeline/commit_chain.py.
These numbers come from a backtest: the model is tested on past weeks it never saw while it was being built, as if it were forecasting them live. The error (MAE) is the average gap between our best guess and the real price; lower is better. The app's Proof section may show live scored figures instead, with their own basis (#285 labels which); the figures below are the backtest.
Walk-forward backtest on day-ahead prices: twelve folds of seven days (mid-August to 8 November 2026) with a 48-hour purge and the split-conformal band calibration (#92) fitted per fold on held-out training rows. Source: data/backtest/walk_forward.parquet; its day-ahead price rows were written on 8 November 2026 at 02:07 UTC (alongside bot_league.parquet). This is the file the app's Proof headline reads, so the figures below match it.
| Model | Day-ahead price error (MAE) |
|---|---|
| Our LightGBM quantile model | 33.3 |
| Same hour yesterday | 36.7 |
| Last known price when the forecast was made (persistence) | 52.3 |
That's 36% better than persistence on day-ahead prices, pooled over all six zones (12,086 hours). Per zone the model beats persistence everywhere except NO2 (ratio 1.01, level), and beats yesterday in four of six zones; it loses to yesterday in France (1.02) and NO2 (1.09).
The bands are close to honest but still a little narrow: 78.5% of day-ahead price outcomes landed inside the likely range, between P10 and P90 (target 80%). GB is the widest at 88%; the continental zones sit at 76%.
Load, wind and GB system price come from the same twelve folds, purge and calibration, run on main at 388abef and merged into the same file at about 05:05 UTC on 8 November. Errors are n-weighted across folds and zones: load and wind in MW (five zones, 9,978 hours each), GB system price in £/MWh (1,997 hours).
| Target | Our model | Same hour yesterday | Persistence | Inside the likely range |
|---|---|---|---|---|
| Load (MW) | 1,211 | 1,854 | 5,068 | 80.5% |
| Wind (MW) | 2,113 | 3,532 | 2,860 | 76.3% |
| GB system price (£/MWh) | 43.4 | 56.5 | 62.7 | 76.6% |
Across these 11 zone-and-target pairs the model beats both baselines in 9. It loses to yesterday on NL load (an Energy-Charts data break on 10 October) and to persistence on FR wind.
The replay of 26 October 2026, a stormy day, generated separately from the backtest, shows where the misses cluster: 78 of its 168 hours (46%) landed inside the likely range. The storm caught the model out. NESO puts GB constraint costs that day at £36.5m.
Four rival forecasters run on exactly the same backtest folds as ours, each trained only on data from before the week it forecasts: Yesterday and Last week (same hour a day or a week earlier, with a band from their own past errors), The Engineer (merit order: price from residual load, gas and carbon) and The Committee (a weighted blend of the others, then calibrated). Same twelve folds as the Results above (mid-August to 8 November 2026). Storm days are the windiest 15% of days by GB wind output: 11 of the 85 days, 26 October among them. Run on 8 November at 07:29 to 07:47 UTC from the runner's cached data (python -m pipeline.bot_league --folds 12, about 18 minutes). The data had moved on by a few hours since the Results run, so our model's day-ahead error here is 33.5 rather than 33.3.
Day-ahead prices (MAE in £ or €/MWh; pinball loss scores the whole P10 to P90 band; Brier scores a yes/no question, below; lower is better):
| Model | MAE, calm | MAE, storm | Pinball, all | Inside P10 to P90 | Brier, all |
|---|---|---|---|---|---|
| Our model | 32.0 | 43.9 | 11.1 | 78% | 0.150 |
| The Committee | 32.1 | 47.4 | 11.8 | 74% | 0.151 |
| Yesterday | 34.0 | 53.9 | 13.1 | 76% | 0.168 |
| The Engineer | 40.1 | 62.8 | 14.1 | 76% | 0.201 |
| Last week | 53.0 | 70.9 | 19.1 | 69% | 0.243 |
| Persistence (no band) | 50.9 | 61.2 | 0.338 |
- On day-ahead prices we have the lowest error and pinball loss in calm weather, in storms and overall, but the lead over the best two is not proven. A Diebold-Mariano test on the hourly errors can't tell us apart from the Committee (p = 0.49) or the Yesterday bot (p = 0.25). We beat the Engineer, Last week and persistence clearly (p < 0.001).
- Storms are where the gap is widest: 43.9 against the Committee's 47.4 and Yesterday's 53.9. It's still short of significance (p = 0.09 and 0.06), because there are only 11 storm days.
- On GB system price it's a three-way tie. We, the Committee and the Engineer all score 43.4 to 43.5 on MAE, and no difference between the three is significant (p of 0.25 or more). We have the lowest pinball loss overall (13.7) and in storms (16.0 against the Engineer's 18.2). The Engineer is level with us on calm days (13.3) and has the best Brier score (0.188 against our 0.196).
- Yes/no questions: asked "will the price be above its average of the past week?" every hour, our model has the best day-ahead Brier score overall (0.150, the Committee 0.151) and in storms (0.138). The Committee is best on calm days (0.150 against our 0.152). A forecast with no band is always sure of itself, and it shows: the same-hour-yesterday guess scores 0.215 on its own and 0.168 once the Yesterday bot adds a band from its past errors.
Day-ahead bands are too narrow in storms: ours catches 67% of outcomes and the others 53% to 66%, against the 80% target (79% on calm days). On GB system price ours and the Committee's hold up in storms (78% and 77%); the Engineer's catches 59%.
| Event | What it changes |
|---|---|
| Strait of Hormuz closes | Raises the gas price; power prices follow through a merit-order estimate where gas sets the price |
| Norway to GB link trips | Removes the link's recent flow: GB residual load rises, Norway's falls |
| French nuclear outage | Removes reactors (default four 1,450 MW units, capped at the 63 GW fleet) |
| North Sea storm or windless week | Scales wind through a turbine power curve (cut-in 3, rated 12, cut-out 25 m/s) |
| Cold snap | Lowers temperature; French demand rises 2,400 MW per degree, RTE's own figure |
| Carbon price spike | Raises the EUA price and passes it through gas plants at 0.334 tCO₂/MWh |
| Storm over Scotland | More Scottish wind than the 6.7 GW B6 boundary can carry: prices fall, but more wind is paid to switch off |
The model has two years of history and has never seen anything like Hormuz closing, so that one uses the merit order instead: a gas plant at 58% efficiency burns 1.72 MWh of gas per MWh of power. The screen says it's an approximation of market coupling.
Every constant in the engine (interconnector capacities, plant efficiencies, emission factors, wind farm sizes, boundary limits) lives in engine/reference/facts/ with its source URL, the exact quote and a confidence rating. 53 of them were researched with the Parallel Task API, checked by a second independent run, then re-found on the source page with a plain HTTP fetch; 51 of those pass, and the other two are flagged and the code won't load them. Six more (data-centre hardware and household figures) were entered by hand with their source.
| Source | Used for | Limit we respect |
|---|---|---|
| Energy-Charts | Continental prices, load, generation, flows | 2 requests per minute per endpoint |
| Nord Pool | Day-ahead prices, including GB (N2EX) | About 60 days of history on the free API |
| Elexon Insights | GB system price, generation mix, interconnector flows, wind curtailment | 7-day windows |
| Open-Meteo | Historical and live weather forecasts | 10,000 calls a day |
| NESO | Constraint costs, boundary flows | Costs arrive about a week late |
| Carbon Intensity API | GB regional carbon intensity | Modelled data, labelled as such |
| Octopus Agile | Household tariff prices | Next day published around 16:00 UK |
| Yahoo Finance | TTF gas and EUA carbon prices | Daily closes, refreshed each hourly run |
- The P10 to P90 bands are still slightly narrow for GB system price and wind (see above).
- Energy-Charts reports load and wind for all of Norway, not just price zone NO2 (load averages about 15 GW against roughly 5 GW for NO2). So the load and wind forecasts cover five zones (GB, FR, DE-LU, NL, BE) and leave NO2 out, rather than log Norway-wide numbers under an NO2 label. Day-ahead prices cover all six zones, and each hourly run logs 816 forecasts instead of 912.
- Ghost wind (wind paid to switch off) is worked out two ways: from accepted balancing bids, and from the gap between weather-implied and metered output. Both are labelled as estimates.
- Carbon in imported power uses standard emission factors per fuel, not plant-level data.
- The 6.7 GW we use for the Scotland-England boundary (B6) is NESO's planning capability: "The boundary capability is limited to 6.7 GW due to thermal constraint on the Harker-Moffat 400kV circuit" (ETYS 2025). The limit NESO actually runs to is lower and changes daily, because it must secure the worst single fault: "our typical B6 limit is ~6GW but the intact capacity is ~12GW - we always have to operate to secure the worst fault" (NESO Constraints Collaboration Q&A, Jan 2025). The day-ahead SCOTEX limit we ingest was 3.3 to 3.6 GW on 7 Nov 2026; NESO notes day-ahead limits are sometimes set low when it does not expect the boundary to be congested. The storm scenario uses 6.7 GW, so it understates how often Scotland is cut off.
- Market day still has a small edge for one simple strategy. Betting YES on every question no longer pays (+0.041 per share, 95% CI -0.048 to +0.137), but always betting higher (YES on "above", NO on "below") still makes +0.155 per share (CI -0.005 to +0.309), down from +0.241. The replay-day models undershoot in the afternoon, and the first 4 replay days have no earlier days to calibrate from. Details: docs/findings/qa-pm-quant.md.
- Accounts or OAuth. Judges join from a QR code in a few seconds, and SpacetimeDB already gives every phone its own anonymous identity.
- Plant-level carbon. The data isn't public in real time.
uv sync # Python 3.12, fetched by uv
uv run uvicorn engine.app:app --port 8000 # API
cd web && npm install && npm run dev # front end on :5173
./scripts/check.sh # tests, then the web build (the merge gate)LG_OFFLINE=1 runs the whole thing from cached files and committed fixtures with no network. The demo has to survive the venue Wi-Fi dying.
Each of us ran one to three Claude Code agents on a Hetzner VPS. They took tasks off a shared board (hackhub, see HACKHUB.md), each task locked to the files it claimed, and a merge queue landed them one at a time only when the tests and the web build passed. Agents in different lanes talked over an ntfy message bus. Main mirrored to GitHub every minute. By 16:40 on Saturday that had merged 63 of 89 tasks.
Stack: Python 3.12 with pandas, LightGBM and FastAPI; SpacetimeDB 2.14 for live state; React, Vite, deck.gl 9.4 and MapLibre 5.24 for the map.







