Skip to main content
GuidesBenchmark and diagnostics sharing

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.

CommandDoes
telemetry benchmarkRun every check on the attached camera
telemetry statusShow the sharing preference
telemetry opt-outStop sharing diagnostics
telemetry opt-inShare diagnostics
telemetry deleteTurn sharing off and delete what was shared
telemetry whoamiPrint your diagnostic ID
telemetry loginLink an email to your contributions
telemetry logoutRemove 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 benchmark
Benchmark 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:       uploaded

The photo can write a file to the camera's card. Nothing is formatted, deleted or reset. Pass --no-photo to skip it.

FlagDoes
--no-photoSkip the photo
--no-live-viewSkip the live-view frame
--camera VID:PIDUse this camera; DARKGRADE_CAMERA does the same
--jsonPrint 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 status
Sharing        on
Diagnostic ID  5652315f-4829-4742-b4b5-21fffd6be15f
Settings       /Users/you/.darkgrade

Stop sharing with: darkgrade telemetry opt-out

Piped 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"}
FieldMeans
installationIdYour diagnostic ID
sharingThe saved preference
effectiveSharingWhether anything is shared right now: false when the preference is off, a deletion is pending, or an environment variable stops it
configuredAlways true
deletionPendingA deletion was requested and has not finished
settingsThe settings folder
contactWith --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=1

status 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 delete

On 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. Run delete again 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 whoami

Studio and the CLI share one settings folder, ~/.darkgrade, so they share this ID and the sharing preference. Set DARKGRADE_HOME to use another folder.

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. 1
    npx darkgrade telemetry login you@example.com

    On a terminal, leave the address out and the command asks for it. login sends the request to the service, so it needs a network connection.

  2. 2

    Open the email

    Open the confirmation link within 2 hours. It works once.

  3. 3

    Check it

    npx darkgrade telemetry status --email

    --email reads 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.

Next

⌘I