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!

Fix apikey for Weather Forecast

dinthobd505286e1d6
diff --git a/src/components/Widgets/WeatherForecast.vue b/src/components/Widgets/WeatherForecast.vue
index c95c045d..5130914a 100644
--- a/src/components/Widgets/WeatherForecast.vue
+++ b/src/components/Widgets/WeatherForecast.vue
@@ -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}`;
},