Comment on Apparently homebox allows setting third-party label rendering through an HBOX_LABEL_MAKER_LABEL_SERVICE_URL env var

<- View Parent
rcmd@lemmy.world ⁨2⁩ ⁨days⁩ ago

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.

source
Sort:hotnewtop