This sample shows how to fetch a 5 day / 3 hour weather forecast from the OpenWeatherMap API using Jetpack Compose.
- Get an API key from OpenWeatherMap.
- Open
ApiClient.ktand replace"YOUR_API_KEY"with your API key. - Build and run the project using Android Studio.
The app now shows a list of sample cities from around the world. Selecting a city opens its 5 day / 3 hour forecast complete with weather icons.