SimpleWeather 1.0.0
See the version list below for details.
dotnet add package SimpleWeather --version 1.0.0
NuGet\Install-Package SimpleWeather -Version 1.0.0
<PackageReference Include="SimpleWeather" Version="1.0.0" />
paket add SimpleWeather --version 1.0.0
#r "nuget: SimpleWeather, 1.0.0"
// Install SimpleWeather as a Cake Addin #addin nuget:?package=SimpleWeather&version=1.0.0 // Install SimpleWeather as a Cake Tool #tool nuget:?package=SimpleWeather&version=1.0.0
SimpleWeather
Summary
This is a <b>.NET</b> 6 project that provides simple means of obtaining weather data from the OpenWeatherMap's API.
Status
// TODO
Methods
At this point there is only one <b>asynchronous</b> method which returns and Object containing all the data for the current weather in a given city:
GetCurrentWeatherResponse(string city, string units)
Prerequisites
In order for the library to work you need to have a <b>appsettings.json</b> file (containing your OpenWeatherMap's API KEY) in your project's output directory containing the following:
{
"openWeatherApiKey": "YourKeyGoesHere"
}
Example usage
using SimpleWeather;
var weatherController = new WeatherController();
var currentWeather = await weatherController.GetCurrentWeatherResponse("Lovech", "metric");
Console.WriteLine($"The current temperature in {currentWeather.City} is {currentWeather.Main.Temperature} degrees.");
Installation
DISCLAIMER: Plese note that this package is still under development and bugs may be present. If you spot a bug, please open a new Issue
You can install the NuGet library into your project using:
Package Manager:
//TODO
.NET CLI:
//TODO
License
Copyright © 2022 Ivan Gechev.
This package has MIT license. Refer to the LICENSE for detailed information.
Questions, comments or additions
If you have a feature request or bug report, open a new Issue or send a Pull request.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net6.0
- Microsoft.AspNet.WebApi.Core (>= 5.2.7)
- Microsoft.Extensions.Configuration (>= 6.0.1)
- Microsoft.Extensions.Configuration.Json (>= 6.0.0)
- Microsoft.Web.Administration (>= 11.1.0)
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release