FloorCheck

Connecting lights and signs

How a signal tower, LED sign, screen or PLC gets each line's state from FloorCheck, what it's sent, and how a button or PLC tells FloorCheck a line stopped. For whoever wires up the hardware.

Set them up in FloorCheck web under Lights and signs and Buttons and sensors (Admin, Manager or Quality), including the ones a tablet on the plant's network sends to. With FloorCheck Pro alone, a tablet's lights are set up in the app under More, Lights and signs. Not sure your hardware will work? Send us the make and model at support@floorcheck.app and we'll tell you what it needs.

Three ways to connect

Each light or sign watches some lines (a line's machines count with it) or the whole plant, and shows the events you pick. Worst wins: a hold, a failed critical check or a stopped line is red; a late check flashes amber; a check coming due is amber; days waiting for sign-off are blue (whole plant only); otherwise green, or off when nothing is running.

HowUse it whenWhat you set up
It checks an addressThe light or display can fetch a web address every few seconds. Works from inside any plant network: the light only reaches out.Copy its status address into the device. Ask every 5 to 10 seconds.
FloorCheck web sends to itThe light, or a small gateway in front of it, has an address reachable from the internet.Its address, and the message it expects. Sent on each change and every 5 minutes.
A tablet sends to itThe light is on the plant's own network, where FloorCheck web can't reach. A FloorCheck tablet on that network passes it on (app 0.2.7 or later).In FloorCheck web: pick A tablet sends to it, the tablet, and the light's address on your network. FloorCheck web works out what it shows and signs it; the tablet sends it within seconds of each change, while FloorCheck is open on it. Without FloorCheck web: in the Pro app, More, Lights and signs.

FloorCheck web never sends to an address inside a private network (10.x, 192.168.x, 172.16–31.x and the like), and it doesn't follow redirects. For a light inside the plant, use its status address, or the tablet at the line.

Each light has one sender. FloorCheck web won't set up a second light at an address a tablet already sends to, so two senders never take turns setting it. A Pro tablet's own lights move to FloorCheck web when it connects, with the same address, message and secret, so the light itself needs no change. If the tablet can't reach FloorCheck web for two minutes, it works the state out from its own records until it can.

What it's sent

The status address answers with this JSON, and it's what FloorCheck sends when you leave the message empty:

{
  "light": "Line 2 tower",
  "color": "AMBER",
  "flashing": true,
  "message": "Line 2 · Code & label late 9 min",
  "messages": ["Line 2 · Code & label late 9 min"],
  "items": [{"message": "Line 2 · Code & label late 9 min", "color": "AMBER", "flashing": true}],
  "watched": [{"name": "Line 2", "color": "AMBER", "flashing": true, "message": "Line 2 · Code & label late 9 min"}],
  "at": "2026-11-13T16:20:00Z"
}
FieldWhat it is
colorRED, AMBER, BLUE, GREEN or OFF: the worst of what it watches.
flashingTrue for a late check.
messageThe words for the worst one, one line.
itemsEverything needing attention, worst first, each in its own colour: what a sign scrolls.
watchedEach line on its own, for a receiver with one lamp per line.
atWhen it was worked out.

A display that can't read JSON can ask for ?format=text instead: two lines, the colour and then the words.

AMBER
Line 2 · Code & label late 9 min

Fitting your light

Most lights and signs expect their own format. Write the message (and, for a light set by its address, the address) with placeholders, and FloorCheck fills them in, escaped for where they land: URL-encoded in the address, escaped for JSON, a form or XML in the body by its content type.

PlaceholderBecomes
{color} / {colour}AMBER / amber
{flashing}true or false
{message} / {MESSAGE}The words for the worst one / in capitals, for LED signs
{messages} / {MESSAGES}Everything needing attention, separated by ◆ / in capitals
{light}This light's name
{at}When, as 2026-11-13T16:20:00Z

A tower set by its address, sent with GET:

https://gateway.example.com/tower/3?color={colour}&blink={flashing}

An LED sign that takes JSON, sent with POST and application/json:

{"text": "{MESSAGES}", "color": "{colour}"}

Placeholders can go in the path or the query, never the host name.

Checking it came from FloorCheck

Every request FloorCheck sends carries three headers, and each light has its own signing secret (shown with the light):

A receiver that can check it should, and should refuse a timestamp more than a few minutes old. A light that can't simply ignores the headers.

# Python
import hashlib, hmac, time

def from_floorcheck(secret, headers, path_and_query, body):
    ts = headers["X-Signal-Timestamp"]
    if abs(time.time() - int(ts)) > 300:
        return False
    signed = f"{ts}.{path_and_query}.{body}".encode()
    want = "sha256=" + hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
    return hmac.compare_digest(want, headers["X-Signal-Signature"])
// Node
const crypto = require("crypto");

function fromFloorCheck(secret, headers, pathAndQuery, body) {
  const ts = headers["x-signal-timestamp"];
  if (Math.abs(Date.now() / 1000 - Number(ts)) > 300) return false;
  const want = "sha256=" + crypto.createHmac("sha256", secret).update(`${ts}.${pathAndQuery}.${body}`).digest("hex");
  const got = headers["x-signal-signature"] || "";
  return want.length === got.length && crypto.timingSafeEqual(Buffer.from(want), Buffer.from(got));
}

The tablet at the line signs the same way, so one receiver works with both.

Screens

Every light can also be shown on any screen: Open on a screen beside it opens a page with no sign-in, the long secret in the address being the key. The whole screen is the light's colour with its words big enough to read across the floor; add ?view=sign for a scrolling LED-style sign on a TV. It asks every few seconds, and after a minute without an answer it goes grey and says so, never leaving a stale green. Scan the QR code beside the light with an old tablet or phone to make it the light.

Buttons and sensors

A PLC or a button can tell FloorCheck that a line stopped or started. Each one gets its own secret address in FloorCheck web, under Buttons and sensors, and calling it sets that line's state, as a tablet would, with the device named in the line's history.

curl -X POST 'https://yourplant.floorcheck.app/api/v1/inbound/<address>?status=stopped&reason=Capper%20jam'
curl -X POST 'https://yourplant.floorcheck.app/api/v1/inbound/<address>?status=running'

Troubleshooting

Still stuck? Write to support@floorcheck.app with the light's name and what Test says.