Direct naar hoofdinhoud

Koolstofintensiteit

Onofficiรซle Beta-vertaling

Deze pagina is vertaald door PageTurner AI (beta). Niet officieel goedgekeurd door het project. Een fout gevonden? Probleem melden โ†’

Watโ€‹

Toont de actuele en verwachte koolstofintensiteit in gCO2/kWh met behulp van gegevens van de Carbon Intensity API.

opmerking

Let op: dit segment biedt momenteel alleen gegevens voor Groot-Brittanniรซ. Ondersteuning voor andere landen kan in de toekomst beschikbaar komen.

Voorbeeldconfiguratieโ€‹

let op

De API kan traag zijn. Het wordt aanbevolen om de http_timeout-eigenschap op een hoge waarde in te stellen (bijvoorbeeld 5000).

{
"type": "carbonintensity",
"style": "powerline",
"powerline_symbol": "๎‚ฐ",
"foreground": "#000000",
"background": "#ffffff",
"background_templates": [
"{{if eq \"very low\" .Index}}#a3e635{{end}}",
"{{if eq \"low\" .Index}}#bef264{{end}}",
"{{if eq \"moderate\" .Index}}#fbbf24{{end}}",
"{{if eq \"high\" .Index}}#ef4444{{end}}",
"{{if eq \"very high\" .Index}}#dc2626{{end}}"
],
"template": " COโ‚‚ {{ .Index.Icon }}{{ .Actual.String }} {{ .TrendIcon }} {{ .Forecast.String }} ",
"options": {
"http_timeout": 5000
}
}

Optiesโ€‹

NameTypeDefaultDescription
http_timeoutint20Timeout (in milliseconds) for HTTP requests. The default is 20ms, but you may need to set this to as high as 5000ms to handle slow API requests.

Template (informatie)โ€‹

standaard sjabloon
 COโ‚‚ {{ .Index.Icon }}{{ .Actual.String }} {{ .TrendIcon }} {{ .Forecast.String }}

Eigenschappenโ€‹

NameTypeDescription
.ForecastNumberThe forecast carbon intensity in gCO2/kWh. Equal to 0 if no data is available.
.ActualNumberThe actual carbon intensity in gCO2/kWh. Equal to 0 if no data is available.
.IndexIndexA rating of the current carbon intensity. Possible values are "very low", "low", "moderate", "high", or "very high". Equal to "??" if no data is available.
.TrendIconstringAn icon representation of the predicted trend in carbon intensity based on the Actual and Forecast values. Possible values are "โ†—", "โ†˜", or "โ†’".

Nummerโ€‹

NameTypeDescription
.Stringstringstring representation of the value

Indexโ€‹

NameTypeDescription
.Iconstringicon representation of the value