How to Automate TV Displays, Kiosks, and Leaderboards

Run an altengine Automation agent on the computer driving a TV, kiosk, or leaderboard. A scheduled script can check whether the player is working, collect evidence when it stalls, and try a recovery that you define. For a new fleet, the same agent can serve as the main installer for your display app by running your setup script when each computer enrolls.

Check the player and the data it displays

Picture a tournament venue with a leaderboard on two TVs. One is updating and the other still shows the scores from the previous round. The scoring service can be healthy while one browser is stuck. Even a running player process tells you little about the freshness of the page it is displaying.

Start with a signal your app can report locally. For a leaderboard, that might be the timestamp of the most recent successful refresh, separate from the time the score last changed. A quiet match can leave the scores unchanged for a long time. For a reception display, report the active playlist revision and when it was loaded. These checks give you something specific to compare with what the player should be showing.

Install the agent on the computer connected to the TV. The agent connects outbound and runs JavaScript on that machine, so your script can query a local status endpoint even when it is accessible only at the venue. When you need to inspect the actual player window, use a desktop script in the signed-in session. Check that the expected window is present or capture a screenshot. A desktop screenshot shows what the computer rendered. A TV with the wrong input selected still calls for an on-site check.

Recover a stalled display and save evidence

Decide what the script should do for each failure. If the display app reports a stale feed but the source is unreachable, let the player keep showing its last usable data if it supports that behavior. Log the connection failure so the operator knows where to look. If the source is reachable and the player is stuck, have the script invoke the refresh or restart that your player supports. Check for a fresh timestamp afterward so the run shows whether recovery worked.

Keep recovery bounded. Try once during a check and record the outcome. For a leaderboard in the middle of a match, you might start in observation mode and run the recovery script on demand. For a lobby display, you might allow recovery during opening hours and use a scheduled check before people arrive.

Include the player version, the last successful refresh and the action taken in the run log. If a visual failure is hard to diagnose, have the desktop script attach a screenshot as a run artifact. An operator can use the run details to investigate after the terminal has gone offline. On a public kiosk, decide what evidence you can retain before collecting screenshots that could contain a visitor’s information.

Give each TV its own check

A schedule in Automation can name a machine or select machines by label. A labelled schedule produces one run across the eligible machines. That is useful when any computer at a venue can check the same shared feed. When each computer drives a different screen, schedule the check against each named machine so every screen gets inspected. The same deployed script can take parameters for the expected display, playlist, or feed at each location.

The machine fires its schedule locally. A check that only reads the player’s local status can still run during an internet outage, and the run record arrives when the connection returns. Give the display app its own startup and offline behavior as well. For example, it can launch when the terminal signs in and load its last saved playlist while waiting for the network. The scheduled check then has a concrete condition to verify after startup.

Use the agent as your display app installer

If you already provision terminals with a disk image or your own installer, add the agent for diagnostics and recovery. If you are setting up new terminals, you can install and enroll the agent first, then let an install hook set up the display app. The agent runs the hook and your script performs the work. On Windows, use the maintenance lane for machine-wide installation, with that lane allowed on both the fleet and the machine.

Publish an active version of the setup script and assign it to the fleet’s install hook before enrolling a test terminal. Have the script check what is already installed, invoke your approved installer when needed, and verify that the player and its configuration are present. You can use sys.exec to call an existing installer and inspect its exit code. Keep the setup repeatable so the same script can repair a partial installation through a later run.

An install hook runs once per enrollment and its failure leaves the agent installed. Confirm the hook succeeded in Runs, then verify the player separately in the user session. The update hook fires when the agent updates. For an app rollout on its own timetable, deploy the app update as a separate script, try it on one named terminal, and expand the rollout after seeing the new player come up. A pre-uninstall hook can remove files or software your setup added. Test that cleanup on a spare machine before using it on the fleet.

Try it on one terminal

Enroll a spare computer and check a healthy player first. Freeze the feed or close the player and verify that the next check reports the right failure. Then run the recovery and confirm the display catches up. That gives you a script you can reuse across locations and a run record an operator can read when something breaks.

The Automation reference covers enrollment, schedules and lifecycle hooks. The script API reference covers local HTTP checks, running programs and collecting artifacts. Automation meters connected agent time, runs started and execution time. The first $3 of usage each month is free, and there is no card required to start.

Start free in the console

← Back to the blog