/rainornot

Weather app using Dark Sky and Google's Places API

Primary LanguageJavaApache License 2.0Apache-2.0

RainOrNot

A sample Android Weather App using two APIs :

  1. Dark Sky's weather API for weather information of a place
  2. Google's Places API to search places on user input and link it to the latitude and longitude

Clone app source

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.

Setting up the API keys

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:

Configuring project to use API keys

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

Licence

This project is licensed under Apache Licence 2.0. Feel free to use it.


Credits

I used this beautiful weather icon set by Kevin Aguilar for this project. Thanks to him for that.