sysadminsmedia / homebox

A continuation of HomeBox the inventory and organization system built for the Home User
https://homebox.sysadminsmedia.com
GNU Affero General Public License v3.0
413 stars 14 forks source link

Support for printing asset labels on-demand, and support for dedicated label printers #55

Open victorhooi opened 1 week ago

victorhooi commented 1 week ago

What is the problem you are trying to solve with this feature?

Currently, there doesn't appear to be a way to easily print labels on demand for assets stored in Homebox.

There is only the ability to pre-print label sheets (via https://homebox.fly.dev/reports/label-generator), which

Furthermore, there is no support for dedicated label printers (e.g. Brother, Rhino, Brady etc.)

What is the solution you are proposing?

It would be great to have the ability to quickly print asset labels on demand in Homebox.

For example, a button next to each asset that quickly prints the label for that asset, or the ability to bulk-select some assets (e.g. via checkboxes), then clicking a "Print" button to print all of those.

Each label should have a QR code that links back to Homebox, as well as possibly some other barebones info. (The rest can be looked up in Homebox). Open to ideas on what "barebones" means here.

Also, this functionality should integrate with both standard printers (e.g. A4, US Letter), as well as normal hardware label printers (e.g. Brother, Rhino, Brady etc.). However, this functionality makes more sense with dedicated label printers - where you can just print individual labels very quickly and economically.

I have some Brother label printers I'd be happy to test with (e.g. Brother PT-950 NW), or Brady ones.

There was an earlier discussion around this topic (in the old Github repo) here:

https://github.com/hay-kot/homebox/discussions/273

For comparison, the InvenTree project has support for printing directly to label printers:

https://docs.inventree.org/en/latest/extend/machines/label_printer/

Here is the source code for their Brother support:

https://github.com/inventree/inventree-brother-plugin

Other systems like Snipe-It, Shelf etc also support label printers directly.

What alternatives have you considered?

No response

Additional context

No response

Contributions

tankerkiller125 commented 1 week ago

Please take a look at https://github.com/sysadminsmedia/homebox/discussions/53 when you get a chance. We're aware of issues with the label printing process are are looking to do an overhaul.

victorhooi commented 1 week ago

I took some screenshots to show how Snipe-It and InvenTree do their label functionality - hopefully that helps.

Snipe-It

For reference, Snipe-It's documentation on their asset label printing functionality:

https://snipe-it.readme.io/docs/asset-labels

You can bulk-select multiple assets, then click the "Generate Labels" button:

CleanShot 2024-06-25 at 13 34 01@2x

Alternatively, for each individual asset, there's also a "Generate Label" button:

CleanShot 2024-06-25 at 13 32 09@2x

If you click this - you can redirected to an auto-generated PDF file, which you can then save, or print:

CleanShot 2024-06-25 at 13 32 35@2x

If you go to Settings, Labels, you can see they have a list of templates (e.g. for Avery label sheets, for Brother lable pritners, for Dymoi label pritners etc:

CleanShot 2024-06-25 at 13 36 06@2x

Furthermore, scrolling down, there's a preview of the generated labels, and the ability to customise the fields:

CleanShot 2024-06-25 at 13 36 48@2x

They also have some documentation about how to get this to work with stand-alone label printers:

https://snipe-it.readme.io/docs/-asset-label-printer-examples-and-settings

Not sure how this does with the templates in the earlier screenshot - that might replace the need to do this.

InvenTree

You can select the template in the top field, then which plugin to use (e.g. output to a PDF, or to a physical label printer, or to one of those Avery-style label sheets):

CleanShot 2024-06-25 at 13 38 02@2x

In this case, the PDF output downloads in your browser (as compared to Snipe-It, where the PDF will open in the browser directly - personally I find opening it more intuitive than downloading it, as you can print it directly - although I guess this is just MIME types):

CleanShot 2024-06-25 at 13 39 06@2x