Connecting lights and signs
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.
| How | Use it when | What you set up |
|---|---|---|
| It checks an address | The 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 it | The 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 it | The 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"
}
| Field | What it is |
|---|---|
color | RED, AMBER, BLUE, GREEN or OFF: the worst of what it watches. |
flashing | True for a late check. |
message | The words for the worst one, one line. |
items | Everything needing attention, worst first, each in its own colour: what a sign scrolls. |
watched | Each line on its own, for a receiver with one lamp per line. |
at | When 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.
| Placeholder | Becomes |
|---|---|
{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):
X-Signal-Light: the light's id.X-Signal-Timestamp: seconds since 1970.X-Signal-Signature:sha256=and the hex HMAC-SHA256, with the secret, of the timestamp, a dot, the path and query as requested, a dot, and the body (empty for GET).
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'
- Always a POST. Fetching the address (a link preview, an email scanner) does nothing.
- Fields can come in the query, a form, or JSON:
status(stopped,down,offor0;running,up,onor1) and an optionalreason. - The answer is a line a device can log:
{"ok": true, "result": "Line 1 is now stopped"}. 404: no such address (or it's switched off). 405: it was a GET. 422: it couldn't be done, and the result says why. 429: within 2 seconds of the last call, so it was taken for a bounce and ignored.
Troubleshooting
- Test beside a light sends it what it shows now and says what the light answered. Recent sends lists the last few, with the answer to each.
- "Couldn't connect" or "No answer": FloorCheck web can't reach the address from the internet. Check the address, and that the gateway is reachable from outside; or use the status address or the tablet at the line instead.
- "It answered 401" or 403: the receiver refused it. Check its own login settings, and the signing secret if it checks the signature.
- After 5 failed sends in a row, FloorCheck tries every 10 minutes instead of every minute, until one gets through or the light is edited.
- A screen went grey: it hasn't had an answer for a minute. Check its network; it comes back on its own.
- New address and secret beside a light replaces both at once, if an address was shared too widely. The device needs the new ones.
Still stuck? Write to support@floorcheck.app with the light's name and what Test says.