This is a small wrapper library to be used with the weatherapi.com API. It is a much simpler alternative to the official library, with the goal to make building any kind of weather app easy. There are no complicated classes are functions to worry about, you just create your client, call the function, and get perfectly parsed, easily acessable data returned, no need for verbose code.
To get started, you can take a look at the minimal setup down below.
Install the package
dotnet add package WeatherAPI-CSharp
Setup a minimal project
using WeatherAPI_CSharp;
var client = new APIClient("YOUR-API-KEY");
var weather = await client.GetWeatherCurrentAsync("Berlin");
Console.WriteLine($"The temperature in Berlin is {weather.TemperatureCelsius}C at a wind speed of {weather.WindKph}km/h");
The currently implemented endpoints are:
- Current (current.json)
- Forecast daily (forecast.json)
- Forecast hourly (forecast.json)
- IP Lookup (ip.json)
For contribution guidelines, refer to the documentation. Coding guidelines can be found here, and contribution guidelines can be found here.
Status | Description |
---|---|
Active | The project is actively being worked on and new features are being added |
On Demand | Bugs and other Issues will be fixed, but no new features will be added |
Paused | No development will take place at the moment, but this may change in the future |
Ceased | The project will not be worked on AT ALL |
The development status can change at any time in both ways (more/less work being done).
This software is licensed under the MIT License.