Machines — configuring them
Permissions
| Permission | What it allows | Granted to |
|---|---|---|
device.read | See machines, their status and readings | Manager, Warehouse |
device.manage | Register machines, issue and rotate keys, lay out the travel graph | Manager |
device.report | Report measurements and camera counts | Manager, Warehouse |
A machine acts with its role's permissions, narrowed by scopes where
given — a scale needs only device.report; a robot needs the warehouse task
permissions. A role may not grant anything the person registering holds, and
may not be administrator.
Keys
Authorization: Device erpdev.<company>.<machine>.<secret>. Only a SHA-256 of
the secret is kept; it is shown once on registering or rotating. Disabling a
machine, rotating its key or calling from outside its allowed addresses all get
the same refusal, so the answer says nothing about which was wrong.
Every write a machine makes accepts an Idempotency-Key, scoped to the
machine.
Settings
- Camera confidence (
inventory.vision_confidence, 0.95) — how sure a camera must be, from 0 to 1, before its count confirms a bin without a person.
The travel graph
PUT /api/v1/warehouse/sites/{site}/edges replaces a building's graph: pairs
of location codes, the distance between them in millimetres, and whether it can
be travelled both ways. Pick sequencing and slotting route over it; where it
does not reach, the straight line between coordinates stands in, flagged as
such.
A robot vendor
The Robot fleet integration (Settings → Integrations) is where a vendor's fleet manager connects. With one, an open task can be offered to the fleet; without one, robots claim their own work from the queue like a handheld does.
Shared handhelds and badges
A shared handheld is registered like any machine (kind handheld), with the warehouse role. On the Badges tab, issue each person who uses one a badge — and a PIN, four to eight digits, if you want one. The code is shown once: print it on the card then. A lost card is issued again, which stops the old one.
Scanning a badge on a handheld signs that person in for a shift
(inventory.operator_shift_hours, 10): the handheld then works with their
permissions, and the audit log names them, "via handheld HH-3". Somebody else
scanning in ends the first shift; so does the same person scanning in on
another handheld. Five wrong PINs in a row lock the badge until it is issued
again. Withdraw stops a badge at once and signs its holder out.
A browser as a shared handheld
On the handheld itself, sign in as a manager, open Inventory → Handheld
and, at the bottom, Use this browser as a shared handheld: choose which
registered handheld it is. That issues the handheld a new key, kept in that
browser only — anything else using the old key stops. From then on the
browser shows scan your badge instead of the password form, and a badge
scan signs that person in until their shift ends
(inventory.operator_shift_hours) — on the next request, not merely at the
next token refresh. Stop using this browser as a shared handheld removes
the key.