AurelienAVZN.OpenWeather.Client
0.0.1
dotnet add package AurelienAVZN.OpenWeather.Client --version 0.0.1
NuGet\Install-Package AurelienAVZN.OpenWeather.Client -Version 0.0.1
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="AurelienAVZN.OpenWeather.Client" Version="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AurelienAVZN.OpenWeather.Client" Version="0.0.1" />
<PackageReference Include="AurelienAVZN.OpenWeather.Client" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AurelienAVZN.OpenWeather.Client --version 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AurelienAVZN.OpenWeather.Client, 0.0.1"
#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.
#:package AurelienAVZN.OpenWeather.Client@0.0.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AurelienAVZN.OpenWeather.Client&version=0.0.1
#tool nuget:?package=AurelienAVZN.OpenWeather.Client&version=0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
βοΈ OpenWeather Client for .NET
A strongly-typed C# client library for the OpenWeather API, built on .NET 10.
π¦ Packages
β¨ Supported APIs
- π€οΈ Current Weather
- π Hourly Forecast (5 days / 3 hours)
- ποΈ Climatic Forecast (30 days)
- π£οΈ Road Risk
- βοΈ Solar Radiation
- πΊοΈ Weather Maps 2.0
- π Geocoding
- π One Call 4.0
- π Weather History
π Getting Started
Prerequisites
Installation
dotnet add package AurelienAVZN.OpenWeather.Client
Configuration
using AurelienAVZN.OpenWeather.Client.Core;
var config = new OpenWeatherConfig
{
ApiKey = "YOUR_API_KEY",
Urls = new OpenWeatherUrls() // default URLs are pre-configured
};
Usage Example
using AurelienAVZN.OpenWeather.Client.Bundles;
// Build a request for current weather (Paris, France)
var form = new CurrentWeatherForm
{
Lat = 48,
Lon = 2,
AppId = config.ApiKey,
Units = "metric",
Lang = "fr"
};
ποΈ Project Structure
openweather.client.csharp/
βββ AurelienAVZN.OpenWeather.Client.Bundles/ # DTOs & models
β βββ Forms/ # Request models
β β βββ Common/ # Shared form base
β β βββ CurrentForecast/ # Weather & road risk forms
β βββ Results/ # Response models
β βββ Json/ # JSON deserialization models
β βββ Common/ # Shared result base
β βββ CurrentForecast/ # Weather & forecast results
βββ AurelienAvzn.OpenWeather.Client.Core/ # Core logic & config
β βββ Config/ # OpenWeatherConfig & URLs
βββ OpenWeather.Client/ # Main client library
βββ .gitlab-ci.yml # CI/CD pipeline
βββ OpenWeather.slnx # Solution file
βοΈ CI/CD
The project uses GitLab CI/CD with automatic publishing:
- Create a tag following the pattern
vX.Y.Z(e.g.,v1.0.0) - The pipeline automatically:
- β Builds the solution
- π¦ Packs all NuGet packages
- π Publishes to NuGet.org
- π·οΈ Creates a GitLab Release
git tag v1.0.0
git push origin v1.0.0
π€ Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/my-feature) - Commit your changes (
git commit -m 'Add my feature') - Push to the branch (
git push origin feature/my-feature) - Open a Merge Request
π License
This project is licensed under the MIT License β see the LICENSE file for details.
π Links
- π¦ NuGet Packages
- π OpenWeather API Documentation
- π Issue Tracker
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on AurelienAVZN.OpenWeather.Client:
| Package | Downloads |
|---|---|
|
AurelienAvzn.OpenWeather.Client.Core
Core logic for the OpenWeather API client. |
|
|
AurelienAVZN.OpenWeather.Client.Bundles
Bundles (DTOs, forms) for the OpenWeather API client. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.1 | 153 | 7/5/2026 |