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

Unable to upload a gcode file and start printing #12

Open
jungle-gecko opened this issue Mar 7, 2024 · 2 comments
Open

Unable to upload a gcode file and start printing #12

jungle-gecko opened this issue Mar 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@jungle-gecko
Copy link

I have been trying to automate printing of an already sliced file (sliced with Bambu studio and exported as gcode).

I tried to leverage https://github.com/dougbrion/OctoRest in order to reuse API code.
My code is therefore very simple:

    # Upload the file to the printer via Octoprint
    octoprint_client = OctoRest(url=OCTOPRINT_URI, apikey=API_KEY)
    response = octoprint_client.upload(
        file=f'/tmp/plate.gcode}',
        location='sdcard',
        print=True
    )

Octoprint receives the command, displaying a message saying "Successfully streamed file to printer".
However, I never see the file on the printer SD Card (seems to be only stored on Octoprint memory).
Unsurprisingly, the printer never starts printing.

Any idea where to start investigating?

@jneilliii
Copy link
Owner

The plugin actually only lists 3mf files from the bambu printer. If you want to go your approach I recommend exporting as 3mf and try using that in your api upload command.

@jungle-gecko
Copy link
Author

Thanks for the fast feedback!
Using 3mf files instead of gcode files will require some evolutions on the provider pipeline.
Let's see what I can do.

@jneilliii jneilliii added the enhancement New feature or request label Mar 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants