Direct naar hoofdinhoud

Open Weather Map

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 het actuele weer van een bepaalde locatie met Open Weather Map.

let op

Je moet een API-sleutel aanvragen op de Open Weather Map website. Het gratis abonnement voor Huidig weer en voorspellingen is voldoende.

Voorbeeldconfiguratieโ€‹

{
"type": "owm",
"style": "powerline",
"powerline_symbol": "๎‚ฐ",
"foreground": "#ffffff",
"background": "#FF0000",
"template": "{{.Weather}} ({{.Temperature}}{{.UnitIcon}})",
"options": {
"api_key": "<YOUR_API_KEY>",
"location": "AMSTERDAM,NL",
"units": "metric",
"http_timeout": 20
}
}

Optiesโ€‹

NameTypeDefaultDescription
api_keytemplate.Your API key from Open Weather Map.
locationtemplateDe Bilt,NLThe requested location interpreted only if valid coordinates aren't given. Formatted as <City,STATE,COUNTRY_CODE>. City name, state code and country code divided by comma. Please, refer to ISO 3166 for the state codes or country codes .
unitsstringstandardUnits of measurement. Available values are standard (kelvin), metric (celsius), and imperial (fahrenheit)
http_timeoutint20in milliseconds, the timeout for http request

Template (informatie)โ€‹

standaard template
 {{ .Weather }} ({{ .Temperature }}{{ .UnitIcon }})

Eigenschappenโ€‹

NameTypeDescription
.Weatherstringthe current weather icon
.Temperatureintthe current temperature
.UnitIconstringthe current unit icon(based on units property)
.URLstringthe url of the current api call