When a websocket connection to the server on port 8641 is opened the server sends messages about the current status of the system right away, namely:
volume
:connection
- Indicate if the audio processor is available.volume_changed
- Current volume level. Only sent if the Dolby connection is available.mute_status_changed
- Current mute status. Only sent if the Dolby connection is available.input_mode_changed
- Current active input mode. Only sent if the Dolby connection is available.decode_mode_changed
- Current active decode mode for Digital 1 input. Only sent if the Dolby connection is available.
lights
:connection
- Indicate if the Jnior connection for light regulation is available.playback
:connection
- Indicate if the Christie IMB connection for playback control is available.projector
:connection
- Indicate if the serial connection to the Christie PIB for projector control is available.power_changed
- Current power state of the projector.lamp_changed
- Current state of the lamp.douser_changed
- Current open state of the douser.channel_changed
- Current active channel/image source.ingest_state_changed
- Current state of content ingestion into the IMB.
Every message is encoded as a JSON object containing at least a msg_type
and an action
string attribute.
{"msg_type":"<type>","action":"<action>"}
msg_type
specifies the command category.
Depending on the action
there might be more attributes as listed below.
Sent if there is some kind of problem parsing or processing a message from the client.
msg_type
- string:error
action
- string:error
error
- string: Descriptive error message of problem on the server.
Sent when the audio processor gets connected or disconnected.
msg_type
- string:volume
action
- string:connection
connected
- boolean:true
if connection to Dolby CP750 is available,false
otherwise.
Sent when the volume was changed (through any means).
msg_type
- string:volume
action
- string:volume_changed
volume
- int: The new volume the audio processor was set to. Number in the range of0
to70
.40
is equivalent to4.0
on the Dolby display.
Sent when the sound was muted or unmuted.
msg_type
- string:volume
action
- string:mute_status_changed
muted
- boolean:true
if sound is muted,false
otherwise.
Sent when the audio input source changed.
msg_type
- string:volume
action
- string:input_mode_changed
mode
- int:0-3
: Digital 1-4,4
: Analog,5
: NonSync,6
: Microphone,7
: Last setting on power off.
Sent when the decode mode of the Digital 1
input changed.
This is used to differentiate between 5.1 and 7.1 surround sound sources.
msg_type
- string:volume
action
- string:decode_mode_changed
mode
- int:0
: Auto,1
: Invalid,2
: N_A,3
: 5.1 Surround,4
: Dolby Pro Logic,5
: Dolby Pro Logic 2,6
: 7.1 Surround.
Sent when the Jnior box for lights gets connected or disconnected.
msg_type
- string:lights
action
- string:connection
connected
- boolean:true
if connection to Jnior 310 is available,false
otherwise.
Sent when the Christie IMB for playback control gets connected or disconnected.
msg_type
- string:playback
action
- string:connection
connected
- boolean:true
if connection to Christie IMB-S2 is available,false
otherwise.
Sent when the Christie Projector for projector control gets connected or disconnected.
msg_type
- string:projector
action
- string:connection
connected
- boolean:true
if connection to Christie PIB is available,false
otherwise.
Sent when the IMB turned on or off.
msg_type
- string:projector
action
- string:power_changed
state
- int: The state of the IMB encoded as:0
- IMB is off.1
- IMB is currently warming up/booting.2
- IMB is on.
timestamp
- string: ISO 8601 formated point in time of when the lamp state change was observed.
Sent when the lamp turned on or off.
The lamp is still cooling if is_on
is false and the cooldown
field exists. The cooldown
field is omitted if the lamp isn't being cooled.
msg_type
- string:projector
action
- string:lamp_changed
is_on
- boolean: True if the lamp is shining bright, false if it's off.timestamp
- string: ISO 8601 formated point in time of when the lamp state change was observed.cooldown
- int: The time the lamp still has to be cooled in seconds.
Sent when the douser was opened or closed.
msg_type
- string:projector
action
- string:douser_changed
is_open
- boolean: True if the douser is open now, false if it's closed.
Sent when the projector switched the active image source to a different channel.
msg_type
- string:projector
action
- string:channel_changed
channel
- int: The active channel encoded as:0
: Unknown/other1
: IMB Flat2
: IMB Scope3
: DVI A (PC) Flat4
: DVI A (PC) Scope
Sent when the IMB starts or stops ingesting content to the NAS.
msg_type
- string:projector
action
- string:ingest_state_changed
is_ingesting
- boolean: True if the IMB is ingesting something, false otherwise.timestamp
- string: ISO 8601 formated point in time of when the ingestion state change was observed.
Change the volume to the specified level.
This triggers a volume_changed
notification on all connected clients when the volume actually got changed.
msg_type
- string:volume
action
- string:set_volume
volume
- int: The volume level to change to. Number in the range of0
to70
.40
is equivalent to4.0
on the Dolby display.
Increase the volume by 0.1.
msg_type
- string:volume
action
- string:increase_volume
Decrease the volume by 0.1.
msg_type
- string:volume
action
- string:decrease_volume
Set the mute status to the specified value.
This triggers a mute_status_changed
notification on all connected clients when the mute status got applied.
msg_type
- string:volume
action
- string:set_mute_status
muted
- boolean:true
to mute the sound,false
to unmute.
Set the audio input source to the specified mode.
This triggers a input_mode_changed
notification on all connected clients when the input mode was changed.
msg_type
- string:volume
action
- string:set_input_mode
mode
- int:0-3
: Digital 1-4,4
: Analog,5
: NonSync,6
: Microphone,7
: Last setting on power off.
Set the decode mode of the Digital 1
input.
This triggers a decode_mode_changed
notification on all connected clients when the input mode was changed.
This is used to differentiate between 5.1 and 7.1 surround sound sources.
msg_type
- string:volume
action
- string:set_decode_mode
mode
- int:0
: Auto,1
: Invalid,2
: N_A,3
: 5.1 Surround,4
: Pro Logic,5
: Pro Logic II,6
: 7.1 Surround.
Dim the light to one of the given intensities.
msg_type
- string:lights
action
- string:set_light_level
level
- int: The light intensity to choose as a value from 0-3. 0 = 0%, 1 = 33%, 2 = 66% and 3 = 100%.
Starts playing the currently loaded content.
msg_type
- string:playback
action
- string:play
Pauses playing the currently loaded content.
msg_type
- string:playback
action
- string:pause
Stops playing the currently loaded content.
msg_type
- string:playback
action
- string:stop
Select the input source to display the image from including the screen ratio.
msg_type
- string:playback
action
- string:set_input_mode
mode
- string: The image source channel to select:cinema_flat
- IMB image in flat ratio.cinema_scope
- IMB image in scope ratio.pc_flat
- Computer image in flat ratio.pc_scope
- Computer image in scope ratio.
Power on the IMB.
msg_type
- string:projector
action
- string:power_on
Power off the IMB. This will start cooling the lamp too if it was on.
msg_type
- string:projector
action
- string:power_off
Turn on the lamp.
msg_type
- string:projector
action
- string:lamp_on
Start cooling the lamp.
msg_type
- string:projector
action
- string:lamp_off
Open the douser.
msg_type
- string:projector
action
- string:douser_open
Close the douser.
msg_type
- string:projector
action
- string:douser_close
Change the active image source of the projector.
This triggers a channel_changed
notification on all connected clients when the channel actually got changed.
msg_type
- string:projector
action
- string:set_channel
channel
- int: The channel to change to encoded as:1
: IMB Flat2
: IMB Scope3
: DVI A (PC) Flat4
: DVI A (PC) Scope