Install and run Screenshotter¶
Run Screenshotter on the computer connected to the sign to see its screen on the live sign dashboard. The Windows, macOS and Linux downloads include Java. For Raspberry Pi OS 64-bit, follow the Raspberry Pi instructions.
Download and prerequisites¶
Use these downloads unless your Onlit administrator gives you a different version:
| Operating system | Recommended download |
|---|---|
| Windows | PreseriaScreenshotter 1.0.1 portable ZIP |
| macOS on Apple Silicon | PreseriaScreenshotter 1.0.1 DMG |
| Linux on Intel or AMD (x86_64) | PreseriaScreenshotter 1.0.1 Linux x86_64 tarball |
| Raspberry Pi OS 64-bit | PreseriaScreenshotter 1.0.1 Linux arm64 tarball — see Screenshotter on Raspberry Pi |
The macOS application is for Apple Silicon Macs (M1 or newer). Contact your Onlit administrator if you need to run Screenshotter on an Intel Mac. Two alternative macOS downloads exist: a PKG installer for IT administrators deploying through device management, and an application ZIP when the application must be copied without a DMG. Most people should choose the DMG.
Ask your Onlit administrator for:
- the screenshot upload URL,
- the Screenshotter API key,
- the Onlit event ID,
- the sign name.
The sign name identifies the computer on the live sign dashboard. Use a unique,
descriptive name for each sign, such as Main Hall or Lobby A. It is only a label for
this agent within the event: it is not matched against a room, and it does not choose
what the computer shows — the agent uploads whatever desktop it is running on. A sign named
Main Hall whose computer has the Lobby sign open will faithfully show the Lobby on the
dashboard under the wrong name, so name the agent after the computer's actual screen and
check the first upload against the room it should be.
Install¶
Windows¶
- Download the Windows portable ZIP.
- Extract it to a permanent location, for example
C:\Preseria\PreseriaScreenshotter. - Keep the entire extracted folder together: the executable depends on the
appandruntimefolders beside it. - Open PowerShell and change to the folder containing
PreseriaScreenshotter.exe:
macOS¶
- Download the macOS DMG and open it.
- Drag
PreseriaScreenshotter.appto the Applications folder. - Open Terminal.
The command-line launcher is:
Although Screenshotter appears as an application in Finder, run it from Terminal so you can supply the sign settings and see its status messages.
Linux on Intel or AMD¶
Run uname -m on the sign computer. If it prints x86_64, download the
Linux x86_64 tarball.
From the directory containing the download, extract the whole folder so the
launcher can find its bundled runtime.
sudo mkdir -p /opt/preseria
sudo tar -xzf PreseriaScreenshotter-1.0.1-linux-x86_64.tar.gz -C /opt/preseria
Open a terminal in the desktop session that drives the sign. X11 uses the built-in
screen capture. On a Wayland desktop that supports grim, such as Sway, install
grim using your package manager (sudo apt install grim on Debian). For other
Wayland desktops, see Linux capture options.
Run Screenshotter¶
The command has four required values, then optional capture values and flags:
<launcher> <screenshotUploadUrl> <apiKeySelector> <eventId> <signName> [x y width height interval] [flags]
Use an environment variable to keep the API key out of Screenshotter's command-line arguments.
These commands capture the full screen every 10 seconds and use a 60-second heartbeat while the screen is unchanged. Heartbeats are checked on capture ticks, so capture and request time can extend the gap. Replace the upload URL, event ID, sign name and API key with the values your administrator provided. The startup banner reports the capture backend and the budgets in use; the sign then appears on the live sign dashboard after its first upload.
The API key¶
- as the second value together with --api-key-env=SCREENSHOTTER_API_KEY reads the key
from that environment variable; the shorter env:SCREENSHOTTER_API_KEY as the second value
does the same. Never put the key itself after --api-key-env — the flag expects a variable
name — and avoid passing the key as a plain argument. A variable set with $env: in
PowerShell or export in Terminal lasts for that shell session only; set it again in a new
shell, or let a service hold it.
Choose the dashboard thumbnail height¶
Screenshotter 1.0.1 lets you choose the maximum height of this sign's dashboard
preview. The default is 200 px. For a larger preview, use
--thumbnail-height=400 in the run command and restart Screenshotter. Check for
Thumbnail height: 400px in the startup message. You can use any whole number
from 200 to 400.
Width follows the image's aspect ratio. For example, a 960 × 600 screenshot can produce a 640 × 400 preview. Screenshotter never enlarges a small original and may shrink the preview to fit its byte limit. Open the preview to see the full-size snapshot. With Screenshotter 1.0.0, omit the flag to use its 200 px default. See thumbnail limits and bandwidth.
Recommended production command¶
Full-screen capture every 10 seconds, a 60-second heartbeat, the Full HD pixel budget, the 512 KiB byte budget and four upload retries suit most event signs:
$env:SCREENSHOTTER_API_KEY = "YOUR_API_KEY"
.\PreseriaScreenshotter.exe `
"https://example.preseria.com/api/signage/screenshot" `
- `
"123" `
"Main Hall" `
0 0 0 0 10 `
--api-key-env=SCREENSHOTTER_API_KEY `
--heartbeat=60 `
--max-pixels=2073600 `
--max-upload-bytes=524288 `
--thumbnail-height=200 `
--connect-timeout-ms=5000 `
--read-timeout-ms=10000 `
--upload-retries=4 `
--retry-base-delay-ms=1000
The macOS and Linux commands use their respective launcher paths above and \ line
continuations. What each value does, and when to change it, is on
Screenshotter values and flags.
Stop Screenshotter¶
Press Ctrl+C in the PowerShell or Terminal window where it is running. For a sign that must survive reboots and logins without anyone typing commands, set it up as a service: Run Screenshotter as a service.