Ontime v2
Link to new docs
  • ontime
  • Feature list
  • Roadmap
  • Contributing
  • Main Concepts
    • Interface
      • Settings Bar
      • Rundown
      • Timer Control
      • Display Messages
      • Info
      • Quick start
      • Upload
      • Integration Settings
      • Application Settings
        • App Settings
        • Event Data
        • Editor Settings
        • Cuesheet settings
        • Views
        • URL Aliases
      • About modal
  • Views
    • Network views (Intro)
    • Stage Timer
    • Clock
    • Minimal Timer
    • Backstage Info
    • Public Info
    • Lower Thirds
    • Studio Clock
    • Countdown
    • Cuesheet
  • Control and feedback
    • Ontime APIs
      • HTTP API
    • Integrations
    • Runtime Data
  • Features
    • Google Sheet
    • Smart Time Entry
    • The delay workflow
    • Roll
    • Import events from Excel
    • URL Aliases
    • Edit Anywhere
    • Headless Mode (Docker)
    • Note: Lower thirds in OBS
    • User fields
    • Custom Styling
    • Make your own viewer
    • Count to anything
    • External data
  • ❤️Additional Notes
    • Control Ontime from vMix
    • Sync: Poll ontime status
    • Use in Raspberry Pi
    • Companion module
Powered by GitBook
On this page
  • The ontime lifecycle
  • Using variables in integrations
  • Human readable data
  1. Control and feedback

Integrations

PreviousHTTP APINextRuntime Data

Last updated 1 year ago

Integrations is a feature to allow Ontime to share its data with other parts of your workflow. Meant for generic software and hardware integrations. This can be set up in the

The ontime lifecycle

During the running of your event, Ontime server will go through a few lifecycle events.

The integration feature allows you to leverage these events to send data

  • On Load - Triggered when an event is loaded

  • On Start - Triggered when an event starts

  • On Pause - Triggered when an event is paused

  • On Stop - Triggered when playback is stopped

  • On Every Second - Triggered once a second (great for sending your timer data out)

  • On Finish - Triggered when a timer passes the 0 mark and becomes in overtime

Example:

If you add a message to the On Load lifecycle: eg: /ontime/loaded-event , you would see this message in the OSC Port you have configured in OSC Settings every time an event is loaded

Using variables in integrations

You can embed data from the application runtime in the message using templates /your-message/{{ontime-data}} {{ontime-more-data}}

When the lifecycle event is triggered, your message is parsed, and Ontime places the updated piece of data in place of the template

Extending the example above, you could compose a message that sends the id of the loaded event with

/send-this/load-{{loaded.selectedEventIndex}}

{{titlesPublic.noteNext}}

{{playback}}

{{timer.current}}

Human readable data

The above data defined in runtime data will give you the data from Ontime as it is consumed in-app. For example, all times are in milliseconds.

This is great for software - to - software communications, but it might not be ideal if you want to consume the data yourself.

For this use cases, we have defined a small list of human-readable timer values that you can use in your integration messages. The usage would look like

*Timer values will return "null" if no event is loaded

Variable
Usage
Result

human.clock

{{human.clock}}

Current clock in (hh:mm:ss)

human.duration

{{human.duration}}

Duration of current timer in (hh:mm:ss)*

human.expectedEnd

{{human.expectedEnd}}

Time at which the current event is expected to finish in (hh:mm:ss)*

human.runningTimer

{{human.runningTimer}}

Current running timer in (hh:mm:ss)*

human.elapsedTime

{{human.elapsedTime}}

Elapsed time of current timer in (hh:mm:ss)*

human.startedAt

{{human.startedAt}}

Time when the current time started (hh:mm:ss)*

This means that any of the data described in the is available to be sent as part of the message payload

Inside the template (double brackets), you can add any of the keys described in . Use the . when referencing a subkey

runtime data
runtime data
Integration Settings modal
OSC Settings
OSC Integration Settings