]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Fixes apikey inconsistency
authorRobin Schneider <robin-schneider@outlook.de>
Wed, 13 Oct 2021 11:51:39 +0000 (13:51 +0200)
committerRobin Schneider <robin-schneider@outlook.de>
Wed, 13 Oct 2021 11:51:39 +0000 (13:51 +0200)
docs/customservices.md
src/components/services/OpenWeather.vue

index 803b91f3f203667e35b879acb985a692589bab03..f55b73916b9f82573e31c9896f24c6f7ca416b53 100644 (file)
@@ -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"
index 09ff76a3d07e04ec9c015fba6d727b5b3042af9a..7352b9be0ea4d540e8cb288948621eca4ee4da7b 100644 (file)
@@ -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) {