Skip to content

Gamoya/OpenWeatherMap

Repository files navigation

OpenWeatherMap

An aot compatible .NET client for OpenWeatherMap (https://openweathermap.org/)

NuGet GitHub

Prerequisites

Get API-Key from https://openweathermap.org/

Usage

string apiKey = "{your apiKey}";
var settings = new Gamoya.Weather.OpenWeatherMap.Settings { Units = Units.Metric, LanguageCode = "en" };

decimal latitude = 52.520008m;
decimal longitude = 13.404954m;

using (var openWeatherMapClient = new Gamoya.Weather.OpenWeatherMap.OpenWeatherMapClient(apiKey, settings)) {
    var currentWeather = await GetCurrentWeatherAsync(latitude, longitude);
    var forecastWeather = await GetForecastWeatherAsync(latitude, longitude);
}

About

aot compatible .NET client for OpenWeatherMap

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages