Setting The AerisWeather API Credentials

When you check out the demo files, you might notice that in both the aeris_demo.py file and the aeris_demo_notebook Jupyter notebook file, the import section has a reference to a "keys" module.

from keys import client_id, client_secret, app_id

This import statement references "client_id" and "client_secret". These are the weather API credentials mentioned previously in the Requirements section of the Getting Started page.

The final reference in the import statement is the application id, which should be the namespace or domain of the application from which you will be accessing the weather API. For details on application id and namespace restrictions, see Namespace Access Restrictions in the weather API docs.

If you don't have an active AerisWeather API account, you can get a free one at the sign up page.

In the keys.py file(s), replace the placeholders with your AerisWeather weather API client id and secret, and the appropriate namespace or domain for your Python application.

app_id = "com.aerisweather.pythonsdkdemo"
client_id = ""
client_secret = ""