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.
Clone this repository and import into Android Studio
git clone https://github.com/islem19/TV-Weather.git
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.
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
}
}
The App requires the following permissions:
- Internet access.
This project is mantained by:
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -m 'Add some feature')
- Push your branch (git push origin my-new-feature)
- Create a new Pull Request
This application is released under GNU GPLv3 (see LICENSE). Some of the used libraries are released under different licenses.