The Darkgrade CLI's darkgrade telemetry commands do two jobs. benchmark tests what your camera supports and saves the result as a profile. The rest show and change whether Darkgrade shares camera diagnostics.
These docs call the feature diagnostics sharing; telemetry is the name of its command. Sharing starts on. Turn it off at any time with telemetry opt-out. What is collected, and why, is in the privacy policy.
| Command | Does |
|---|---|
telemetry benchmark | Run every check on the attached camera |
telemetry status | Show the sharing preference |
telemetry opt-out | Stop sharing diagnostics |
telemetry opt-in | Share diagnostics |
telemetry delete | Turn sharing off and delete what was shared |
telemetry whoami | Print your diagnostic ID |
telemetry login | Link an email to your contributions |
telemetry logout | Remove the linked email |
Benchmark your camera
benchmark finds the attached camera and reads its identity, its storage and every property it can. Then it takes one photo and reads one live-view frame.
npx darkgrade telemetry benchmarkBenchmark complete: Sony Corporation ILCE-7M5, firmware 1.00
Properties read: 0/0
Photo: ok
Live view: ok
Profile saved: /Users/you/.darkgrade/profiles/….json
Telemetry: uploadedThe photo can write a file to the camera's card. Nothing is formatted, deleted or reset. Pass --no-photo to skip it.
| Flag | Does |
|---|---|
--no-photo | Skip the photo |
--no-live-view | Skip the live-view frame |
--camera VID:PID | Use this camera; DARKGRADE_CAMERA does the same |
--json | Print the full result: every check, the profile, where it was saved and the upload's outcome |
Properties read counts the properties read one at a time. A Sony reports all of its properties in a single read, so its line says 0/0. When a check fails, the first line reads Benchmark partial and a Failed checks line names what failed.
The profile is saved under ~/.darkgrade/profiles/ whether sharing is on or off. The last line says whether it was uploaded: uploaded, not uploaded (sharing is off), queued; will retry or not uploaded.
benchmark exits 0 when every check it ran passed, and 1 otherwise or when no camera is found. With several cameras attached it uses the only one from a camera brand it knows. Failing that, it asks which one on a terminal; in a script it lists them for --camera and exits 1.
A passing benchmark shows that this camera answered each check today. A returned photo proves the transfer, not that the image decodes, and the benchmark does not try every setting.
See the sharing preference
status reads the saved preference without contacting the service.
npx darkgrade telemetry statusSharing on
Diagnostic ID 5652315f-4829-4742-b4b5-21fffd6be15f
Settings /Users/you/.darkgrade
Stop sharing with: darkgrade telemetry opt-outPiped or with --json, it prints one JSON document:
{"installationId":"5652315f-4829-4742-b4b5-21fffd6be15f","sharing":true,
"effectiveSharing":true,"configured":true,"deletionPending":false,
"settings":"/Users/you/.darkgrade"}| Field | Means |
|---|---|
installationId | Your diagnostic ID |
sharing | The saved preference |
effectiveSharing | Whether anything is shared right now: false when the preference is off, a deletion is pending, or an environment variable stops it |
configured | Always true |
deletionPending | A deletion was requested and has not finished |
settings | The settings folder |
contact | With --email only: the linked address, or null |
Turn sharing off or on
npx darkgrade telemetry opt-out # Sharing disabled.
npx darkgrade telemetry opt-in # Sharing enabled.opt-out stops future uploads. Diagnostics are still written to the settings folder on this computer. opt-in turns sharing back on; after a deletion it starts a new identity. opt-in is refused while a deletion is still pending.
Stop sharing from the environment
DARKGRADE_CONTRIBUTIONS=0 or DO_NOT_TRACK=1 stops sharing whatever the saved preference, for one command or a whole machine:
export DO_NOT_TRACK=1status then reports "effectiveSharing":false, and on a terminal on, but stopped by DO_NOT_TRACK or DARKGRADE_CONTRIBUTIONS.
Delete what was shared
delete turns sharing off first, then deletes what this installation shared.
npx darkgrade telemetry deleteOn a terminal it asks for confirmation; --yes (or -y) skips the question. In a script, or with --no-input, it does not ask and deletes straight away. It prints one of:
Sharing is off. Cloud data deleted.Done.Sharing is off. Deletion is pending.The deletion could not finish. Rundeleteagain to retry.Sharing is off. No cloud enrollment exists.Nothing had been shared.
Your diagnostic ID
whoami prints the random ID that this installation's diagnostics are shared under.
npx darkgrade telemetry whoamiStudio and the CLI share one settings folder, ~/.darkgrade, so they share this ID and the sharing preference. Set DARKGRADE_HOME to use another folder.
Link an email
Linking an email identifies your contributions as yours. It is optional. Sharing must be on when you ask; otherwise login fails with Turn on sharing to link an email.
- 1
Ask for the link
npx darkgrade telemetry login you@example.comOn a terminal, leave the address out and the command asks for it.
loginsends the request to the service, so it needs a network connection. - 2
Open the email
Open the confirmation link within 2 hours. It works once.
- 3
Check it
npx darkgrade telemetry status --email--emailreads the linked address from the service, which is a network request. The address shows as not verified until you open the link.
Logging in with a different address replaces the first once you confirm the new one; until then the first stays current. logout removes the linked email and leaves the sharing preference unchanged.