Configuring a Camera Trap in EarthRanger
To set up a camera trap in EarthRanger, follow these four steps:
- Create a DAS Configuration Application
- Create a User
- Create a Long-Lived Token
- Create a Camera Trap Event Type
1. Creating a DAS Configuration Application
- Log in to your EarthRanger administration page at http://<yourorganization>.pamdas.org/admin.
- Navigate to Home > DAS Configuration > Applications and select Add Application.
-
Configure the following settings on the Add application page:
- Redirect URIs: Leave blank.
- Post logout redirect uris: Leave blank
- Client Type: Set to Confidential.
- Authorization grant type: Set to Client Credentials.
- Name: Enter a descriptive name for the device group (e.g., Panthera).
- Skip Authorization: Check this box.
- User: Leave blank.
- Select Save
2. Creating a User
- Go to Home > User Accounts > Users and select Add User.
-
Configure the following fields on the Add user page, filling out the form from top to bottom:
- First Name: Enter the camera brand name (e.g., Panthera).
- Last Name: Enter Cameras.
- Username: Choose a descriptive username (e.g., pantheracams) and save it for reference in Step 3.
- Permissions: Set to None.
- Active: Check this box.
- Select Save.
3. Creating a Long-Lived Token (Updated)
- Go to Home > DAS Configuration > DAS Access Tokens.
- Prepare a unique alphanumeric string, up to 40 characters, to use as a token (e.g., A1B2C3D4E5F6G7h8i9j0k1l2m3n4o5). Save this token for configuring the DAS.
- Select Add Access Token.
- Enter the unique token from Step 2in the Token field.
- In Expires, choose a date far in the future to prevent the token from expiring (e.g., 2099-01-01).
- Set the Scope to read and write.
- Select the username, and its UUID will appear in the User field.
- Click the magnifying glass icon next to User and search for the username created in Step 2 (e.g., pantheracams).
- Under Application, select the application created in Step 1.
- Select Save.
Note: The Radio Agent configuration is not required for setting up a camera trap. If needed, please refer to the Radio Agent documentation for additional setup instructions.
4. Creating a Camera Trap Event Type
- Navigate to Home > Activity > Event Types and select Add Event Type.
-
Configure the following fields on the Add event type page:
- Display: Enter the display name for the event (e.g., Camera Trap).
- Value: Enter cameratrap_rep (ensure the value is entered exactly as shown).
- Category: Select an appropriate category from the dropdown.
- Schema: Paste the JSON schema provided below, replacing placeholder titles with actual values as needed.
- Select Save.
Schema:
{
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Camera Trap Event Schema",
"type": "object",
"properties": {
"cameratraprep_camera-name": {
"type": "string",
"title": "Camera Name"
},
"cameratraprep_camera-make": {
"type": "string",
"title": "Camera Make"
},
"cameratraprep_camera-version": {
"type": "string",
"title": "Camera Version"
}
}
},
"definition": [
{
"key": "cameratraprep_camera-name",
"htmlClass": "col-lg-6"
},
{
"key": "cameratraprep_camera-make",
"htmlClass": "col-lg-6"
},
{
"key": "cameratraprep_camera-version",
"htmlClass": "col-lg-6"
}
]
}
For WPS cameras, once you've completed the configuration, you’ll need to send the authentication token to the WPS team for them to complete the connection.
Additionally, please note that these configuration steps apply to certain types of camera traps. If your camera model requires a different setup, contact support for further guidance.