Skip to content

🌦️ Weather App using Kotlin - Jetpack Compose + WeatherAPI

Notifications You must be signed in to change notification settings

GM7Avila/weather-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌦️ AppTempo

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.

Features

  • 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.

Technologies Used

  • 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.

Project Structure

The project is structured as follows:

app/
β”œβ”€β”€ api/
β”‚   β”œβ”€β”€ Condition
β”‚   β”œβ”€β”€ Constant
β”‚   β”œβ”€β”€ Current
β”‚   β”œβ”€β”€ Location
β”‚   β”œβ”€β”€ NetworkResponse
β”‚   β”œβ”€β”€ WeatherApi
β”‚   └── WeatherModel
β”‚
β”œβ”€β”€ ui.theme
β”œβ”€β”€ MainActivity
β”œβ”€β”€ WeatherPage.kt
β”œβ”€β”€ WeatherViewModel
└── res/

How to Run

  1. Clone the repository and open with Android Studio.

  2. Register on the Weather API portal here and copy your API key.

  3. Add the WeatherAPI key in Constant.kt:

// www.weatherapi.com (https)
val apiKey = "Your_API_Key_Here"
  1. Build with gradle and run the app on an Android emulator or device.

image

Contributions

Contributions are welcome! If you would like to contribute, please fork the repository, create a branch for your changes, and submit a pull request.

About

🌦️ Weather App using Kotlin - Jetpack Compose + WeatherAPI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages