OSC API
The OSC and WebSocket APIs allow for low latency communication to Ontime server.
Change event
The change endpoint allows changing some of the properties of a given event (below).
The request should contain a patch of the event to be changed, along with the ID of the event to change.
You can change any field in an event using this endpoint. See below a description of expected values.
Property | Value type |
---|---|
title | string |
note | string |
cue | string (value should be kept under 8 characters) |
isPublic | boolean |
skip | boolean |
colour | string (# hex colour or named css colour) |
custom | target the specific custom field with custom:<fieldname> |
timeWarning | number (in seconds) |
timeDanger | number (in seconds) |
endAction | string (none / load-next / play-next / stop) |
timerType | string (count-down / count-up / time-to-end / clock / none) |
duration | number (in seconds) |
timeStart | number (in seconds) |
timeEnd | number (in seconds) |
Example: change title of event
OSC Message
Example: change a custom field
The custom field must exist in the project to be accepted by the API.
See more on custom fields
OSC Message
Message
The following endpoints allow controlling the messages Ontime sends to the timer view.
The payload response is the current state of the message data.
Example: change the external message text
OSC Message
Example: secondary source in the timer view
OSC Message
OSC Message
OSC Message
Example: blackout timer screens
You can remotely blackout every screen that is in the timer view.
OSC Message
OSC Message
Playback
The following endpoints allow controlling the Ontime’s playback.
Start event
Start loaded event
OSC Message
Start event at index
OSC Message
Start event with ID
OSC Message
Start event with cue
OSC Message
Start next event
OSC Message
Start previous event
OSC Message
Pause running timer
OSC Message
Load event
Load event at index
OSC Message
Load event with ID
OSC Message
Load event with cue
OSC Message
Load next event
OSC Message
Load previous event
OSC Message
Reload current event
OSC Message
Stop playback
OSC Message
Activate Roll mode
OSC Message
User added time
Add time
OSC Message
Remove time
OSC Message
Auxiliary timer
Ontime provides an auxiliary timer which does not affect the current playback.
This can be controlled using the API as shown below
Set auxiliary timer duration
OSC Message
Set auxiliary timer direction
Auxiliary timer can count up or count down.
Set auxiliary timer to count up
OSC Message
Set auxiliary timer to count down
OSC Message
Start auxiliary timer
OSC Message
Pause auxiliary timer
OSC Message
Stop auxiliary timer
OSC Message