🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

coderpro.openweathermap

Package Overview
Dependencies
Maintainers
0
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

coderpro.openweathermap

1.0.0
unpublished
NuGet
Maintainers
0
Source

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

FeatureVersionRelease Date
All free textual APIs1.0.02023/06/08
Weather Triggers API1.1.02023/07/08
One Call API 32.0.02023/08/08
Weather Maps 1.0 API2.1.02023/09/08
Weather station API2.2.02023/10/08

Change Log

  • 2023/06/08
    • Initial checkin

Keywords

weather

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts