aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components
diff options
context:
space:
mode:
authorDick Wolff <dckwlff@gmail.com>2021-01-13 21:27:19 +0100
committerDick Wolff <dckwlff@gmail.com>2021-01-13 21:27:19 +0100
commit9e0ef05efe00ffd98ff6c7314a67e8a05505dcc4 (patch)
tree39cc78269c785383c6b5d565081355e1d92b12c7 /src/components
parentdfb0b14626ccf42784d5e4c270ea0e2253db724c (diff)
downloadhomer-9e0ef05efe00ffd98ff6c7314a67e8a05505dcc4.tar.gz
homer-9e0ef05efe00ffd98ff6c7314a67e8a05505dcc4.tar.zst
homer-9e0ef05efe00ffd98ff6c7314a67e8a05505dcc4.zip
Removed URL and made fixed.
Diffstat (limited to 'src/components')
-rw-r--r--src/components/services/OpenWeather.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/services/OpenWeather.vue b/src/components/services/OpenWeather.vue
index b1e5c57..c535a89 100644
--- a/src/components/services/OpenWeather.vue
+++ b/src/components/services/OpenWeather.vue
@@ -89,7 +89,7 @@ export default {
89 }, 89 },
90 methods: { 90 methods: {
91 fetchStatus: async function () { 91 fetchStatus: async function () {
92 const url = `${this.item.url}?q=${this.item.location}&appid=${this.item.apiKey}&units=${this.item.units}`; 92 const url = `https://api.openweathermap.org/data/2.5/weather?q=${this.item.location}&appid=${this.item.apiKey}&units=${this.item.units}`;
93 this.api = await fetch(url) 93 this.api = await fetch(url)
94 .then((response) => response.json()) 94 .then((response) => response.json())
95 .catch((e) => console.log(e)); 95 .catch((e) => console.log(e));