Loading...
Stagetimer API
This module lets you remotely control Stagetimer using Companion.
It connects using the Stagetimer HTTP RPC API and Stagetimer Socket.io endpoint.
For a comprehensive guide with video tutorials, see the full documentation: Controlling Stagetimer via Companion for Stream Deck
To use this module you need:
There are multiple presets available for the most common actions, ready to drop into your button layout.
The presets are organized into categories:
Find a complete reference with button images in the Stagetimer docs: Controlling Stagetimer via Companion for Stream Deck
On Companion 5.0 or newer, you can also import a ready-made page with all Stagetimer buttons: Download Page Template
The following Actions are available:
Message actions:
Timer actions:
The Timer: * and Message: * actions target either an index (position in the list, starting at 1) or an ID. Use one or the other — if both fields are filled, the ID wins. Both fields accept variables, so setting Timer ID to $(stagetimer:currentTimerId) and clearing Timer index targets the currently selected timer.
Transport actions:
Viewer actions:
Utility actions:
Variables let you display live data from Stagetimer on your Stream Deck buttons.
Room
$(stagetimer:roomId) - Room ID$(stagetimer:roomName) - Room name$(stagetimer:roomTimezone) - Room timezone (Docs)$(stagetimer:timeOfDay) - Time of day in the room timezone and time of day format$(stagetimer:connected) - true while the module is connected to Stagetimer, else false. The module tries again until the connection is back.Playback Snapshot
The time display is equal to the Stagetimer output, taking timer appearance into account (Docs). It also uses the room's overtime prefix and overtime behavior: with "stop" it stays at zero, with "hide" it is empty. The hours, minutes and seconds variables always have two digits. In overtime, the hours variable has the sign. The current time remaining is always strictly a countdown and runs into overtime. It uses the overtime prefix too.
$(stagetimer:timeDisplay) - Time Display$(stagetimer:timeDisplayHours) - Time Display (hours)$(stagetimer:timeDisplayMinutes) - Time Display (minutes)$(stagetimer:timeDisplaySeconds) - Time Display (seconds)$(stagetimer:currentTimerRemaining) - Timer remaining time$(stagetimer:currentTimerRemainingAsMs) - Timer remaining time (ms)$(stagetimer:currentTimerRemainingHours) - Timer remaining time (hours)$(stagetimer:currentTimerRemainingMinutes) - Timer remaining time (minutes)$(stagetimer:currentTimerRemainingSeconds) - Timer remaining time (seconds)$(stagetimer:running) - true while the timer runs, else false$(stagetimer:lastStartedAt) - Time of the last fresh timer start (Unix time in ms)A fresh start changes lastStartedAt. A resume after a pause does not change it. To run a button action at the moment a timer starts, make a Companion trigger with the event "On variable change" for $(stagetimer:lastStartedAt). When the trigger runs, the current timer variables already show the timer that started, for example $(stagetimer:currentTimerField.vt). The module ignores a start that is older than 2 seconds when it gets it, for example after a reconnect. This prevents a late cue.
Current Timer
The timer currently selected in the room. These variables are empty while no timer is selected.
$(stagetimer:currentTimerId) - Timer ID$(stagetimer:currentTimerName) - Timer name$(stagetimer:currentTimerIndex) - Timer number as the controller shows it, for example 2.1 in a group$(stagetimer:currentTimerGroup) - Title of the group that holds the timer. Empty outside a group$(stagetimer:currentTimerGroupId) - ID of that group. A trigger on this variable runs when the show enters another group$(stagetimer:currentTimerGroupColor) - Color of that group as hex, for example #7c3aed$(stagetimer:currentTimerSpeaker) - Timer speaker$(stagetimer:currentTimerNotes) - Timer notes$(stagetimer:currentTimerAppearance) – Timer appearance (Docs)$(stagetimer:currentTimerStartTime) - Hard start time (room time of day format, Docs)$(stagetimer:currentTimerStartTime12h) - Hard start time (12h format, Docs)$(stagetimer:currentTimerStartTime24h)- Hard start time (24h format, Docs)$(stagetimer:currentTimerDuration) - Timer duration$(stagetimer:currentTimerDurationAsMs) - Timer duration (ms)$(stagetimer:currentTimerLabels) - Timer labels (comma-separated)$(stagetimer:currentTimerLabel1) - Timer label 1$(stagetimer:currentTimerLabel2) - Timer label 2$(stagetimer:currentTimerLabel3) - Timer label 3Next Timer
The timer that follows the current one. These variables are empty when the last timer is selected, so $(stagetimer:nextTimerId) can be used to detect the end of the rundown.
$(stagetimer:nextTimerId) - Timer ID$(stagetimer:nextTimerName) - Timer name$(stagetimer:nextTimerIndex) - Timer number as the controller shows it, for example 2.1 in a group$(stagetimer:nextTimerGroup) - Title of the group that holds the timer. Empty outside a group$(stagetimer:nextTimerGroupId) - ID of that group. A trigger on this variable runs when the show enters another group$(stagetimer:nextTimerGroupColor) - Color of that group as hex, for example #7c3aed$(stagetimer:nextTimerSpeaker) - Timer speaker$(stagetimer:nextTimerNotes) - Timer notes$(stagetimer:nextTimerAppearance) – Timer appearance (Docs)$(stagetimer:nextTimerStartTime) - Hard start time (room time of day format, Docs)$(stagetimer:nextTimerStartTime12h) - Hard start time (12h format, Docs)$(stagetimer:nextTimerStartTime24h)- Hard start time (24h format, Docs)$(stagetimer:nextTimerDuration) - Timer duration$(stagetimer:nextTimerDurationAsMs) - Timer duration (ms)$(stagetimer:nextTimerLabels) - Timer labels (comma-separated)$(stagetimer:nextTimerLabel1) - Timer label 1$(stagetimer:nextTimerLabel2) - Timer label 2$(stagetimer:nextTimerLabel3) - Timer label 3Timer Fields
A timer can hold custom fields, for example VT image or vlc. Each key gets one variable for the current timer and one for the next timer. The key is written in lowercase, and each run of other characters becomes _, so VT image becomes vt_image. Two keys with the same result share one variable.
$(stagetimer:currentTimerField.vt_image) - Field VT image of the current timer$(stagetimer:nextTimerField.vt_image) - Field VT image of the next timer$(stagetimer:currentTimerFields) - All fields of the current timer as a JSON string$(stagetimer:nextTimerFields) - All fields of the next timer as a JSON stringA variable appears when the module first sees the key, and it stays until the module restarts. It is empty when a timer does not have that key. A nested value is a JSON string. To read one part of it, use the jsonpath function (Companion 3.3 or later), for example jsonpath($(stagetimer:currentTimerField.slides), '$[0].name'). For a key that does not give a usable variable name, use the JSON of all fields, for example jsonpath($(stagetimer:currentTimerFields), '$["Größe"]').
Current Message
The message currently showing on the viewer. These variables are empty while no message is showing.
$(stagetimer:currentMessageId) - Message ID$(stagetimer:currentMessageText) - Message text$(stagetimer:currentMessageColor) - Message colorThis module also works with the Stagetimer desktop app for offline use.
http://127.0.0.1:3000).Use the Room: Switch room action to change the active room on-the-fly with a single connection. This requires a team API key (generated from the dashboard), which has access to all rooms in your team.
The Room ID field supports variables, so you can wire it to other inputs or triggers.
The current room is available via $(stagetimer:roomId).
Alternatively, you can control multiple rooms simultaneously by adding multiple connections:
stagetimer-1).stagetimer-2) and the second room's credentials.Reference variables by connection label:
$(stagetimer-1:currentTimerName)$(stagetimer-2:currentTimerName)Connection fails:
Variables not updating:
Need more help? Visit the Stagetimer documentation or contact support at support@stagetimer.io