Skip to content

Commit

Permalink
Merge pull request #205 from rprouse/issue/204
Browse files Browse the repository at this point in the history
Update to the v3.0 weather API
  • Loading branch information
rprouse authored Oct 29, 2024
2 parents 4ba5908 + 706cf35 commit 51ee1f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Guppi.Console/Guppi.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageProjectUrl>https://github.com/rprouse/guppi</PackageProjectUrl>
<RepositoryUrl>https://github.com/rprouse/guppi</RepositoryUrl>
<PackageId>dotnet-guppi</PackageId>
<Version>6.3.2</Version>
<Version>6.3.3</Version>
<PackAsTool>true</PackAsTool>
<ToolCommandName>guppi</ToolCommandName>
<PackageOutputPath>./nupkg</PackageOutputPath>
Expand Down
2 changes: 1 addition & 1 deletion Guppi.Console/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"profiles": {
"Guppi.Console": {
"commandName": "Project",
"commandLineArgs": "todo sync"
"commandLineArgs": "weather daily"
}
}
}
2 changes: 1 addition & 1 deletion Guppi.Core/Services/WeatherService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public async Task<WeatherForecast> GetWeather(string latitude, string longitude)
throw new UnconfiguredException("Please configure the weather provider");
}

var weather = await _restService.GetData<WeatherResponse>($"https://api.openweathermap.org/data/2.5/onecall?lat={latitude}&lon={longitude}&appid={_configuration.ApiKey}");
var weather = await _restService.GetData<WeatherResponse>($"https://api.openweathermap.org/data/3.0/onecall?lat={latitude}&lon={longitude}&appid={_configuration.ApiKey}");
return weather.GetWeather();
}

Expand Down

0 comments on commit 51ee1f1

Please sign in to comment.