Skip to the page

TECH 06Joseph & Dad

The software we built to run the Printer Ranch

The Lab's rack: a screen of live graphs on top, network gear and servers below, a small plush toy hanging from one handle
Norman's rack, where the queue and the kiosk feed both run.
The short version (for kids)

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 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.

waitinghas a file, ready to print, not yet started
needs-filecreated, but nothing sliced for it yet; cannot start
printingon a printer right now
finishedthe printer says it is done; nobody has checked it yet
donea person took it off and counted the good ones
failed / hold / cancelledstopped, 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.

ttl-Printer Ranch/server/lib/engine.mjs · the two halves (trimmed)
// 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;
}
Dad's note: why the camera does not get the last word

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.

engine.mjs · a plate is only "waiting" if it can actually wait to print
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:

engine.mjs · a refusal that says why
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

Our planner once said "everything fits!" while 41 of 42 plates had no file. The green line was hiding a red fact. Now it says so out loud.

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.

"The green line was hiding a red fact." (Joseph, 8, on why the planner now says "41 of 42 plates have no file" instead of "everything fits!")

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).

Next technical note: Norman, the computer that runs the Lab.

Howdy. See you at the next market.
Joseph ★ (and Dad, for the boring parts)