/// <summary> /// Make OpenWeather API Call to get weather information /// </summary> public async void GetForecast() { try { var excludePeriod = new PeriodOptions[] { PeriodOptions.Minutely, PeriodOptions.Hourly }; OneCallResponse = await OpenWeather.OneCall(Location.Lat, Location.Lon, excludePeriod); SetForecast(); } catch (Exception) { var E = new ErrorMessage("An error occurred whilst getting weather forecast"); DisplayErrors.Add(E); } }