- API access guide
- Common Error Codes
- FAQ
- User-related
- System control-related
- Screen control-related
- Receiving card-related
- Obtain receiving card connection information
- Obtain receiving card monitoring information
- Obtain basic information of the receiving card
- Configure the screen via receiving card configuration (send .rcfgx file)
- Configure the screen via receiving card configuration (send .scr file)
- Upgrade the receiving card
- Obtain the receiving card upgrade progress
- Send Card-related
- Obtain screen brightnessGET
- Set screen brightnessPOST
- Obtain screen statusGET
- Set screen statusPOST
- Obtain screen-on/off schedulesGET
- Set screen-on/off schedulesPOST
- Set brightness adjustment schedulesPOST
- Obtain brightness adjustment schedulesGET
- General capabilities
- Serial port control
- Board relays
Set screen-on/off schedules
POST
/terminal/core/v1/screen/power-policy
Last modified:2024-08-23 08:27:29
Request
Header Params
Content-Type
string
optional
Example:
application/json
Authorization
string
optional
Default:
1724333189506EO5Zqpduu4+azwYYXMJJhg==
Body Params application/json
conditions
array [object {3}]
Policy collection
cron
array[string]
Time
action
string
Task behavior
enable
boolean
Task status
Example
{
"enable": true,
"conditions": [
{
"cron": [
"0 0 0 ? * * *"
],
"action": "OPEN",
"enable": true
}
]
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://192.168.0.10:16674/terminal/core/v1/screen/power-policy' \
--header 'Authorization: 1724333189506EO5Zqpduu4+azwYYXMJJhg==' \
--header 'Content-Type: application/json' \
--data-raw '{
"enable": true,
"conditions": [
{
"cron": [
"0 0 0 ? * * *"
],
"action": "OPEN",
"enable": true
}
]
}'
Responses
🟢200Success
application/json
Body
code
integer
Status code
message
string
Detailed information
Example
{
"code": 0,
"message": ""
}