stats B11: EP-Online energy labels (monthly total file → homes per label for NL, Gouda, Gouda PC4s; aggregates only), stats.ep_label_agg, monthly timer with key from ~/.config/stats/ep-online.env, charts on /stats/energy and /stats/gouda
Some checks failed
Deploy production / deploy (push) Has been cancelled

This commit is contained in:
2026-10-25 21:28:37 +00:00
parent 2a4466cb82
commit fa58e5c661
15 changed files with 33573 additions and 6 deletions

View File

@@ -31,7 +31,8 @@ const hostGapMs: Record<string, number> = {
'api.energy-charts.info': 2000,
'www.rijksfinancien.nl': 1000,
'api.fiscaldata.treasury.gov': 1000,
'api.usaspending.gov': 500
'api.usaspending.gov': 500,
'public.ep-online.nl': 1000
};
const lastHit = new Map<string, number>();
@@ -193,6 +194,15 @@ export const SOURCES = [
licence: 'Public domain (US government work)',
key_required: false,
attribution: 'Source: USAspending.gov (U.S. Department of the Treasury)'
},
{
source_id: 'eponline',
name: 'EP-Online (RVO energy labels)',
base_url: 'https://public.ep-online.nl/api/v5',
licence: 'Open data (RVO), aggregated here; API key required',
key_required: true,
attribution:
'Source: EP-Online, Netherlands Enterprise Agency (RVO), aggregated by stanrunge.dev'
}
] as const;