Screenshotter values and flags¶
<launcher> <screenshotUploadUrl> <apiKeySelector> <eventId> <signName> [x y width height interval] [flags]
Values are positional and come first; flags use the --name=value form and come after
the numeric values. The commands to run with these settings are on
Install and run Screenshotter.
Required values¶
| Value | Description |
|---|---|
screenshotUploadUrl |
The full Onlit screenshot upload URL, as given by your administrator |
apiKeySelector |
- when the key comes from --api-key-env (recommended), env:VARIABLE_NAME, or the key itself |
eventId |
The Onlit event ID |
signName |
The unique name of this sign on the dashboard, for example Main Hall |
Capture region and interval¶
Five optional numbers, in this order:
| Value | Description |
|---|---|
x, y |
Top-left corner of the capture area. Default 0 0 |
width, height |
Size of the capture area in pixels. Default 0 0, meaning the full primary screen; both must be zero or both greater than zero |
interval |
Seconds between capture attempts. Default 10, minimum 5 |
0 0 0 0 10 captures the full screen every 10 seconds; 0 0 1920 1080 10 the top-left
Full HD area. The numbers are positional and read in that order, so trailing ones may be
left out — 0 0 1920 1080 captures the Full HD area at the default 10 seconds — but to set
a later one you must give every number before it: an interval of 20 is written
0 0 0 0 20. Width and height go together, both zero or both positive. All of them must
precede every flag:
"Main Hall" 0 0 1920 1080 10 --heartbeat=60 ← valid
"Main Hall" 0 0 1920 1080 --heartbeat=60 ← valid, interval 10
"Main Hall" --heartbeat=60 0 0 1920 1080 10 ← rejected
On a Linux desktop with two outputs, --capture-output selects one screen instead of a
region (see Screenshotter on Raspberry Pi).
Flags¶
| Flag | Description |
|---|---|
--api-key-env=VAR |
Read the API key from environment variable VAR |
--heartbeat=N |
Send a liveness heartbeat every N seconds while the screen is unchanged. Default 60; 0 disables heartbeats and makes static-screen monitoring unreliable |
--max-pixels=N |
Downscale captures to at most N pixels, keeping the aspect ratio. Default 2073600 (the Full HD area) |
--max-upload-bytes=N |
Lower the image quality, then the dimensions, until the original is at most N bytes. Default 524288 (512 KiB) |
--thumbnail-height=N |
Dashboard thumbnail maximum height in pixels. Default 200; integer range 200–400; never upscales. Requires a matching agent build and server limit (see below) |
--connect-timeout-ms=N |
HTTP connection timeout. Default 5000 |
--read-timeout-ms=N |
HTTP read timeout. Default 10000 |
--upload-retries=N |
Retries after a failed upload. Default 3; recommended 4 |
--retry-base-delay-ms=N |
The first delay between retries; later retries wait longer. Default 1000 |
--capture=MODE |
Capture backend: auto, robot, grim or command. Default auto — grim on a Linux Wayland desktop, the built-in capture everywhere else |
--capture-output=NAME |
Capture one named display, for example HDMI-A-1. Linux Wayland only |
--capture-command=CMD |
Capture with an external program that writes an image to standard output; {x}, {y}, {width} and {height} are replaced |
--capture-timeout-ms=N |
Give up on a stalled external capture after N ms (default 15000), stop it and its children, and carry on with the next interval |
--webp-binary-dir=DIR |
Use the WebP encoder in DIR instead of the bundled one — only if the startup self-test fails |
The four capture flags matter only on Linux; on Windows and macOS the default is always right.
Thumbnail detail¶
Keep --thumbnail-height=200 for ordinary monitoring. Use --thumbnail-height=400 on
selected signs when the grid preview needs more detail. On a tall 1080 × 3840 sign,
the thumbnail is about 56 × 200 at the default and 112 × 400 at the maximum. For reading
small text, open the dashboard's full-size snapshot, which uses the separate original.
The setting is a requested maximum. The thumbnail comes from the exact image uploaded as the original, keeps its aspect ratio and is never upscaled. Its 256 KiB byte budget may reduce the result below the requested height, including below 200 px. WebP quality stays at 85. Doubling height roughly quadruples pixels; actual bytes and encoding time depend on the content (see Venue bandwidth planning).
Use an agent build that supports this flag and have your administrator check the
corresponding server limit before raising it above 200. Both supported production
packages already allow 400 px; a lower custom limit rejects
the upload with 422. See Run Screenshotter as a service.
Unchanged screens and heartbeats¶
Every capture is compared with the previous one. An unchanged screen is not uploaded again, which is what keeps a static sign cheap. Heartbeats keep the server informed even when the picture does not change.
--heartbeat=60 sets a 60-second heartbeat target while the screen is static. The first heartbeats after the content settles re-upload
the frame at rising quality, so the stored image converges on a sharp one; after that a
heartbeat carries only the sign's identity and content hash and costs a few hundred bytes.
Heartbeat is enabled at 60 seconds by default. The dashboard warns at 90 seconds without
successful contact and escalates at 180 seconds. Keep the capture interval at 30 seconds
or less, preferably the default 10 seconds. The agent checks whether a heartbeat is
due only on a capture tick; capture, upload and retry time extend the gap. Intervals of
45–59 seconds can exceed the 90-second warning deadline even on a healthy static sign.
A failed heartbeat waits for the next capture tick, so shorter intervals also give retries
more headroom. These settings cannot guarantee timely contact on a slow or failing device.
Before deploying the new warning thresholds, replace older launcher scripts or explicitly set their heartbeat to 60 seconds and restart the agents. Old launchers supplied a 90-second default even without a user override; older agents run directly without a heartbeat flag defaulted to off. See the upgrade steps. Do not lengthen or disable heartbeats on monitored signs to save bandwidth; converged heartbeats are small.
Baseline settings¶
For most event signs:
| Setting | Value |
|---|---|
interval |
10 (lowest accepted is 5) |
--heartbeat |
60 |
--max-pixels |
2073600 — raise for LED walls, see Run Screenshotter as a service |
--max-upload-bytes |
524288 |
--thumbnail-height |
200 |
--connect-timeout-ms / --read-timeout-ms |
5000 / 10000 |
--upload-retries / --retry-base-delay-ms |
4 / 1000 |
If bandwidth is constrained, change the interval first: 10 → 20 seconds halves the traffic, 10 → 30 cuts two thirds. Then the byte budget. Lowering either costs freshness or fidelity — the trade-offs are quantified on Venue bandwidth planning.