Apparently Homebox allows setting third-party label rendering endpoint through an HBOX_LABEL_MAKER_LABEL_SERVICE_URL env var
from rcmd@lemmy.world to selfhosted@lemmy.world on 14 Nov 18:44
https://lemmy.world/post/38800663

And I just made an HTTP endpoint in golang that outputs PNG labels with small QRs just as I need them, to print out on my Bluetooth label printer.

#selfhosted

threaded - newest

rcmd@lemmy.world on 14 Nov 18:45 next collapse

Grab Homebox here and start tracking your inventory!

BOFH666@lemmy.world on 14 Nov 18:58 next collapse

Please elaborate,

The software looks ok, will install. UI looks like spoolman, no bs, just works. I like it.

But; what’s with the label printer? Creating qr with a url to the inventory system looks handy.

I always have to dig thru gmail for order confirmations when I want to know where stuff was bought. This looks like a great solution for a first world problem.

rcmd@lemmy.world on 14 Nov 19:15 collapse

I keep track of lots of vintage devices in my basement, these lay on a CD shelf with narrow walls, and I want to keep track of their maintenance status, i.e. when did I charge the battery last time.

This little printer is pretty handy for labeling tasks, with one noticeable problem: the resolution is quite low, so I cannot afford printing full length domain name on such a tiny label. What I ended up with is writing my own microservice that puts fake i.nv domain in front of inventory ID. That domain is provided by DNSMASQ that I run on my server, and there’s also NGINX listening for that domain and doing 302 onto an actual Homebox page.

Homebox sends URL parameters to the specified endpoint, and given that information it is possible to construct any label of any shape or form, it only needs to be a PNG image.

BOFH666@lemmy.world on 14 Nov 19:50 collapse

Thanks for the answer!

Just bought a phomemo, looks like smart folks created a cups driver for it. (Ab)using dnsmasq and nginx is clever, will keep that in mind.

Perhaps not relevant in your case, but if you print qr, the caps of your links also affect the amount of data in the code:

hackaday.com/2025/…/shout-for-smaller-qr-codes/

rcmd@lemmy.world on 14 Nov 21:01 collapse

Surprisingly, it works! I just checked it on my microservice, indeed now QRs are smaller. This is a lifesaver tip, thanks a bunch!

cosmicrose@lemmy.blahaj.zone on 14 Nov 20:56 next collapse

Homebox is great, I bought a usb label maker specifically for it

buffing_lecturer@leminal.space on 16 Nov 14:40 collapse

Is the project current? I see an archived repository.

lka1988@lemmy.dbzer0.com on 16 Nov 15:46 next collapse
cosmicrose@lemmy.blahaj.zone on 16 Nov 17:59 collapse

It’s been continued in another repo github.com/sysadminsmedia/homebox

jores@infosec.exchange on 14 Nov 22:36 next collapse

@rcmd do you use the original printer app and just import the PNG or are you able to print the label directly? If the latter, would you mind sharing the setup?

rcmd@lemmy.world on 14 Nov 22:41 collapse

For now I use the vendor provided app, given it supports a share intent, so I can simply toss a PNG from Vivaldi at it and make it print the label. It does the job, and more importantly, it bypasses all possible obnoxious advertisement.

jores@infosec.exchange on 14 Nov 22:46 collapse

@rcmd Thanks for the info. I'm still hoping to find a printer for this label size (and roughly that price point) without having to rely on "ad-ware" apps to use it.

CocaineShrimp@sh.itjust.works on 15 Nov 03:29 next collapse

Fellow homebox user here. As an aside: I’ve got a storage room with a bunch of shelves and bins. For each bin, I’ve suck labels on them (using a label maker or sharpie + painters tape), and an NFC tag. Each box in Homebox has its own location, and each NFC tag is a direct link to its instance in Homebox.

It’s much easier to categorize larger quantities of things that aren’t as valuable as vintage media. Ie. hygiene products, off-season clothing, etc…

thehatfox@lemmy.world on 15 Nov 08:25 next collapse

What model of label printer is that?

rcmd@lemmy.world on 15 Nov 09:09 collapse

It’s Nelko P21, around $20.

Moonrise4846@lemmy.world on 16 Nov 10:14 collapse

How did you manage to make it lookup by inventory id? Normally it puts the whole uid in there which is much to big for the QR. Can you use Homebox qr search feature with your proxy?

rcmd@lemmy.world on 16 Nov 13:36 collapse

Homebox supports the https://<hostname>/a/<inventory_id> shorthand and does a 302 jump for you. Otherwise yes, I would have implemented the API search in a microservice.