The LED Ticker Custom API allows advanced users to develop a custom ticker to display any content and customize how the content is displayed. The API works by defining text or shapes to draw on the Ticker's display. The custom API can be accessed in multiple ways:
The API expects a set of parameters in order to fully define where and how each text or shape will be displayed.
Parameter | Type | Required | Values | Default Value |
---|---|---|---|---|
text | String | true | Up to 16 characters | None |
size | Integer | false | 1 to 4 | 2 |
color | String | false | 000000 to ffffff | ffffff |
x | Integer | false | 0 to 63 | 0 |
y | Integer | false | 0 to 31 | 7 |
align | String | false | L, C, or R | L |
Parameter | Type | Required | Values | Default Value |
---|---|---|---|---|
shape | String | true | line | None |
x1 | Integer | true | 0 to 63 | 0 |
y1 | Integer | true | 0 to 31 | 0 |
x2 | Integer | true | 0 to 63 | 0 |
y2 | Integer | true | 0 to 31 | 0 |
color | String | false | 000000 to ffffff | ffffff |
Parameter | Type | Required | Values | Default Value |
---|---|---|---|---|
shape | String | true | rect | None |
filled | Boolean | false | true or false | false |
x | Integer | true | 0 to 63 | 0 |
y | Integer | true | 0 to 31 | 0 |
w | Integer | true | 0 to 63 | 0 |
h | Integer | true | 0 to 31 | 0 |
color | String | false | 000000 to ffffff | ffffff |
Parameter | Type | Required | Values | Default Value |
---|---|---|---|---|
shape | String | true | circle | None |
filled | Boolean | false | true or false | false |
x | Integer | true | 0 to 63 | 0 |
y | Integer | true | 0 to 31 | 0 |
r | Integer | true | >0 | 0 |
color | String | false | 000000 to ffffff | ffffff |
Parameter | Type | Required | Values | Default Value |
---|---|---|---|---|
shape | String | true | diamond | None |
filled | Boolean | false | true or false | false |
x | Integer | true | 0 to 63 | 0 |
y | Integer | true | 0 to 31 | 0 |
w | Integer | true | 0 to 63 | 0 |
h | Integer | true | 0 to 31 | 0 |
color | String | false | 000000 to ffffff | ffffff |
Parameter | Type | Required | Values | Default Value |
---|---|---|---|---|
shape | String | true | pixel | None |
hex | String | true | Up to 16 characters* | None |
x | Integer | true | 0 to 63 | 0 |
y | Integer | true | 0 to 31 | 0 |
align | String | false | H or V | H |
Color | RGB | Binary | Hex |
---|---|---|---|
White | 255,255,255 | 11111111 | ff |
Red | 255,0,0 | 11100000 | e0 |
Green | 0,255,0 | 00011100 | 1c |
Blue | 0,0,255 | 00000011 | 03 |
Yellow | 255,255,0 | 11111100 | fc |
Cyan | 0,255,255 | 00011111 | 1f |
Magenta | 255,0,255 | 11100011 | e3 |
The API can be accessed locally by sending a WebSocket message to the Ticker through your local area network (LAN).
The API can be accessed locally by sending a POST request to the Ticker through your local area network (LAN).
The Alert API can be accessed locally by sending a POST request to the Ticker through your local area network (LAN).
Parameter | Type | Required | Values | Default Value |
---|---|---|---|---|
length | Integer | false | >0 | 3 seconds |
brightness | Integer | false | 1 to 10 | Current Brightness |
http://ticker.local/alert?length=5&brightness=10
The API can be accessed by having the Ticker send a GET request to a url endpoint.
[
 {
  "text":"Size 1",
  "color":"FF0000",
  "size":1,
  "x":31,
  "y":4,
  "align":"C"
 },
 {
  "text":"Size 2",
  "color":"00FF00",
  "size":2,
  "x":1,
  "y":15,
  "align":"L"
 },
 {
  "text":"Size 3",
  "color":"0000FF",
  "size":3,
  "x":62,
  "y":15,
  "align":"R"
 },
 {
  "text":"Size 4",
  "color":"00FF00",
  "size":4,
  "x":1,
  "y":30,
  "align":"L"
 }
]
The example JSON above will produce the following output on the Ticker display:
[
 [
  {
   "text":"Size 1",
   "color":"FF0000",
   "size":1,
   "x":31,
   "y":4,
   "align":"C"
  },
  {
   "text":"Size 2",
   "color":"00FF00",
   "size":2,
   "x":1,
   "y":15,
   "align":"L"
  }
 ],
 [
  {
   "text":"Size 3",
   "color":"0000FF",
   "size":3,
   "x":62,
   "y":15,
   "align":"R"
  },
  {
   "text":"Size 4",
   "color":"00FF00",
   "size":4,
   "x":1,
   "y":30,
   "align":"L"
  }
 ]
]