Add Calendar Events widget, integrate ICS calendar parsing, and refine related UI components

This commit is contained in:
2025-12-30 00:59:56 +01:00
parent a29beeda43
commit dfbc6066c9
14 changed files with 275 additions and 27 deletions

View File

@@ -23,6 +23,11 @@ func FetchCurrentWeather() CurrentWeather {
config.LoadConfig(cfg)
client := &http.Client{}
currentWeather := &CurrentWeather{}
if cfg.OpenWeatherMap.ApiKey == "" {
return CurrentWeather{
ErrorMessage: "No API key provided",
}
}
req, err := http.NewRequest("GET", apiBaseURL+"?id="+cfg.OpenWeatherMap.LocationId+"&units=metric&lang=en&APPID="+cfg.OpenWeatherMap.ApiKey, nil)
if err != nil {