Skip to content

Labels, Asset IDs and QR Codes

A short number for every thing, a printed label for its box or shelf, and a code that takes a phone straight to the record.

Asset IDs

Every entity — item or location — has an asset ID: a short sequential number in the shape 000-014. The lab's house was 000-001, its kitchen 000-002, and the items ran on from there (transcript t11). Asset IDs are the inventory's spoken language: "the mixer is 000-014" fits on a label, in a notebook margin, in a sentence over the phone, in places a long database ID never will.

One bench note: asset IDs are house- keeping, not magic. After a round of API edits the lab found its items' asset IDs blank, and a built-in action — ensure asset IDs — exists for exactly that: it walks the household and assigns numbers to anything missing one (it completed 14 assignments in the lab). Creating through the web screens or from a template assigns numbers on the spot. If a label ever prints without a number, run the housekeeping action before blaming the printer.

Printed labels

The program renders a label image for any item or location: the lab requested its mixer's and received a ready PNG, 526 × 200 pixels (transcript t19). Print it on a label sheet, stick it on the box, the shelf edge or the thing itself, and the physical object now carries its own pointer back to the record.

A default install's status reports labelPrinting: false: the direct-to- printer integration is a feature you switch on and configure for a label printer. Rendering the image, as the lab did, works regardless — print it any way you print anything.

QR codes

The companion endpoint draws a QR code (a JPEG image) for any text you give it (transcript t19; the lab's sample is kept as homebox-lab/ qrcode.jpg). The pattern that makes this useful: encode the item's own address — the record's page in your HomeBox — print it on the label, and any phone in the house goes from scanning a box to reading its contents list, photo and warranty in one step. During a house move (chapter 15) this stops being a convenience and becomes the whole system.

Keep the exposure line from chapter 1 in mind: a QR code that resolves to your inventory should point at an address reachable from your own network. A label is findable by anyone holding the box.

The check for this chapter: print one label — even on plain paper — and stick it where the item lives. Then scan it with a phone and land on the record. The loop from thing to record and back is the feature; everything else in this chapter is plumbing.