Reference design · Intelligence
Carbon-Aware Load Scheduling for GB Sites
- NESO Carbon Intensity API
- Python
- Postgres
- OCPP charge controller
- Job scheduler
- ntfy
The problem
A site's flexible loads run when people plug them in or when a fixed timer starts them, usually in the evening peak. The carbon report then multiplies a year of bills by an annual average factor. Nothing in that report could have changed when any load ran.
What I would build
An agent reads NESO's 48-hour regional carbon intensity forecast for the site's postcode. For each flexible load (fleet charging, a battery's grid charge, batch jobs, a nightly sync) it picks the lowest-intensity window that still meets the load's deadline. It writes the schedule to the charge controller or the job scheduler. A person sets every deadline and can override any slot. Each half-hour of metered energy is logged against the forecast, and against NESO's estimated actual where one exists. Every figure carries its source, method and fetch time for Scope 2 reporting.
The logic flow
Click any node to see what it does, what it passes on and where a person must approve.
What it returns
In NESO's forecast for South England pulled on 16 October 2026, a three-hour fleet charge on arrival averaged 242 gCO2/kWh, and the best window before its deadline averaged 140. Those are forecast regional averages. They are not marginal intensity and not measured avoided emissions. This is a reference design on a public API, not a system I run.
Why it fits
A site manager can now ask an AI assistant when the grid in South England will be cleanest tomorrow, and get an answer read straight from a public forecast. That answer was most of what a carbon-reduction report used to charge for. Some firms respond by having a model write the report faster, from the same annual bills multiplied by the same annual average factor. They have automated the part the customer no longer needs and kept the part that never moved a kilowatt-hour. The report arrives sooner, and the fleet still charges at six in the evening, because that is when the drivers plug in. The customer's assistant cannot reach the charger.
This design reaches the charger, and the batch queue behind it. It reads NESO's 48-hour regional forecast for the site's postcode and takes the deadline a person has set for each flexible load. It writes the lowest-intensity window that still meets that deadline to the charge controller or the job scheduler. Anyone on site can override a slot, and the log keeps the override and the reason. No load moves without a deadline a person chose. In the forecast fetched for South England on the evening of 16 October 2026, UK time, a three-hour fleet charge started on arrival on Saturday evening averaged 242 gCO2/kWh. The same charge moved into the small hours of Sunday averaged 140. Those are forecast regional averages, not avoided emissions, and the report says so on every line. It keeps forecast apart from estimated actual, and each figure carries its source, its method and the time it was fetched.
A five-year strategy built on this would sell the firm's judgment about flexibility, not its paperwork about emissions. I offer this as a sketch, not a plan. The judgment covers which loads on a customer's site can move, how far, against what deadline, and what the customer gives up each time one does. The scheduling should be routine within a year. The decisions about which loads may move, and who signs the override when a deadline slips, stay with people. A firm that keeps the method tag beside every figure can defend its numbers when an auditor, or the customer's own assistant, asks where they came from.
See it run
Want one of these?
Every part of it is open source and you can host it yourself. I bring the build, the checks around the project's gaps and the judgement about where your gates should go.