CODE
POST /apis/devices/stbs/:stbId/commands
{
"command": "show-text-message",
"parameters": {
"data": [
{
"message": "This is an important message",
"duration": 300000,
"color": "#ffffff",
"blink": false
}],
"useFades": true,
"repeat": -1,
"showMode": "static",
"location": {
"position": "bottom",
"offset": 0
},
"backgroundColor": "#ff0000"
}
}
Parameters:
Field | Type | Description |
|---|
command | String | Command to send: set-text-message. |
repeat | Number | Repeat count. Set to -1 to disable. |
showMode | String | Display mode: static or scroll. |
backgroundColor | String | Color RGB value in hex, e.g., #aabbcc. |
useFades | Boolean | Set to true. |
position | String | Anchor position: bottom-left, bottom-right, top-left, top-right, left, right. |
offset | Number | Vertical pixel offset from anchor position. |
message | String | Text content of message. |
duration | Number | Message duration in ms. |
color | String | Color RGB value in hex, e.g., #aabbcc. |
blink | Boolean | Blink/pulse the text message. |