mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
fix(electricity): use bidding zone EIC codes for ENTSO-E (#2791)
* fix(electricity): use bidding zone EIC codes instead of country-level codes 5 of 11 ENTSO-E regions were returning "no price.amount" because they used country-level EIC codes. Day-ahead prices are published per bidding zone, not per country. Changes: - DE: 10Y1001A1001A83F (country) -> 10Y1001A1001A82H (DE-LU zone) - IT: 10YIT-GRTN-----B (country) -> 10Y1001A1001A73I (IT-North zone) - NO: 10YNO-0--------C (country) -> 10YNO-1--------2 (NO1 Oslo zone) - SE: 10YSE-1--------K (country) -> 10Y1001A1001A46L (SE3 Stockholm) - GB: removed entirely (left ENTSO-E June 2021 post-Brexit) EIC codes verified against entsoe-py canonical mappings. * Update scripts/seed-electricity-prices.mjs Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
@@ -20,20 +20,19 @@ export const ELECTRICITY_TTL_SECONDS = 3 * 24 * 3600; // 3 days = 259200s
|
||||
|
||||
const LOCK_DOMAIN = 'energy:electricity-prices';
|
||||
const LOCK_TTL_MS = 10 * 60 * 1000;
|
||||
const MIN_ENTSO_REGIONS = 3;
|
||||
const MIN_ENTSO_REGIONS = 7;
|
||||
|
||||
const ENTSO_E_REGIONS = [
|
||||
{ region: 'DE', eic: '10Y1001A1001A83F', name: 'Germany' },
|
||||
{ region: 'DE', eic: '10Y1001A1001A82H', name: 'Germany' }, // DE-LU bidding zone (post-split)
|
||||
{ region: 'FR', eic: '10YFR-RTE------C', name: 'France' },
|
||||
{ region: 'ES', eic: '10YES-REE------0', name: 'Spain' },
|
||||
{ region: 'IT', eic: '10YIT-GRTN-----B', name: 'Italy' },
|
||||
{ region: 'IT', eic: '10Y1001A1001A73I', name: 'Italy (North)' }, // IT-North bidding zone
|
||||
{ region: 'NL', eic: '10YNL----------L', name: 'Netherlands' },
|
||||
{ region: 'BE', eic: '10YBE----------2', name: 'Belgium' },
|
||||
{ region: 'PL', eic: '10YPL-AREA-----S', name: 'Poland' },
|
||||
{ region: 'PT', eic: '10YPT-REN------W', name: 'Portugal' },
|
||||
{ region: 'GB', eic: '10YGB----------A', name: 'Great Britain' },
|
||||
{ region: 'NO', eic: '10YNO-0--------C', name: 'Norway' },
|
||||
{ region: 'SE', eic: '10YSE-1--------K', name: 'Sweden' },
|
||||
{ region: 'NO', eic: '10YNO-1--------2', name: 'Norway (Oslo)' }, // NO1 bidding zone
|
||||
{ region: 'SE', eic: '10Y1001A1001A46L', name: 'Sweden (Stockholm)' }, // SE3 bidding zone
|
||||
];
|
||||
|
||||
const EIA_REGIONS = [
|
||||
|
||||
Reference in New Issue
Block a user