GithubHelp home page GithubHelp logo

kavindu-mane / kotlin-weather-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nureka-rodrigo/kotlin-weather-app

0.0 0.0 0.0 1009 KB

License: MIT License

Kotlin 100.00%
kotlin-android weather-app

kotlin-weather-app's Introduction

Kotlin Weather App

This is a weather application built with Kotlin for Android. The application fetches real-time weather data from the OpenWeatherMap API and displays it in a user-friendly interface.

Features

  • Displays current weather information including temperature, humidity, wind speed, and air quality index.
  • Provides hourly weather forecast.
  • Supports widgets to display city name, current time, temperature, and weather icon on the home screen.
  • Automatically updates weather data every 15 minutes using WorkManager.
  • Handles location permissions and GPS status.

Permissions

The application requires the following permissions:

  • ACCESS_FINE_LOCATION: To get the device's current location.
  • ACCESS_COARSE_LOCATION: To get the device's current location in a battery-saving manner.
  • INTERNET: To make network requests to the OpenWeatherMap API.
  • SCHEDULE_EXACT_ALARM: To schedule precise and inexact alarms for updating the weather data.
  • RECEIVE_BOOT_COMPLETED: To schedule alarms after the device has booted.

Usage

Clone the repository and import the project into Android Studio. You will need to provide your own OpenWeatherMap API key in the MainActivity.kt file.

private val _openWeatherMapApiAky = "your_api_key_here"

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the terms of the MIT license.

kotlin-weather-app's People

Contributors

nureka-rodrigo avatar kavindu-mane avatar lakruwanj avatar lakruwanja avatar sasithmj avatar kj3004 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.