mirror of
https://github.com/Lissy93/dashy.git
synced 2026-01-21 15:21:52 +01:00
Merge bd505286e1 into a92e89133f
This commit is contained in:
commit
772e856f0a
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