/TV-Weather

This is a sample Android TV app, that fetches weather data from Weather API, you can customize and use the app with your own weather api, see below how to set it up.

Primary LanguageKotlinGNU General Public License v3.0GPL-3.0

TV-Weather -Android TV App-

This is a sample Android TV app, that fetches weather data from Weather API, you can customize and use the app with your own weather api, see below how to set it up.

Screenshots





Setup

Clone this repository and import into Android Studio

git clone https://github.com/islem19/TV-Weather.git

Configs in gradle.properties

Sample Configuration

android.useAndroidX=true
android.enableJetifier=true

WEATHER_API_URL="https://api.weatherapi.com/v1/"
WEATHER_API_KEY="<Your_Weather_Api_Key>"
LOCATION_API_URL="http://ip-api.com"

Check the Weather API website to see how to setup your own account.

Build Configurations in build.gradle

Change the configurations accordingly in the different settings in buildTypes For example,

buildTypes {
        debug {
            buildConfigField "String", "WEATHER_API_URL", WEATHER_API_URL
            buildConfigField "String", "WEATHER_API_KEY", WEATHER_API_KEY
            buildConfigField "String", "LOCATION_API_URL", LOCATION_API_URL
        }
    }

Permissions

The App requires the following permissions:

  • Internet access.

Libraries and Dependencies

Maintainers

This project is mantained by:

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -m 'Add some feature')
  4. Push your branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

This application is released under GNU GPLv3 (see LICENSE). Some of the used libraries are released under different licenses.