URL |
| |||||
---|---|---|---|---|---|---|
Method | GET | |||||
Description | Receives information of a tag. Note | tag . Refer to Cabinet to set cabinet in the correct mode.
| ||||
Response |
| |||||
Possible Error | HTTP404 with no body when controller does not exist Note when the cabinet | Status |
| |||
colour | Green | title | implemented
URL |
| ||||||
---|---|---|---|---|---|---|---|
Method | PUT | ||||||
Description | Sets value and color on a tag. note | ||||||
WIll only work if cabinet in de in mode |
Info |
---|
For the standardised PTL cabinet, controller 1 is the front, controller 2 is the back. Tag IDs are numbered from 11 upwards (left-to-right, bottom-to-top). |
Request
Code Block | ||
---|---|---|
| ||
{
"value": «valuetodisplay»,
["color": "red|green|orange|blue|pink|cyan|none"],
["blinking": "on|off|blink2sec|blink1sec|blink05sec|blink025sec"]
} |
value
should be a string, if value
is null
, the tag is switched off.
color
is optional. When no color is chosen, it defaults to red
.
value
blinking
should be a string, if value
is null
, the tag is switched off.it defaults to on
(i.e. no blinking). off
causes the LED to switch off (identical to "color": "none"
)
Response
HTTP204 when successful
Possible Errors
HTTP400 when request was invalid
Code Block |
---|
{ "message": «human readable error» } |
HTTP404 with no body when controller does not existHTTP409 when cabinet not in correct mode
Note when the cabinet sides
setting is set to frontonly
, controller 2 will not be available and this will result in an HTTP404.
Status
Status | ||||
---|---|---|---|---|
|
Remarks
v2.2:
Blinking support added.
URL |
| |||||
---|---|---|---|---|---|---|
Method | PUT | |||||
Description | Sets value and color on a range of tags.
| |||||
Request |
| |||||
Response | HTTP204 when successful | |||||
Possible Errors | HTTP400 when request was invalid
HTTP404 with no body when controller does not exist HTTP409 when cabinet not in correct mode Note when the cabinet | Status | ||||
Status | ||||||
colour | Yellow | title | pending||||
Remarks | v2.2:
v2.1.2:
v2.1.1:
v2.1:
|