This commit is contained in:
dintho 2025-12-27 19:00:22 +00:00 committed by GitHub
commit 772e856f0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}`;
},