AppTempo is a weather android application that provides detailed meteorological information, including temperature, weather conditions, and UV index, for cities around the world. The app utilizes the WeatherAPI to fetch accurate and up-to-date weather data.
- City Search: Allows users to search and view weather information for different cities.
- Weather Details: Displays current temperature, weather conditions, and other relevant information.
- UV Index: Informs about the intensity of ultraviolet radiation to help users protect themselves from overexposure to the sun.
- Kotlin: Programming language used for app development.
- Jetpack Compose: Toolkit for building native Android UI.
- Retrofit: Library for making HTTP requests and integrating with the WeatherAPI.
- Gson: Library for converting Java objects to JSON and vice versa.
- WeatherAPI: Service used for fetching weather data.
The project is structured as follows:
app/
βββ api/
β βββ Condition
β βββ Constant
β βββ Current
β βββ Location
β βββ NetworkResponse
β βββ WeatherApi
β βββ WeatherModel
β
βββ ui.theme
βββ MainActivity
βββ WeatherPage.kt
βββ WeatherViewModel
βββ res/
-
Clone the repository and open with Android Studio.
-
Register on the Weather API portal here and copy your API key.
-
Add the WeatherAPI key in
Constant.kt
:
// www.weatherapi.com (https)
val apiKey = "Your_API_Key_Here"
- Build with gradle and run the app on an Android emulator or device.
Contributions are welcome! If you would like to contribute, please fork the repository, create a branch for your changes, and submit a pull request.