This is a weather API that uses Google Cloud Platform to make a wrapper around OpenWeatherMap to increase usability and data availability.
Tech Stack
To run a local version or to contribute in the development, follow these instructions (UNIX):
-
Install the google cloud sdk for python.
-
Create configuration files.
cp client_secret.json.example client_secret.json
- Change the values according to the project configuration (ask main developer).
-
Create a virtual environment.
virtualenv -p /usr/bin/python2.7 venv
source activate venv
-
Install requirements.
pip install --upgrade -t lib -r requirements.txt
-
Run the local server:
dev_appserver.py app.yaml
You can now test the app at locahost.
-
Deactivate any virtual environment.
source deactivate
-
Login to your google account.
gcloud auth login
-
[Optional] Set the project:
gcloud config set project {your-project}
-
[If needed] Update / upload query index.
gcloud datastore create-indexes index.yaml --project {your-project}
-
Upload changes:
gcloud app deploy --project {your-project}
The app will be running at your project url.
|-/app
| |-/mod_weather
| |-/model
| |-/service
| |-controller.py
|
|-/settings
|
|
|-/util
|
|-/test
|
|-/lib
|-/venv
- Rodrigo Hernández Mota rhdzmota initial work and main developer.
[ add content ]