mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-06 16:43:13 +01:00
Merge bd505286e1 into 996de036e8
This commit is contained in:
commit
f918ed74bf
1 changed files with 2 additions and 1 deletions
|
|
@ -56,7 +56,8 @@ export default {
|
|||
return this.options.numDays || 6;
|
||||
},
|
||||
endpoint() {
|
||||
const { apiKey, city } = this.options;
|
||||
const apiKey = this.parseAsEnvVar(this.options.apiKey);
|
||||
const city = this.options;
|
||||
const params = `?q=${city}&cnt=${this.numDays}&units=${this.units}&appid=${apiKey}`;
|
||||
return `${widgetApiEndpoints.weatherForecast}${params}`;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue