|
| 1 | +<div align='center'> |
| 2 | + |
1 | 3 | # :sun_behind_large_cloud:️ Open-Meteo Kotlin Library |
2 | 4 |
|
| 5 | +A Kotlin library for the [Open-Meteo.com](https://open-meteo.com) APIs. |
| 6 | + |
3 | 7 | [](https://kotlinlang.org/docs/components-stability.html)  |
4 | | -[](LICENSE.md)  |
5 | 8 | [](https://jitpack.io/#com.open-meteo/open-meteo-api-kotlin)  |
6 | 9 | [](https://github.com/sponsors/open-meteo) |
7 | 10 |
|
8 | | -A Kotlin library for the [Open-Meteo.com](https://open-meteo.com) APIs. |
9 | | - |
10 | | -> **Warning** |
11 | | -> |
12 | | -> Because it's still in early development, some breaking changes **WILL** occur. |
13 | | -
|
14 | | -## :bookmark_tabs: Index |
15 | | - |
16 | | - - [:blue_book: Installation](INSTALLATION.md#blue_book-installation) |
17 | | - - [Gradle](INSTALLATION.md#gradle) |
18 | | - - [Android (gradle)](INSTALLATION.md#android) |
19 | | - - [Maven](INSTALLATION.md#maven) |
20 | | - - [:green_book: Usage](#green_book-usage) |
21 | | - - [:memo: TODO](https://github.com/users/DadiBit/projects/1) |
22 | | - - [:balance_scale: Legal](#balance_scale-legal) |
23 | | - - [LICENSE](LICENSE.md) |
24 | | - - [ATTRIBUTIONS](ATTRIBUTIONS.md) |
25 | | - |
26 | | -## :green_book: Usage |
27 | | - |
28 | | -Here's a quick example: |
29 | | -```kotlin |
30 | | -import com.openmeteo.api.OpenMeteo |
31 | | - |
32 | | -OpenMeteo("Amsterdam") |
33 | | - .currentWeather(TemperatureUnit.Fahrenheit) |
34 | | - .getOrNull()?.run { |
35 | | - |
36 | | - println("+-- $city") |
37 | | - println("| Coordinates: [ $latitude, $longitude ]") |
38 | | - currentWeather?.run { |
39 | | - println("| Timestamp: $time") |
40 | | - println("| Temperature: $temperature°F") |
41 | | - println("| Message: $weatherCode") |
42 | | - println("+") |
43 | | - } |
44 | | - |
45 | | - } |
46 | | -``` |
| 11 | +--- |
47 | 12 |
|
48 | | -<!-- The library includes some examples in the [tests](lib/src/test/kotlin/com/openmeteo/api). --> |
| 13 | +### :link: Quick links |
49 | 14 |
|
50 | | -## :balance_scale: Legal |
| 15 | +[:wrench: Installation](../../wiki/Installation)  |
| 16 | +[:green_book: Examples](../../wiki/Examples)  |
| 17 | +[:memo: TODO](https://github.com/users/DadiBit/projects/1)  |
| 18 | +[:raised_hands: Contributing](CONTRIBUTING.md)  |
| 19 | +[:balance_scale: License](LICENSE.md)  |
| 20 | +[:page_facing_up: Attributions](ATTRIBUTIONS.md) |
51 | 21 |
|
52 | | -You are free to do pretty much whatever you want with this library, as long as you respect the [LICENSE](LICENSE.md) and the [ATTRIBUTIONS](ATTRIBUTIONS.md). |
| 22 | +</div> |
0 commit comments