-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.properties
506 lines (442 loc) · 29.6 KB
/
main.properties
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
# Main configuration/properties.
# Includes such data as:
# * the expected layout of some data files
# * the CO2 intensity of various generation fuels/sources in the BMREPORTS data.
# DHD20190602: newer carbon intensity values are available at:
# https://carbonintensity.org.uk/
# eg:
# https://github.com/carbon-intensity/methodology/raw/master/Carbon%20Intensity%20Forecast%20Methodology.pdf
# CO2e generation fuel intensity numbers (at full or maximum-efficiency load) in kgCO2e/kWh (thus also tCO2e/MWh).
# Names are also given.
# intensity.fuel.FUELCODE gives current (not historical) intensity.
# intensity.fuel.FUELCODE.hist.YYYYMMDD.YYYYMMDD gives historical value between given inclusive dates.
# Omitted values are not known.
# Source DBERR Fuel Mix Disclosure 2007-8 for generated kgCO2/kWh gas 0.36 / coal 0.91 / other 0.61.
# http://www.berr.gov.uk/energy/markets/electricity-markets/fuel-mix/page21629.html
# See also:
# https://en.wikipedia.org/wiki/Life-cycle_greenhouse-gas_emissions_of_energy_sources
# Assume DBERR 'fuel mix' disclosure 'natural gas' is CCGT.
# DHD20210809 after chat with James Kelloway consider update to carbon factors:
# * Look at https://github.com/carbon-intensity/methodology/blob/master/Carbon%20Intensity%20Forecast%20Methodology.pdf
# * https://carbonintensity.org.uk/
# Using carbonintensity.org.uk / ESO numbers for 2022 onwards,
# except interconnector intensities using Electricity Map for 2024 onwards.
#
intensity.fuel.CCGT.2021=0.36
intensity.fuel.CCGT.2022/=0.394
intensity.fuel.CCGT=0.394
intensity.fuelname.CCGT=Combined-Cycle Gas Turbine
# Assume OCGT has ~1.33 times intensity of CCGT.
intensity.fuel.OCGT.2021=0.48
intensity.fuel.OCGT.2022/=0.651
intensity.fuel.OCGT=0.651
intensity.fuelname.OCGT=Open-Cycle Gas Turbine
# Assume DBERR 'fuel mix' disclosure 'other' covers OIL.
intensity.fuel.OIL.2021=0.61
intensity.fuel.OIL.2022/=0.935
intensity.fuel.OIL=0.935
#intensity.fuelname.OIL=Oil
intensity.fuel.COAL.2021=0.91
intensity.fuel.COAL.2022/=0.937
intensity.fuel.COAL=0.937
#intensity.fuelname.COAL=Coal
# Assume DBERR 'fuel mix' disclosure 'nuclear' and thus 0.
#intensity.fuel.NUCLEAR.2021=0
#intensity.fuel.NUCLEAR.2022/=0
intensity.fuel.NUCLEAR=0
#intensity.fuelname.NUCLEAR=Nuclear
# Assume DBERR 'fuel mix' disclosure 'wind' and thus 0.
# Note: as of 2012/01/18, Elexon sees (ie meters) 4GW of the 6GW operational.
# Note: as of 2018/09/17, UK's installed wind power capacity hits 20GW. (From possibly-out-of-date Elexon figures it seems like 12GW is metered, so ~40% still unmetered by Elexon / National Grid eg because connected to low- or medium- voltage networks.)
#intensity.fuel.WIND.2021=0
#intensity.fuel.WIND.2022/=0
intensity.fuel.WIND=0
#intensity.fuelname.WIND=Wind
# Ignore PS when it returns energy to the system
# because it should have been accounted for in the generation that it absorbed earlier.
# Thus have no entry for PS, ***NOT*** zero!
#intensity.fuel.PS
intensity.fuelname.PS=Pumped Storage Hydro
# Assume NPSHYD non-pumped-storage hydro comes under DBERR 'renewables' and is 0.
#intensity.fuel.NPSHYD.2021=0
#intensity.fuel.NPSHYD.2022/=0
intensity.fuel.NPSHYD=0
intensity.fuelname.NPSHYD=Non-Pumped-Storage Hydro
# Assume DBERR 'fuel mix' disclosure 'other' covers OTHER (0.61, like OIL) to end 2011.
# As of start of 2012 seems to be being used for Tilbury biomass burning.
# Possible 0.3 for Tilbury and others from (~70% less than coal): http://www.rwe.com/web/cms/en/1295424/rwe-npower/about-us/our-businesses/power-generation/tilbury/tilbury-biomass/
# 2013/08/13: Tilbury closed: http://www.businessgreen.com/bg/news/2288386/tilbury-power-station-powers-down-as-biomass-row-rumbles-on
intensity.fuel.OTHER.2009/2011=0.61
intensity.fuel.OTHER.2012/=0.3
intensity.fuel.OTHER=0.3
intensity.fuelname.OTHER=Other
# DHD20171111 adding BIOMASS as a clone of OTHER at 0.3.
intensity.fuel.BIOMASS.2021=0.3
intensity.fuel.BIOMASS.2022/=0.12
intensity.fuel.BIOMASS=0.12
#intensity.fuelname.BIOMASS=Biomass
# For French CEF (mainly nuclear) see for example:
# http://lightbucket.wordpress.com/2008/10/22/carbon-emissions-from-electricity-generation-by-country/
# FR 2022 mean 0.062: Electricity Maps / ENTSO-E for 2024.
intensity.fuel.INTFR.2021=0.09
intensity.fuel.INTFR.2022/2023=0.053
intensity.fuel.INTFR.2024/=0.062
intensity.fuel.INTIFA2.2021=0.09
intensity.fuel.INTIFA2.2022/2023=0.053
intensity.fuel.INTIFA2.2024/=0.062
intensity.fuel.INTELEC.2021=0.09
intensity.fuel.INTELEC.2022/2023=0.053
intensity.fuel.INTELEC.2024/=0.062
intensity.fuel.INTFR=0.062
intensity.fuelname.INTFR=IFA1 (France) Interconnector
intensity.fuel.INTIFA2=0.062
intensity.fuelname.INTIFA2=IFA2 (France) Interconnector
intensity.fuel.INTELEC=0.062
intensity.fuelname.INTELEC=INTELEC (France) Interconnector
# Should be same intensity as INTEW.
# 0.45 based on 2011 data from http://www.eirgrid.com/operations/systemperformancedata/co2intensity/
# /2008 record here to support testing..
intensity.fuel.INTIRL./2008=0.7
intensity.fuel.INTIRL.2009/2011=0.7
intensity.fuel.INTIRL.2012/2021=0.45
intensity.fuel.INTIRL.2022/2023=0.458
# IE 2022 mean 0.288: Electricity Maps / ENTSO-E for 2024.
intensity.fuel.INTIRL.2024/=0.288
intensity.fuel.INTIRL=0.288
intensity.fuelname.INTIRL=Irish (Moyle) Interconnector
# Should be same intensity as INTIRL.
# 0.45 based on 2011 data from http://www.eirgrid.com/operations/systemperformancedata/co2intensity/
# http://www.eirgridprojects.com/projects/east-westinterconnector/
intensity.fuel.INTEW.2021=0.45
intensity.fuel.INTEW.2022/2023=0.458
# IE 2022 mean 0.288: Electricity Maps / ENTSO-E for 2024.
intensity.fuel.INTEW.2024/=0.288
intensity.fuel.INTEW=0.288
intensity.fuelname.INTEW=East-West (Ireland) Interconnector
# INTGRNL Greenlink
intensity.fuel.INTGRNL=0.45
intensity.fuel.INTGRNL.2024/=0.45
intensity.fuelname.INTGRNL=Greenlink (Ireland) Interconnector
# Very rough estimate of mean intensity 2011/01.
intensity.fuel.INTNED.2021=0.55
intensity.fuel.INTNED.2022/2023=0.474
# NL 2022 mean 0.262: Electricity Maps / ENTSO-E for 2024.
intensity.fuel.INTNED.2024/=0.262
intensity.fuel.INTNED=0.262
intensity.fuelname.INTNED=Netherlands Interconnector
# DHD20181111: adding INTNEM:
# https://www.elexon.co.uk/change-proposal/cp1506-new-interconnector-fuel-type/
# Assuming initial INTNEM intensity as for INTNED.
intensity.fuel.INTNEM.2021=0.55
intensity.fuel.INTNEM.2022/2023=0.179
# BE 2022 mean 0.123: Electricity Maps / ENTSO-E for 2024.
intensity.fuel.INTNEM.2024/=0.123
intensity.fuel.INTNEM=0.123
intensity.fuelname.INTNEM=Nemo (Belgium) Interconnector
# DHD20210123: estimating NOR grid intensity at 16gCO2/kWh as for 2017:
# https://www.nve.no/norwegian-energy-regulatory-authority/retail-market/electricity-disclosure-2017/
intensity.fuel.INTNSL.2021=0.016
# No intensity for INTNSL in carbonintensity.org.uk paper.
intensity.fuel.INTNSL.2022/2023=0.016
# NO 2022 mean 0.012: Electricity Maps / ENTSO-E for 2024.
intensity.fuel.INTNSL.2024/=0.012
intensity.fuel.INTNSL=0.012
intensity.fuelname.INTNSL=North Sea Link (Norway) Interconnector
# DHD20231229: INTVKL went live today.
# No intensity for INTVKL in carbonintensity.org.uk paper (default EM 2022).
intensity.fuel.INTVKL.2023=0.126
# DK 2022 mean 0.126: Electricity Maps / ENTSO-E for 2024.
intensity.fuel.INTVKL.2024/=0.126
intensity.fuel.INTVKL=0.126
intensity.fuelname.INTVKL=Viking Link (Denmark) Interconnector
#Generation Fuel Intensities Used
#2009--2011: CCGT=0.36 COAL=0.91 INTFR=0.09 INTIRL=0.7 INTNED=0.55 NPSHYD=0.0 NUCLEAR=0.0 OCGT=0.48 OIL=0.61 OTHER=0.61 WIND=0.0.
#2012--2013: CCGT=0.36 COAL=0.91 INTEW=0.45 INTFR=0.09 INTIRL=0.45 INTNED=0.55 NPSHYD=0.0 NUCLEAR=0.0 OCGT=0.48 OIL=0.61 OTHER=0.3 WIND=0.0.
# Thus, main changes 2011->2012 INTIRL 0.7->0.45 and OTHER 0.61->0.3.
# Note arrival of INTNED and INTEW 2011/2012.
# DHD20171111: adding BIOMASS as a clone of OTHER at 0.3.
# DHD20181111: adding INTNEM.
# DHD20210123: INTELEC, INTIFA2, INTNSL added.
# DHD20231229: INTVKL went live today.
# Also see:
# https://www.gov.uk/government/publications/greenhouse-gas-reporting-conversion-factors-2016
# http://www.berr.gov.uk/energy/markets/electricity-markets/fuel-mix/page21629.html
# https://en.wikipedia.org/wiki/Life-cycle_greenhouse-gas_emissions_of_energy_sources
# https://github.com/carbon-intensity/methodology/blob/master/Carbon%20Intensity%20Forecast%20Methodology.pdf
# https://www.electricitymaps.com/data-portal
# Estimated losses (0--1, 0 means no loss) in transmission and distribution.
# This affects (inflates) the actual effective intensity as seen by a domestic consumer.
intensity.loss.transmission=0.02
# Originally 7%, but according to Annette, and James of DECC, 2011/09/14,
# "distribution [only] losses averaging 5%, ranging from 3.7% for Yorkshire area
& 8% for Scottish Hydro)".
intensity.loss.distribution=0.05
# Comma-separated list of zero-or-more 'fuel' types/names that represent storage,
# ie positive numbers on these indicate energy being withdrawn from storage,
# which in turn implies the losses involved in using (filling and emptying) storage.
# Deferring/shifting fuel use from a source such as non-pumped hydro does not imply any such losses.
intensity.category.storage=PS
# Other categories...
intensity.category.fossil=COAL,OIL,CCGT,OCGT
#intensity.category.import=INTFR,INTELEC,INTIFA2,INTIRL,INTEW,INTNED,INTNEM,INTNSL
intensity.category.import=INTFR,INTELEC,INTIFA2,INTIRL,INTEW,INTNED,INTNEM,INTNSL,INTVKL,INTGRNL
intensity.category.nuclear=NUCLEAR,INTFR,INTELEC,INTIFA2
intensity.category.renewable=WIND,NPSHYD,BIOMASS
intensity.category.low-carbon=WIND,NPSHYD,NUCLEAR
# Fuel types by column in FUELINST rows.
# eg FUELINST,20011111,41,20011111200500,16123,0,20123,8123,812,612,612,0,0,212,0,0
#intensity.csv.fueltype=type,date,settlementperiod,timestamp,CCGT,OIL,COAL,NUCLEAR,WIND,PS,NPSHYD,OCGT,OTHER,INTFR,INTIRL,INTNED,INTEW
# DHD20171115 with BIOMASS appended.
# https://www.elexon.co.uk/wp-content/uploads/2017/06/bmrs_api_data_push_user_guide_v1.1.pdf
#intensity.csv.fueltype=type,date,settlementperiod,timestamp,CCGT,OIL,COAL,NUCLEAR,WIND,PS,NPSHYD,OCGT,OTHER,INTFR,INTIRL,INTNED,INTEW,BIOMASS
# DHD20181101: INTNEM appended.
# https://www.elexon.co.uk/change-proposal/cp1506-new-interconnector-fuel-type/
#intensity.csv.fueltype=type,date,settlementperiod,timestamp,CCGT,OIL,COAL,NUCLEAR,WIND,PS,NPSHYD,OCGT,OTHER,INTFR,INTIRL,INTNED,INTEW,BIOMASS,INTNEM
# DHD20210123: INTELEC, INTIFA2, INTNSL added
#intensity.csv.fueltype=type,date,settlementperiod,timestamp,CCGT,OIL,COAL,NUCLEAR,WIND,PS,NPSHYD,OCGT,OTHER,INTFR,INTIRL,INTNED,INTEW,BIOMASS,INTNEM,INTELEC,INTIFA2,INTNSL
# DHD20230803: INTVKL live in data stream 20231102.
#intensity.csv.fueltype=type,date,settlementperiod,timestamp,CCGT,OIL,COAL,NUCLEAR,WIND,PS,NPSHYD,OCGT,OTHER,INTFR,INTIRL,INTNED,INTEW,BIOMASS,INTNEM,INTELEC,INTIFA2,INTNSL,INTVKL
# DHD20230415: INTGRNL due to go live in data stream 20240801.
intensity.csv.fueltype=type,date,settlementperiod,timestamp,CCGT,OIL,COAL,NUCLEAR,WIND,PS,NPSHYD,OCGT,OTHER,INTFR,INTIRL,INTNED,INTEW,BIOMASS,INTNEM,INTELEC,INTIFA2,INTNSL,INTVKL,INTGRNL
# DHD20171115: incident FUELINST - INCUK0006672300
# Sample FUELINST 20171111 (note extra columns):
#FUELINST,20171110,23,20171110112500,13721,0,0,4031,7140,8069,536,410,90,0,0,805,0,1369
#FUELINST,20171111,24,20171111114500,18584,0,0,3290,7206,2443,289,586,88,634,0,711,0,1284
# vs the following live values from from the bmreports.com site:
#Sett-Date SP Pub-date-and-time CCGT OCGT Oil Coal Nuclear Wind PS Hydro (Non PS) Biomass Other French IC Irish IC Dutch IC East West IC
#2017-11-11 23 2017-11-11 11:20:00 18762 0 0 3258 7204 2143 294 606 1283 89 634 0 755 0
# and this XML record:
# <item><recordType>FUELINST</recordType><startTimeOfHalfHrPeriod>2017-11-11</startTimeOfHalfHrPeriod><settlementPeriod>23</settlementPeriod><publishingPeriodCommencingTime>2017-11-11 11:25:00</publishingPeriodCommencingTime><ccgt>18780</ccgt><oil>0</oil><coal>3267</coal><nuclear>7206</nuclear><wind>2235</wind><ps>289</ps><npshyd>606</npshyd><ocgt>0</ocgt><other>89</other><intfr>634</intfr><intirl>0</intirl><intned>730</intned><intew>0</intew><biomass>1285</biomass><activeFlag>Y</activeFlag></item>
# suggest a mapping of:
#intensity.csv.fueltype=type,date,settlementperiod,timestamp,CCGT,OIL,OCGT,COAL,NUCLEAR,WIND,PS,NPSHYD,OTHER,INTFR,INTIRL,INTNED,INTEW,BIOMASS
# Nominal mains frequency (Hz).
frequency.nominal=50.00
# Frequency below which some discretionary load should be dropped (Hz), as "dynamic demand".
# Should be no more than ~20% of the time.
frequency.loaddrop.some=49.95
# Frequency below which most discretionary load should be dropped (Hz), as "dynamic demand".
# Should be no more than a few percent of the time.
frequency.loaddrop.most=49.90
# Timescales over which various quantities are most useful/relevant,
# and which (for example) may drive sample/publication rates.
# Measured in (float) seconds.
# Note that this can be used to tide over data dropouts from the server.
timescale.default=300
timescale.intensity.min=60
# DHD20221004 was timescale.intensity.max=3600 but too many timeouts overnight.
timescale.intensity.max=7200
timescale.frequency.min=0.1
timescale.frequency.max=900
# URL for historical TIBCO data from bmreports.com.
# http://www.bmreports.com/tibcodata/tib_messages.YYYY-MM-DD.gz
# URL for current/recent FUELINST csv data from bmreports.com.
# Live URL. Don't use other than in production.
#intensity.URL.current.csv=http://www.bmreports.com/bsp/additional/saveoutput.php?element=generationbyfueltypetablehistoric&output=CSV
# DHD20161201: new (probably fragile) fixed URL post upgrade.
#intensity.URL.current.csv=https://www.bmreports.com/bmrs/?q=ajax/csv_download/FUELINST/csv/&filename=GenerationbyFuelType24HrInstantaneous
# Test data sample, or correct/current format; use during testing.
#intensity.URL.current.csv=file:data-samples/20090311T0806-FUELINST.csv
# DHD20220213: minimal partial URL for 2024-onwards streaming JSON; appended date should be in format 2024-01-01T00:00:00Z.
intensity.URL.JSON.prefix=https://data.elexon.co.uk/bmrs/api/v1/datasets/FUELINST/stream?publishDateTimeFrom=
# URL for current/recent FREQ csv data from bmreports.com.
# Live URL. Don't use other than in production.
#frequency.URL.current.csv=http://www.bmreports.com/bsp/additional/saveoutput.php?element=rollingfrequencyhistoric&output=CSV
# Test data sample, or correct/current format; use during testing.
frequency.URL.current.csv=file:data-samples/20090313T2052-FREQ.csv
# XHTML (mobile-friendly) preamble for traffic-light page.
# DHD20170621: dropped DOCTYPE.
# <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
trafficLightPage.XHTML.preamble=\
<?xml version="1.0" encoding="UTF-8"?>\n\
<html xmlns="http://www.w3.org/1999/xhtml">\n\
<head>\
<title>GB Grid Intensity Status Lite - Earth Notes</title>\
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes"/>\
<link href="https://www.earth.org.uk/_gridCarbonIntensityGB.html" rel="canonical"/>\n\
<meta property="og:description" name="description" content="Live marginal carbon intensity of the grid in Great Britain (Lite)."/>\
</head>\n\
<body style="color:black;background:#cfc">\
<h1>GB Grid Intensity Status Lite</h1>
# XHTML (mobile-friendly) postamble for traffic-light page.
trafficLightPage.XHTML.postamble=\
<p>Avoid running big appliances at home in the UK when the status is <strong style="color:red">RED</strong> and you'll reduce your carbon footprint!</p>\
<p>If you run your dishwasher or washing machine after 10pm rather than during the day or evening then you may save 10% or more in CO2 emissions from the electricity.</p>\
<p><small>This free (beta) service may be unavailable or withdrawn at any time and is provided \"as-is\" with no warranties of any kind.<br />\
Some data used to generate this page is licensed from <a href="https://www.elexon.co.uk/">ELEXON</a>.<br />\
Copyright (c) <a href="http://d.hd.org/">Damon Hart-Davis</a> 2010--2024. [<a href="//www.earth.org.uk/">home</a>]<br />\
</small></p></body></html>
# HTML preamble for traffic-light page.
# The string <!-- STATUS --> can be replaced with some status text and styling.
# Thanks for bar-graph code to http://www.terrill.ca/design/vertical_bar_graphs/
trafficLightPage.HTML.preamble=\
<!DOCTYPE html>\n\
<html lang=en-gb>\n\
<head>\n\
<meta charset=utf-8>\n\
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes">\n\
<meta property=og:description name=description content="Live marginal carbon intensity of the grid in Great Britain.">\n\
<meta name=og:image content=https://www.earth.org.uk/img/grid-demand-curves/gCO2perkWh-sq.png><meta name=og:image:alt content="grid carbon intensity equation">\n\
<link href=https://www.earth.org.uk/_gridCarbonIntensityGB.html rel=canonical>\n\
<link href=https://www.earth.org.uk/_gridCarbonIntensityGB.xhtml media="only screen and (max-width: 640px)" rel=alternate>\n\
<title>GB Grid Intensity Status - Earth Notes</title>\n\
<style>\n\
dt,h1,h2,h3{font-family:sans-serif}\
.barGraph{border-bottom:3px solid #333;font:12px sans-serif;height:100px;margin:0;padding:0;position:relative}\
.barGraph li{border:1px solid #555;border-bottom:none;bottom:0;color:black;margin:0;padding:0 0 0 0;position:absolute;list-style:none;text-align:center;width:29px}\n\
@media screen and (min-width:600px){.container{max-width:800px;margin:auto}}\n\
@media print {.noprint{display:none !important}}\n\
@media (prefers-color-scheme:dark){body{background-color:#000;color:#eee}img{filter:brightness(.9)}}\n\
</style>\n\
</head>\n\
<body><div class=container>\n\
<h1 style="margin:0; padding:0;"><span style="color: green">Earth Notes</span>: GB Grid Intensity <!-- STATUS --></h1>\r\n
# HTML midamble for traffic-light page.
trafficLightPage.HTML.midamble=\
<p>This free service is in <strong>BETA</strong> and may be unavailable or withdrawn at any time and is provided \"as-is\" with no warranties of any kind.</p>\n\
<p>This page shows the current "<strong>carbon intensity</strong>" of the GB National Grid \
(ie the England/Scotland/Wales portions of the UK electricity grid) \
as a simple traffic-light indicator.\n\
Carbon intensity is a measure of how much greenhouse gas (especially CO2 or carbon dioxide)\n\
is emitted to generate a fixed amount of electricity.</p>\n\
<p>Anything other than a <strong style="color:green">GREEN</strong> light \
suggests that you should consider deferring heavy loads (eg starting a dishwasher or washing-machine at home) \
because the carbon intensity is relatively high, or because of other factors. \
Avoiding running major appliances such as washing/heating/cooking during <strong style="color:red">RED</strong> times will save CO2 emissions.</p>\n\
<p><strong>You should still conserve first</strong>: \
don't run things that don't need to be run at all, \
don't leave things on that can be turned off at the wall, \
run full loads in your washing machine and dishwasher, etc, etc, \
before worrying about carbon intensity.</p> \
<p><strong>Planning ahead</strong>: note that in the UK/GB peak demand for electricity will usually be <strong>4pm to 9pm</strong> especially on week days in winter (and a lesser peak around 9am/10am), \
and peak carbon intensity is often around peak demand, so try to avoid big loads then; \
<strong>if possible run loads such as your dishwasher and washing machine overnight</strong>, \
eg on a delay timer or just as you go to bed, \
or when you have local microgeneration that can cover much/all of the load.</p>\n\
<p>There are <a href="https://electricitymap.org/blog/marginal-vs-average-real-time-decision-making/">various</a> <a href="https://edavies.me.uk/2016/07/grid-intensity/">arguments</a> about whether this marginal cost calculation reflects reality, ie in practice is there simply a gas turbine somewhere that gets spun up a little if you demand extra power. There is much less argument about the value of lowering demand generally, and about lowering peak demand on various parts of the infrastructure.</p> \
<p>Shifting loads to the night when energy is going into grid-scale storage such as pumped hydro, avoids pulling it out when you would otherwise run/dispatch the load, and thus saves round-trip losses of ~25% for that load.</p>\r\n
# HTML postamble for traffic-light page.
trafficLightPage.HTML.postamble=\
<p>See also:</p><ul>\
<li><a href="https://www.bmreports.com/bmrs/">Elexon Electricity Summary Page</a> and the new <a href="https://bmrs.elexon.co.uk/generation-by-fuel-type">Insights Solution FUELINST</a></li>\
<li><a href="//www.earth.org.uk/GB-electricity-grid-CO2-intensity-live-dataset.html">GB Electricity Grid Live Carbon Intensity Dataset</a>.</li>\
<li><a href="//www.earth.org.uk/note-on-UK-grid-CO2-intensity-buttons.html">GB Grid Electricity CO2 Intensity Buttons/Widgets</a> for your page.</li>\
<li><a href="//www.earth.org.uk/note-on-UK-grid-CO2-intensity-variations.html">A Note On Variations in GB Grid Electricity CO2 Intensity with Time</a></li>\
<li><a href="https://carbonintensity.org.uk/">Carbon Intensity forecast</a></li>\
<li><a href="https://www.mygridgb.co.uk/dashboard/">MyGridGB: British Electricity Live</a></li>\
<li>Sheffield Solar <a href="https://www.solar.sheffield.ac.uk/pvlive/">PV_Live</a>.</li>\
<li>Real-time <a href="https://www.electricitymap.org/map">CO2 intensity map of Europe's electricity</a>.</li>\
<li><a href="https://wind-curtailment-app-ahq7fucdyq-lz.a.run.app/">UK Wind Curtailment Monitor</a>.</li>\
<li><a href="https://thecurrent.lcp.uk.com/">The Energy Current</a>.</li>\
</ul>\n\
<p>Poll every 10 minutes for 404 HTTP status code \
(404 means green, 200 means not green, anything else is 'unknown' status due to server/network/other problems) \
for automated systems:</p><ul>\ <li>_gridCarbonIntensityGB.flag for 'green'</li>\
<li>_gridCarbonIntensityGB.supergreen.flag for 'green' and no draw on storage</li>\
<li>_gridCarbonIntensityGB.red.flag reverse status, presence/200 for 'red'</li>\
<li>(_gridCarbonIntensityGB.txt for current consumer gCO2e/kWh when current, ie non-stale, absent/404 when data stale/missing)</li>\
</ul><p>Please email me if you use this mechanism, to be alerted to changes.</p>\n\
<p class="noprint" itemscope itemtype="https://schema.org/SoftwareSourceCode">See <a itemprop="codeRepository" href="https://github.com/DamonHD/reutils">code on GitHub</a>.</p>\n\
<p><small>This free service may be unavailable or withdrawn at any time and is provided \"as-is\" with no warranties of any kind.<br>\
Some data used to generate this page is licensed from <a href="https://www.elexon.co.uk/">ELEXON</a>.<br>\
Copyright © <a href="http://d.hd.org/">Damon Hart-Davis</a> 2010--2024. [<a href="/">home</a>]<br>\
</small></p></div></body></html>
# DHD20230412: removed this from preamble as Twitter kill-switch activated.
#Messages posted to Twitter with <a href="https://www.winterwell.com/software/jtwitter.php">jTwitter</a>.<br>
# HTML preamble for data-analysis page.
# The string <!-- STATUS --> can be replaced with some status text and styling.
# Thanks for bar-graph code to http://www.terrill.ca/design/vertical_bar_graphs/
dataAnalysisPage.HTML.preamble=\
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\n\
<html lang="en">\n\
<head>\n\
<title>Data Analysis - Earth Notes</title>\n\
<style>\n\
h1,h2,h3,dt{font-family:sans-serif}\
.barGraph{border-bottom:3px solid #333;font:12px sans-serif;height:100px;margin:0;padding:0;position:relative}\
.barGraph li{border:1px solid #555;border-bottom:none;bottom:0;color:black;margin:0;padding:0 0 0 0;position:absolute;list-style:none;text-align:center;width:29px}\n\
</style>\n\
</head>\n\
<body bgcolor="#ccffcc">\n\
<small><a href="/">home</a></small><br><br>\n\
<h1 style="margin:0; padding:0;"><span style="color: green">Earth Notes</span>: Data Analysis</h1>\r\n
# HTML postamble for data-analysis page.
dataAnalysisPage.HTML.postamble=\
<p><small>Some data used to generate this page is licensed from <a href="https://www.elexon.co.uk/">ELEXON</a>.<br>\
Messages posted to Twitter with <a href="http://www.winterwell.com/software/jtwitter.php">jTwitter</a>.<br>\
Copyright © <a href="http://d.hd.org/">Damon Hart-Davis</a> 2010--2024. [<a href="//m.earth.org.uk/">home</a>]<br>\
</small></p></body></html>
# HTML outlining the methodology.
methodology.HTML=\
<p>This estimates the carbon intensity of generation connected to \
the National Grid GB (Great Britain) high-voltage transmission system, \
ignoring (pumped) storage and exports but including imports via interconnectors. \
This excludes 'embedded' generation, eg connected directly to the distribution system, \
such as small diesels, domestic microgeneration and a significant chunk of wind power, \
all of which also benefits from reduced transmission/distribution losses, \
so actual intensity may be somewhat different to (and probably lower than) that reported. \
However the emissions cost of each marginal/conserved kWh is probably accurately reflected.</p> \
<p>(Colours are wrt the last 24h of data.)</p>
# For publishing status updates to Twitter (on status changes).
# Omit or leave blank to disable this feature.
Twitter.username=EarthOrgUK
# The external file, pref outside the Web-served file area,
# containing OAuth tokens.
# Omit or leave blank (this and the alternate) to poll existing status only as part of tests.
# Not massively safe, but it's probably better than having it where it might get published by accident.
# File permissions should be restricted.
Twitter.authtokenfile=/etc/winfo/EarthOrgUK.tat
# Alternative location if the first passfile is not available.
Twitter.authtokenfile2=../../EarthOrgUK.tat
# Minimum interval between tweets to minimise annoyance/cost (minutes).
# Something close to an hour reflects magnitude of typical (wash) load run time,
# So updates much quicker probably not usable anyway.
#Twitter.minGapMins=85
# DHD20211121: reduced from 85 to 58 (ie ~1 per hour should be allowed).
Twitter.minGapMins=58
# Pithy/terse traffic-light messages for Twitter.
Twitter.trafficlight.status.RED=%1$dgCO2/kWh National Grid CO2 intensity is HIGH wrt last 24h so don't run anything that can wait! http://bit.ly/3usoe #CO2
Twitter.trafficlight.status.YELLOW=%1$dgCO2/kWh National Grid CO2 intensity so-so wrt last 24h so don't run big appliances now if you can wait. http://bit.ly/3usoe #CO2
Twitter.trafficlight.status.GREEN=%1$dgCO2/kWh National Grid CO2 intensity is LOW wrt last 24h so you can run your wash etc now! http://bit.ly/3usoe #green #energy #CO2
# Text to use when PREDICTING status because there is no live data...
Twitter.trafficlight.prediction.RED=National Grid CO2 intensity probably high so don't run anything that can wait! http://bit.ly/3usoe #CO2
Twitter.trafficlight.prediction.YELLOW=National Grid CO2 intensity probably average so don't run big appliances now if you can wait. http://bit.ly/3usoe #CO2
Twitter.trafficlight.prediction.GREEN=National Grid status GREEN: CO2 intensity probably low so you can run your wash etc now! http://bit.ly/3usoe #green #energy #CO2
# Keep an eye on:
# https://github.com/tmrowco/electricitymap-contrib/blob/master/config/co2eq_parameters.json
# https://data.nationalgrideso.com/data-groups/carbon-intensity1
# https://opennetzero.org/dataset/oe-03782949-elexon_insights_fuelinst?q=
# https://www.elexon.co.uk/article/read-energy-systems-catapult-and-elexons-report-on-accurately-tracking-carbon-in-electricity-markets/
# https://www.elexon.co.uk/change-proposal/cp1576/
# CP1576 'New Interconnector Fuel Type Category: Viking Link'
# CP1576 has been approved for implementation on 2 November 2023 (Standard November 2023 Release).
# Suggested: INTVKL
# Using 2022 intensity figure from https://www.electricitymaps.com/data-portal
# DHD20231221: likely future source of intensity weights: https://www.electricitymaps.com/data-portal
# DHD20231228: Electricity Maps / ENTSO-E 2022 whole-country intensity figures.
# Interconnectors to BE (NED), DK (VKL), FR (IFA, IFA2, ELEC), IE (IRL, EW), NL (NEM), NO (NSL).
# BE 2022 mean 0.123: Electricity Maps / ENTSO-E.
# DK 2022 mean 0.126: Electricity Maps / ENTSO-E.
# FR 2022 mean 0.062: Electricity Maps / ENTSO-E.
# IE 2022 mean 0.288: Electricity Maps / ENTSO-E.
# NL 2022 mean 0.262: Electricity Maps / ENTSO-E.
# NO 2022 mean 0.012: Electricity Maps / ENTSO-E.
# DHD20231229: INTVKL story and future interconnectors https://www.nationalgrid.com/national-grid-announces-commercial-operations-viking-link-worlds-longest-land-and-subsea
# "Earlier this year (2023) National Grid announced joint plans with TenneT for a new 1.8GW interconnector between the UK and The Netherlands, called LionLink. The link would not only join the two countries but also connect to offshore wind generation. LionLink would be the second link between the two countries and is expected to be operational in the early 2030s. A second new link called Nautilus, is also in the planning phase with the potential to connect with Belgium."
# DHD20240212: CP1593 new INTGRNL fuel type for the Greenlink Interconnector.
# https://www.elexon.co.uk/change-proposal/cp1593/
# Proposed go-live: 2024-08-01
# 500MW biredirectional between EirGrid's Great Island substation in County Wexford (Ireland) and National Grid's Pembroke substation in Pembrokeshire (Wales).
# For publishing status updates to Mastodon (on status changes).
# Omit or leave blank to disable this feature.
Mastodon.username=EarthOrgUK
Mastodon.hostname=mastodon.energy
# The external file, pref outside the Web-served file area,
# containing OAuth tokens.
# Omit or leave blank (this and the alternate) to poll existing status only as part of tests.
# Not massively safe, but it's probably better than having it where it might get published by accident.
# File permissions should be restricted.
Mastodon.authtokenfile=/etc/winfo/EarthOrgUK.mat
# TODO
# DHD20240212: CP1593 new INTGRNL fuel type for the Greenlink Interconnector.
# Marker that end-of-file has been read OK; must be last and unique.
end=OK