diff options
author | Robin Schneider <robin-schneider@outlook.de> | 2021-10-13 13:51:39 +0200 |
---|---|---|
committer | Robin Schneider <robin-schneider@outlook.de> | 2021-10-13 13:51:39 +0200 |
commit | 487f954a3688f31d5bcc5ba614cde4da3d5deedb (patch) | |
tree | 698410b99bde554ce90e012f2dcc49148edb9ce1 | |
parent | 54c19bb5f0f1ac4bbbbe3a3f3aa68b316d7c370f (diff) | |
download | homer-487f954a3688f31d5bcc5ba614cde4da3d5deedb.tar.gz homer-487f954a3688f31d5bcc5ba614cde4da3d5deedb.tar.zst homer-487f954a3688f31d5bcc5ba614cde4da3d5deedb.zip |
Fixes apikey inconsistency
-rw-r--r-- | docs/customservices.md | 2 | ||||
-rw-r--r-- | src/components/services/OpenWeather.vue | 2 |
2 files changed, 2 insertions, 2 deletions
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: | |||
43 | - name: "Weather" | 43 | - name: "Weather" |
44 | location: "Amsterdam" # your location. | 44 | location: "Amsterdam" # your location. |
45 | locationId: "2759794" # Optional: Specify OpenWeatherMap city ID for better accuracy | 45 | locationId: "2759794" # Optional: Specify OpenWeatherMap city ID for better accuracy |
46 | apiKey: "<---insert-api-key-here--->" # insert your own API key here. Request one from https://openweathermap.org/api. | 46 | apikey: "<---insert-api-key-here--->" # insert your own API key here. Request one from https://openweathermap.org/api. |
47 | units: "metric" # units to display temperature. Can be one of: metric, imperial, kelvin. Defaults to kelvin. | 47 | units: "metric" # units to display temperature. Can be one of: metric, imperial, kelvin. Defaults to kelvin. |
48 | background: "square" # choose which type of background you want behind the image. Can be one of: square, cicle, none. Defaults to none. | 48 | background: "square" # choose which type of background you want behind the image. Can be one of: square, cicle, none. Defaults to none. |
49 | type: "OpenWeather" | 49 | 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 { | |||
64 | locationQuery = `q=${this.item.location}`; | 64 | locationQuery = `q=${this.item.location}`; |
65 | } | 65 | } |
66 | 66 | ||
67 | const url = `https://api.openweathermap.org/data/2.5/weather?${locationQuery}&appid=${this.item.apiKey}&units=${this.item.units}`; | 67 | const url = `https://api.openweathermap.org/data/2.5/weather?${locationQuery}&appid=${this.item.apikey}&units=${this.item.units}`; |
68 | fetch(url) | 68 | fetch(url) |
69 | .then((response) => { | 69 | .then((response) => { |
70 | if (!response.ok) { | 70 | if (!response.ok) { |