FFXIVWeather 1.0.2 License Info
FFXIVWeather 1.0.2
FFXIVWeather
FFXIV weather forecast library for C# applications.
Credit to Garland Tools for crowdsourced weather data, and XIVAPI and FFCafe for game data.
Installation
Install-Package FFXIVWeather
or other methods as described here.
Example
Code:
var weatherService = new FFXIVWeatherService();
var zone = "Eureka Pyros";
var count = 15U;
var forecast = weatherService.GetForecast(zone, count);
Console.WriteLine($"Weather for {zone}:");
Console.WriteLine("|\tWeather\t\t|\tTime\t|");
Console.WriteLine("+-----------------------+---------------+");
foreach (var (weather, startTime) in forecast)
{
Console.WriteLine($"|\t{(weather.ToString().Length < 8 ? weather.ToString() + '\t' : weather.ToString())}\t|\t{Math.Round((startTime - DateTime.UtcNow).TotalMinutes)}m\t|");
}
Output:
Weather for Eureka Pyros:
| Weather | Time |
+-----------------------+---------------+
| Umbral Wind | -3m |
| Blizzards | 20m |
| Thunder | 43m |
| Umbral Wind | 67m |
| Umbral Wind | 90m |
| Blizzards | 113m |
| Thunder | 137m |
| Heat Waves | 160m |
| Umbral Wind | 183m |
| Blizzards | 207m |
| Heat Waves | 230m |
| Thunder | 253m |
| Blizzards | 277m |
| Umbral Wind | 300m |
| Thunder | 323m |