Skip to content

Commit 51ee1f1

Browse files
authored
Merge pull request #205 from rprouse/issue/204
Update to the v3.0 weather API
2 parents 4ba5908 + 706cf35 commit 51ee1f1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Guppi.Console/Guppi.Console.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<PackageProjectUrl>https://github.com/rprouse/guppi</PackageProjectUrl>
1414
<RepositoryUrl>https://github.com/rprouse/guppi</RepositoryUrl>
1515
<PackageId>dotnet-guppi</PackageId>
16-
<Version>6.3.2</Version>
16+
<Version>6.3.3</Version>
1717
<PackAsTool>true</PackAsTool>
1818
<ToolCommandName>guppi</ToolCommandName>
1919
<PackageOutputPath>./nupkg</PackageOutputPath>

Guppi.Console/Properties/launchSettings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"profiles": {
33
"Guppi.Console": {
44
"commandName": "Project",
5-
"commandLineArgs": "todo sync"
5+
"commandLineArgs": "weather daily"
66
}
77
}
88
}

Guppi.Core/Services/WeatherService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public async Task<WeatherForecast> GetWeather(string latitude, string longitude)
3636
throw new UnconfiguredException("Please configure the weather provider");
3737
}
3838

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

0 commit comments

Comments
 (0)