OllisGit / OctoPrint-SpoolManager

Plugin for managing Spools
169 stars 59 forks source link

Scan of (QR|Bar)code on spool should select spool #314

Closed dcorbin closed 1 year ago

dcorbin commented 1 year ago

What I want is to able to scan a visual code on spool using the already present camera, and have it automatically select that spool as the active one. An appropriate audio confirmation of success should be played (or a different sound on failure). The way I envision this is having the QR code contain the serial # that is recorded for the spool. Then I can easily pre-print a set of QR codes that have a set of serial numbers on a sheet of labels and I can apply them as spools enter inventory and enter them in to SM.

If this is how the QR code works in SM currently, my apologies. I've not found formal documentation, and I've tried to understand it by reading past Issues but it is not clear to me and I think it is for something different.

I would happily implement this is a separate plugin if SM provides suitable APIs[1] for this. If SM does not have such APIs, I can submit them as a PR.

OR I can do the work as a PR for SM if this is something you think would generally be useful.

[1] I think I'd need an API to search by serial number and get back spool information, and a way to make the a given spool the active one. API design can be a touchy subject, but I'll suggest the search API returning a URL that makes the spool active when "GET"'d would be the most ReSTful.

github-actions[bot] commented 1 year ago

This issue has been automatically marked for closing, because it has not had activity in 30 days. It will be closed if no further activity occurs in 10 days.

github-actions[bot] commented 1 year ago

This issue was closed, because it has been already marked for 10 days with no activity.