Add Calendar Events widget, integrate ICS calendar parsing, and refine related UI components
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user