Buy

Custom API

Draw your own text and shapes on the LED Ticker from a script, a home server or a web service.

In the web app this is the Web data ticker. There are three ways to send it something:

An alert takes over the whole panel for a few seconds.

The Ticker's address

On your network each Ticker is ticker-code.local, where code is its six-letter ticker code in lowercase: a Ticker with the code FJNJNW is ticker-fjnjnw.local. The code is under Device → Status in the web app, and the panel shows it for 10 seconds after you plug it in. Its IP address works too. Some computers and phones can't look up .local names: use the IP address there.

The Ticker refuses a POST or WebSocket started by a web page on another site, so a script, Home Assistant or a command-line tool is the way to send it. Nothing sent this way shows while Night Mode is on.

Items

Everything is a list of items in JSON. Each item is text or one shape. x and y count from the top left of the 64 × 32 panel.

Text

KeyTypeRequiredValuesDefault
textStringYesUp to 16 charactersNone
sizeIntegerNo0 to 6 (below)2
colorStringNo000000 to ffffff (hex RGB)ffffff
xIntegerNo0 to 630
yIntegerNo0 to 31: the bottom of the letters7 (0 over WebSocket)
alignStringNoL, C or R: x is the left, middle or right of the textL
sizeLetters
03 pixels tall
15 pixels tall
27 pixels tall
310 pixels tall
414 pixels tall
520 pixels tall
630 pixels tall

Line

KeyTypeRequiredValuesDefault
shapeStringYeslineNone
x1IntegerYes0 to 630
y1IntegerYes0 to 310
x2IntegerYes0 to 630
y2IntegerYes0 to 310
colorStringNo000000 to ffffff (hex RGB)ffffff

Rectangle

KeyTypeRequiredValuesDefault
shapeStringYesrectNone
filledBooleanNotrue or falsefalse
xIntegerYes0 to 630
yIntegerYes0 to 310
wIntegerYes0 to 630
hIntegerYes0 to 310
colorStringNo000000 to ffffff (hex RGB)ffffff

Circle

KeyTypeRequiredValuesDefault
shapeStringYescircleNone
filledBooleanNotrue or falsefalse
xIntegerYes0 to 630
yIntegerYes0 to 310
rIntegerYesThe radius, 1 or more0
colorStringNo000000 to ffffff (hex RGB)ffffff

Diamond

KeyTypeRequiredValuesDefault
shapeStringYesdiamondNone
filledBooleanNotrue or falsefalse
xIntegerYes0 to 630
yIntegerYes0 to 310
wIntegerYes0 to 630
hIntegerYes0 to 310
colorStringNo000000 to ffffff (hex RGB)ffffff

Pixels

A row (or column) of up to 8 pixels, each its own color.

KeyTypeRequiredValuesDefault
shapeStringYespixelNone
hexStringYesUp to 16 characters: 2 per pixelNone
xIntegerYes0 to 630
yIntegerYes0 to 310
alignStringOver WebSocketH (a row) or V (a column)H; over WebSocket, always send it

Each pixel's color is one byte in two hex characters, RRRGGGBB: 3 bits of red, 3 of green and 2 of blue. Put "align" after "shape" in the item.

ColorRGBBinaryHex
White255, 255, 25511111111ff
Red255, 0, 011100000e0
Green0, 255, 0000111001c
Blue0, 0, 2550000001103
Yellow255, 255, 011111100fc
Cyan0, 255, 255000111111f
Magenta255, 0, 25511100011e3

A row of 8 pixels, white and black in turn: "ff00ff00ff00ff00".

The panel has 256 colors, so every color is rounded to the nearest of them in the same way.

Lists and pages

A GET, a POST and an alert all take a list of up to 256 items. An example:

[
 {
  "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"
 }
]

On the panel:

A panel showing the example

A list of lists makes pages. The Ticker shows each page in turn, each for the web app's Seconds per ticker:

[
 [
  {
   "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"
  }
 ]
]

If Web data has a smaller part of the panel in your layout, x and y count from that part's top left. Items that start outside it are left out, and text is cut to fit.

GET: the Ticker fetches your list

In the web app, open Web data and fill in:

SettingWhat it is
Secure connection (HTTPS)On for an https address
HostThe server, such as example.com, or example.com:8080 for another port
PathThe rest of the address, such as /ticker.json?city=minneapolis
AuthorizationOptional: sent as the request's Authorization header, such as Bearer abc123
Refresh rateHow often to fetch it, from every 5 seconds to once a day

The answer must be the list in JSON, within 30 seconds. One redirect (302) is followed. The Ticker fetches only while Web data is in your layout, and after a failure it tries again later, waiting longer each time, up to 30 minutes.

POST: you send your list

Send the list as the body of a POST to http://ticker-code.local/api. It replaces what Web data shows, and shows whenever Web data is on the panel in your layout. It answers OK.

curl -X POST http://ticker-fjnjnw.local/api -d '[{"text":"Hello","x":32,"y":15,"align":"C"}]'

WebSocket: draw live

Connect to ws://ticker-code.local/api. The first message takes over the whole panel; then:

Alert

An alert takes over the whole panel for a few seconds, then the Ticker goes back to what it was showing. Send a list as the body of a POST to http://ticker-code.local/alert. It needs at least one text item; only the first page is shown.

In the addressValuesDefault
lengthSeconds: 1 to 3003
brightness1 to 10The current brightness
curl -X POST "http://ticker-fjnjnw.local/alert?length=5&brightness=10" -d '[{"text":"Doorbell","size":3,"x":32,"y":20,"align":"C"}]'

It answers OK, or 409 while another alert is showing or Night Mode is on, or 400 for a list with no text.