System operation
Last updated
Last updated
© 2024 HOLOPLOT GmbH. All rights reserved.
This endpoint can be used to stream updates about the system power state through WebSockets.
The payload returned is the same as in GET /power
.
Find a Javascript client to use use this endpoint below.
const WebSocket = require('ws');
const client = new WebSocket('ws://localhost:6789/ws/power');
client.on('message', msg => console.log("Power update:" + msg.toString()));
OK
This endpoint can be used to stream system power status information through WebSockets.
The payload returned is the same as in GET /status/power
but only the fields that have
changed will be populated.
Upon reception of a message through the Websocket, a full system status can be
retrieved by issuing a GET
request to /status/power
.
Find a Javascript client to use use this endpoint below.
const WebSocket = require('ws');
const client = new WebSocket('ws://localhost:6789/ws/status/power');
client.on('message', msg => console.log("Power status update:" + msg.toString()));
OK
Returns the current system gain in dB (from -120dB to 0dB).
OK
Returns the system mute state
OK
Returns the target power state for the system
OK
"on"
Returns the current system gain in linear values (from 0 to 1).
OK
Changes the target gain level for the system, the values should be in dB (-120dB to 0dB)
Gain in dB
OK
Changes the target gain level for the system, the values should be in linear scale (0 to 1)
Gain linear
OK
Get power information for all modules
OK
Decrease the target system gain by X dB
Gain difference in dB, positive number
OK
Changes the system mute state
Mute
OK
Increase the target system gain by X dB
Gain difference in dB, positive number
OK
Changes the target power state for the system, allowed values are "on" and "sleep"
Power
"on"
OK
"on"