Configuring CrewAgent
CrewAgent's settings are in C:\ProgramData\CrewAgent\config.yaml. Edit it in Notepad as an administrator, save it, then restart the CrewAgent Service in Windows Services (or restart the computer). Changes only apply after a restart.
The file is in YAML: indentation matters, so keep each setting lined up under its section. Windows paths need doubled backslashes inside quotes, such as "D:\\Sonar".
CrewSpec can also adjust some settings centrally, such as the most data a stream may send. Those changes reach the agent within an hour, without a restart.
Connection
| Setting | Means |
|---|---|
service_token | The API token secret, starting cs_. Set during installation. |
api_base_url, app_base_url | Where CrewSpec is. Leave these as they are. |
update_check_interval_sec | How often to check for updates, in seconds. Default 3600 (one hour). |
config_refresh_interval_sec | How often to fetch central settings from CrewSpec, in seconds. Default 3600. |
Data streaming
Settings under data_streaming:.
| Setting | Means | Default |
|---|---|---|
watch_directories | Folders to watch for data files, including their subfolders. Point this at the folder your sonar software records to. | C:\DataStreams |
file_extensions | Which file types to send. | All supported types |
group_name or group_id | Show this agent's streams only to one group. The name must match exactly; if CrewSpec can't find the group, streams won't start. Leave both out to show streams to everyone who can view streams. | None |
staleness_sec | How long a file can go without growing before its stream is treated as finished, in seconds. | 30 |
max_live_stream_age_sec | Files last changed longer ago than this, in seconds, are treated as finished recordings, not live ones. | 1800 (30 minutes) |
max_concurrent_streams | How many files to stream at once. Each live stream uses an APU. | 1 |
upload_existing_files | Upload finished recordings found in the folders once, as files, instead of ignoring them. The token needs attachment/create. | false |
historical_upload_delay_sec | Wait between those uploads, in seconds. | 10 |
max_upload_retries | How many times to retry a failed upload before giving up on that file. | 3 |
max_stream_size_bytes | The largest a stream can be. CrewSpec may set a lower limit. | 1073741824 (1 GiB) |
max_chunk_bytes, stream_interval_ms | How much to send at a time, and how often, in milliseconds. Leave these unless support asks you to change them. | 2097152, 250 |
For example, to watch two folders and show streams only to the Operations group:
yaml
data_streaming:
watch_directories:
- "D:\\Sonar\\Live"
- "D:\\Video"
group_name: "Operations"Screen recording
Settings under screen_recording:.
| Setting | Means | Default |
|---|---|---|
enabled | Allow screen recording from the tray icon. | true |
output_directory | Where recordings are saved. | C:\Windows\Temp\CrewAgent\recordings |
framerate | Frames per second. Higher is smoother but sends more data. | 15 |
max_width, max_height | Shrink large screens to at most this size, keeping their shape. 0 means full size (up to 4096 × 2304). | 0 |
bitrate | Video quality in bits per second. 0 picks a rate that keeps text sharp. | 0 |
show_tray_icon | Show the tray icon. | true |
show_indicator | Show an indicator while recording. | true |
always_show_recording_control | Show a red record button on every monitor. | On after a normal installation |
record_indicator_position | Where the record button sits: top_left, top_center, top_right, middle_left, middle_center, middle_right, bottom_left, bottom_center or bottom_right. | top_center |
stream_size_buffer_bytes | How close to the size limit a recording can get before it's stopped. | 20971520 (20 MiB) |