From: Robin Schneider Date: Wed, 13 Oct 2021 11:51:39 +0000 (+0200) Subject: Fixes apikey inconsistency X-Git-Tag: v22.02.1~13^2~2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=487f954a3688f31d5bcc5ba614cde4da3d5deedb;p=github%2Fbastienwirtz%2Fhomer.git Fixes apikey inconsistency --- diff --git a/docs/customservices.md b/docs/customservices.md index 803b91f..f55b739 100644 --- a/docs/customservices.md +++ b/docs/customservices.md @@ -43,7 +43,7 @@ The following configuration is available for the OpenWeatherMap service: - name: "Weather" location: "Amsterdam" # your location. locationId: "2759794" # Optional: Specify OpenWeatherMap city ID for better accuracy - apiKey: "<---insert-api-key-here--->" # insert your own API key here. Request one from https://openweathermap.org/api. + apikey: "<---insert-api-key-here--->" # insert your own API key here. Request one from https://openweathermap.org/api. units: "metric" # units to display temperature. Can be one of: metric, imperial, kelvin. Defaults to kelvin. background: "square" # choose which type of background you want behind the image. Can be one of: square, cicle, none. Defaults to none. type: "OpenWeather" diff --git a/src/components/services/OpenWeather.vue b/src/components/services/OpenWeather.vue index 09ff76a..7352b9b 100644 --- a/src/components/services/OpenWeather.vue +++ b/src/components/services/OpenWeather.vue @@ -64,7 +64,7 @@ export default { locationQuery = `q=${this.item.location}`; } - const url = `https://api.openweathermap.org/data/2.5/weather?${locationQuery}&appid=${this.item.apiKey}&units=${this.item.units}`; + const url = `https://api.openweathermap.org/data/2.5/weather?${locationQuery}&appid=${this.item.apikey}&units=${this.item.units}`; fetch(url) .then((response) => { if (!response.ok) {