I want to build a system, where a user scans a QR-code and Octoprints starts printing the model, that is linked to the QR code. Maybe you have an idea how to implement this? The goal is to have a spare-part station where an operator can print any pre-defined spare parts, that he currently needs.
The spare-part station currently consists of two RPI 4 connected via ethernet and a touchscreen. One RPI runs octoprint and is connected to the printer, the other one runs Raspbian and is connected to a touchscreen and shows octoprints web interface. At the moment, the operator needs to manually select the correct file to be printed which can lead to errors.
In the future, multiple spare part stations are to be built and the operator can randomly choose a free station. My idea to implement this is the following:
Every station connects to a NAS, where all the g-code files are. Every g-code file has a unique name (like 53fe72ca_dust_cover.gcode). The operator scans a QR-code with a handheld scanner which is connected to the RPI with touchscreen. This PRI runs a python program that reads the information from the QR-code (like 53fe72ca) and selects the appropriate file from the NAS and sends that file to octoprint. The user then only confirms this job on the touchscreen and printing begins.
Do you have any better ideas? Does this already exist? I want to make it as fool-proof as possible and easy to maintain.
How can I send a g-code file from a remote computer to octoprint and have the file automatically selected for printing?