cs-util-com / cscore

cscore is a minimal-footprint library providing commonly used helpers & patterns for your C# projects. It can be used in both pure C# and Unity projects.
https://cs-util-com.github.io/cscore/
Apache License 2.0
183 stars 31 forks source link

Build a Weather.cs helper that abstracts away the differences of the different weather APIs for the common use cases #120

Open cs-util opened 7 months ago

cs-util commented 7 months ago

Take a look at the different weather APIs and their responses in WeatherReportExamples

Define a few user stories what are common use cases how weather APIs are typically used. E.g. this one is probably a good one to start with:

Get the weather state at GPS position (e.g. the users position) for now and the next x hours. This state per hour should include the temperature, if its raining, ...

This Weather.cs should not try to do that much (for most use cases the specific APIs should be used) and it should also try to be stateless. One thing that can be tested is if it can normalize the responses from the different providers to map to a common WeatherResponse