Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ”‚ Sync from master

Alicia Sykesc67ca65fea39
diff --cc src/components/Widgets/WeatherForecast.vue
index 5130914a,82a9e707..e6d37615
--- a/src/components/Widgets/WeatherForecast.vue
+++ b/src/components/Widgets/WeatherForecast.vue
@@@ -56,9 -56,9 +56,10 @@@ 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}`;
++ const { city } = this.options;
+ const cnt = this.numDays * 8; // API returns 3-hourly entries; request enough to cover numDays
+ const params = `?q=${city}&cnt=${cnt}&units=${this.units}&appid=${apiKey}`;
return `${widgetApiEndpoints.weatherForecast}${params}`;
},
tempDisplayUnits() {