Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add printer / print settings profile to .gcode header comments #5148

Closed
smartin015 opened this issue Oct 15, 2022 · 4 comments
Closed

Add printer / print settings profile to .gcode header comments #5148

smartin015 opened this issue Oct 15, 2022 · 4 comments

Comments

@smartin015
Copy link

Is your feature request related to a problem? Please describe.

I'm the maintainer of the Continuous Print Queue plugin for Octoprint, which has features requiring an understanding of the printer for which a gcode file is sliced (see docs). In particular, this is necessary for cluster/network printing when the type of printer on the network varies.

I'm intend to add profile inference for the most popular slicers, but Slic3r has no way to examine the gcode and infer the printer to print the file with. I can contribute a PR to add this as a file comment (e.g. ; printer_profile = "CR-20") but I wanted to file an issue first in case discussion was needed before I got started.

Describe the solution you'd like

A string like ; printer_profile = "CR-20" is present in gcode, matching the name of the printer profile being used to slice the file.

Describe alternatives you've considered

Infer a compatible printer name from implicit details (e.g. build volume) but that's very brittle.

Additional context

I made a similar request to Cura: Ultimaker/Cura#14283

However, I'm not familiar with perl scripts and need more pointers if I were to help contribute something here.

@smartin015
Copy link
Author

Hey, could I get a weigh-in on making this GCODE header addition so folks can identify the printer targeted by a gcode file? I intend to learn perl for advent of code this year, would be great to put that to use here :)

@smartin015
Copy link
Author

Friendly ping?

@xoan
Copy link
Member

xoan commented Nov 27, 2022

There is a "Notes" field in Printer Settings where anyone can put anything you want, like:

; printer_profile = "Awesome RepRap Printer"

I think It should work in the manner you want.

@smartin015
Copy link
Author

Ok, thanks - I suppose a little manual configuration is fine for the (probably small) subset of folks who use CPQ with slic3r gcode flies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants