The software we built to run the Printer Ranch

My Lab has nine printers, and software Dad and I built to run all nine at once, so nobody has to remember what every machine is doing by hand.
The most important rule in our software: a toy finishing its print is NOT the same as a toy being done. Someone still has to take it off the printer, count how many came out looking right, and say so. Only then does the software call it finished.
There is a big screen on the wall in the print room that shows what every printer is doing right now and what is coming next, so I can walk by and just know.
Our software also never fibs. If a toy has no file ready to print yet, it says exactly that instead of pretending everything is fine. Below is the long version, for grown-ups and big kids.
The first version of this software scheduled two shifts a day, morning and evening, like a factory. It worked until it did not: a 40-minute plate and a 9-hour plate had to fit the same slot, and the slot was always wrong for one of them. We rebuilt it in September around one honest idea instead.
Plan, plate, printer
A plate is the only unit of work: one sliced file, printed once, on one printer. Not a shift, not a slot, not a job. The queue is a single ordered list of plates, and order is priority. A plate is either pinned to a specific printer or open to "any printer of the right model". Everything the software shows is derived from that one list, so there is no separate schedule that can drift out of sync with it.
| waiting | has a file, ready to print, not yet started |
| needs-file | created, but nothing sliced for it yet; cannot start |
| printing | on a printer right now |
| finished | the printer says it is done; nobody has checked it yet |
| done | a person took it off and counted the good ones |
| failed / hold / cancelled | stopped, paused, or called off, each for a stated reason |
Eight states, one queue, every plate always in exactly one of them. As of the day we wrote this.
Task cards: a finished print is not a finished job
This is the phrase we say most in the print room, and it is a real mechanic. When a printer reports it is done, the software marks the plate finished, not done. Only a person taking the plate off, counting how many toys came out good, and confirming it moves the plate to done.
// the printer told us it's done: this is NOT the end of the job export function markFinished(state, pid, ok = true, liveInfo = {}) { const p = state.plates[pid]; if (!p || p.status !== "printing") return null; p.status = ok ? "finished" : "failed"; p.finishedAt = iso(); return p; } // a person took the plate off and counted: THIS is the end of the job export function off(state, pid, { good = 0, oops = 0, note = "" } = {}) { const p = state.plates[pid]; p.outcome = { good, oops, note }; p.status = "done"; p.closedAt = iso(); return p; }
A printer's own camera can guess how many pieces are on the plate. It cannot tell you if a hinge came out warped, if a color bled, or if a tiny dragon is good enough to sell. Only a hand and an eye know that, so the software refuses to call anything sellable stock until a person has looked. It is slower than trusting the camera. It is also never wrong in the way that matters.
The kiosk on the wall
A screen in the print room, always on, shows the same Printers view you get on a phone: what is running where, what is queued next, which machine is idle. A glance answers the question instead of nine separate checks. Every screen draws from the one queue, so two screens can never disagree.
Bambuddy drives, we plan
Our software owns the queue. It does not talk to a printer directly. An existing open-source tool called Bambuddy is the one that sends a file, watches a print, and pauses or stops a machine. Our software decides what prints, when, and where, then asks Bambuddy to carry it out. If a printer is not registered with Bambuddy yet, the software falls back to the printer's own status feed (the MQTT feed from the last technical note), so it is never silently blind to a machine.
What "blocked" means, and why the console never lies
A plate with no sliced file is labeled needs-file the instant it is created. It is never counted as ready, and never defaults to "waiting" because that would look better on a screen.
status: file ? "waiting" : "needs-file", createdAt: iso(), note,
And when someone tries to start a plate that is not ready, the software refuses in plain language, naming the real reason:
if (p.status !== "waiting") throw err(409, p.status === "needs-file" ? "this plate has no sliced file yet" : `plate is ${p.status}`);
Things that went wrong
- The first planner scheduled two shifts a day, and a 40-minute plate and a 9-hour plate had to share one slot. We threw the shifts away and kept one queue.
- The planner once said "everything fits!" while 41 of 42 plates had no sliced file at all. Now a plate with no file is
needs-filefrom the moment it is made, and the summary line is never allowed to be more optimistic than the plates behind it. - An older kiosk showed a shift-based picture of the Printer Ranch while the phone showed the queue. Two screens that could disagree is worse than one that is a few seconds stale, so we took the old one down.
- A printer not yet registered with Bambuddy left the software half-blind. It now falls back to the printer's own status feed.
What we would tell you
Build around one queue, not a schedule that has to agree with it. Make "not ready yet" its own honest state instead of a flavor of "ready". And never let a summary line be more optimistic than the plates behind it. The day that happens is the day the software stops doing the one thing it exists to do, which is tell the truth about what will print and when.
For press and partners
Texas Toy Lab, a 3D-printed toy business run by 8-year-old Joseph Crabtree in Austin, Texas, built its own Printer Ranch scheduling software around one rule: a plate that finishes printing is not "done" until a person takes it off and counts the good ones. The software runs on one honest queue rather than a fixed schedule, drives Bambu Lab printers through the open-source tool Bambuddy, and refuses to show a status more optimistic than what is true.
Mentioned in this note: Bambuddy and Bambu Lab. Neither is involved in the Lab. Photo above is free to use with the credit "Texas Toy Lab". Press page: texastoylab.com/press, kit: the press kit (.zip); contact joseph@texastoylab.com (Dad answers).
Links and straight talk
Next technical note: Norman, the computer that runs the Lab.
Howdy. See you at the next market.
Joseph ★ (and Dad, for the boring parts)