Cloud Sync (OneDrive) Configuration
You can customize how the Cloud Sync Configuration works by sending a json configuration script to the device. By default, Cloud Sync will only watch the default Photos and Videos folders in My Files
Cloud Sync uploads photos and videos from the headset to Microsoft OneDrive. You change what it uploads, and where to, from the Cloud Sync configuration tile on a device or a group in your Ari Business workspace.
Cloud Sync is not on the device out of the box. Install it from the marketplace, or push it to the device from Ari Business, before configuring it.
What happens without a configuration
Cloud Sync watches two folders: My Photos, and the Camera folder in My Media. New photos and videos go to a OneDrive folder named RealWear Cloud Sync, into subfolders named Photos and Videos.
It watches for new files only. Anything already on the device when a user signs in is not uploaded.
What you can change
A configuration sets which folders are watched, where their contents land in OneDrive, and how long Cloud Sync waits before uploading.
The configuration is a local array, with one entry per watched folder:
| Field | What it sets |
|---|---|
| friendlyName | A label for the entry, so a configuration with several folders stays readable. |
| path | The folder on the device to watch. |
| includeSubdirectories | Whether folders inside it are watched too. |
| extensions | Which file types to upload. Anything else in the folder is left alone. |
| destinationDocumentId | Where the files go in OneDrive. |
| delay | How long to wait, in seconds, before uploading a new file. |
Example
{
"local": [
{
"friendlyName": "photos",
"path": "/sdcard/DCIM/Camera/",
"includeSubdirectories": true,
"extensions": [ ".jpg", ".mp4" ],
"destinationDocumentId": "SPECIAL/photos/hello/world",
"delay": 10
}
]
}
Add a further entry to the local array for each additional folder you want watched.
If you change where the camera saves
Cloud Sync watches folders by path, so pointing My Camera at a different folder stops Cloud Sync seeing what it captures until you watch the new folder here as well. See Camera File Location Configuration.
Where the configuration is stored
The configuration is written to the device at sdcard/realwear/com.realwear.cloudsync/config.json. You do not need to place the file yourself when you configure from the workspace.