Config file setup - UTD-CRSS/exploreapollo-import-audio GitHub Wiki

The configuration file allows the script to find the API server and provides the credentials used by the scripts to access the various services used by exploreapollo. A sample configuration file is found under src/config-sample.py. Copy the file to src/config.py and fill out the appropriate fields. Note that all values should be entered as Python strings (in quotations).

S3 Fields

To fill out the S3 credentials - AWS_ACCESS_KEY, AWS_SECRET_KEY - you will need to obtain an Amazon AWS API key with access to exploreapollo’s S3 instances. S3_BUCKET must contain the name of the bucket used to store data (probably exploreapollo-data).

exploreapollo API Server Fields

The API server’s fields are necessary for accessing exploreapollo’s database. API_SERVER needs to contain the base URL of the API server. For example, the staging API server is found at https://exploreapollo-api-staging.herokuapp.com. The API_SERVER_TOKEN must be obtained from the site administrator.

Flickr Fields

FLICKR_ACCESS_KEY is only necessary when transferring over photos from Flickr. This field must contain a Flickr API key, which can be obtained at https://www.flickr.com/services/api/keys/. You will need to create a Flickr account to create an API key. Note that the value needed for the config file is the API key, and not the secret key.