CoderPro.OpenWeatherMap 1.0.0

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package CoderPro.OpenWeatherMap --version 1.0.0
NuGet\Install-Package CoderPro.OpenWeatherMap -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CoderPro.OpenWeatherMap" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CoderPro.OpenWeatherMap --version 1.0.0
#r "nuget: CoderPro.OpenWeatherMap, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CoderPro.OpenWeatherMap as a Cake Addin
#addin nuget:?package=CoderPro.OpenWeatherMap&version=1.0.0

// Install CoderPro.OpenWeatherMap as a Cake Tool
#tool nuget:?package=CoderPro.OpenWeatherMap&version=1.0.0

<a href="coderpro.net" target="_blank"><img src="https://coderpro.net/media/g0qlgmoq/coderpro_jump_blue_300w.gif" align="right" width="125" /></a>

Contributors Forks Stargazers Issues MIT License LinkedIn Twitter GitHub

OpenWeatherMap API Wrapper Library (C#)

Overview

The most complete and modern library written for the OpenWeather API in .Net. This library retrieves the JSON from the OpenWeatherMap API and serializes them into objects. All of the free textual APIs are supported. We have planned support for the paid and mapping APIs also. See the roadmap for more information.

Clients

  • AirPollutionClient - Current and historical pollution conditions. See OpenWeather API Doc for more information.
  • CurrentWeatherClient - Current weather conditions. See OpenWeather API Doc for more information.
  • FiveDayForecastClient - Up to five days of three hour forecasts. See OpenWeather API Doc for more information.
  • GeocodingClient - Full support for geocoding by location name, post/zip code, and reverse geocoding. See OpenWeather API Doc for more information.

Installing

Install the NuGet package https://www.nuget.org/packages/CoderPro.OpenWeatherMap/

Example Usage

var openWeatherClient = new CoderPro.OpenWeatherMap.CurrentWeatherClient("my open weather api key");
// Use async version wherever possible.
var query = await openWeatherAPI.QueryAsync("city/location");

// or non-async version if needed for legacy code
var query = openWeatherAPI.Query("city/location ");

Console.WriteLine($"The temperature in {query.Name}, {query.Sys.Country} is currently {query.Main.Temperature.FahrenheitCurrent} °F");

Roadmap

Feature Version Release Date
All free textual APIs 1.0.0 2023/06/08
Weather Triggers API 1.1.0 2023/07/08
One Call API 3 2.0.0 2023/08/08
Weather Maps 1.0 API 2.1.0 2023/09/08
Weather station API 2.2.0 2023/10/08

Change Log

  • 2023/06/08
    • Initial checkin
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated