A sample Android Weather App using two APIs :
- Dark Sky's weather API for weather information of a place
- Google's Places API to search places on user input and link it to the latitude and longitude
Fire up a terminal and type the following command :
git clone https://github.com/pramodbhadana/rainornot.git
or
Open Android Studio
Go to File --> New --> Project from Version Control --> Github
Enter https://github.com/pramodbhadana/rainornot.git into the Git Repository URL field, follow other instructions and you are good to go.
To use the Dark Sky as well as the Google API, API keys are required. Head over to following links to generate one for you.
Note:
- Dark Sky --> https://darksky.net/dev
- Google's Geo API --> https://developers.google.com/places/android-api/signup
The keys generated needs to be placed in specific file so that the project can access those.
/app/src/main/assets/privateKeys.txt
This file holds the keys. Add your keys to the above file.
dark_sky_key = add_your_darksky_key_here
google_geo_api_key = add_your_googlegeo_api_key_here
Note: The name google_geo could be misleading here. Actually it is Google Places API key.
------------git
This project is licensed under Apache Licence 2.0. Feel free to use it.
I used this beautiful weather icon set by Kevin Aguilar for this project. Thanks to him for that.