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

Implement Klipper Upload #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

GerritPlehn
Copy link

@GerritPlehn GerritPlehn commented Jun 8, 2024

Hey! I implemented a basic upload for Klipper printers as mentioned in #2.

  • Refactored printer "types" into their own sub-classes
  • Classes need to provide their own implementations for connecting, disconnecting and uploading
  • added configuration key type, possible values being Bambu and Klipper

Since I don't own a Bambu printer, someone would need to test if I didn't break the Bambu upload while refactoring.

I threw the Printer subclasses into the same file for now. Depending on how many printers should be implemented in the future, we should probably move them to their own files.

Open for any feedback of course.
Happy Printing!

@GerritPlehn
Copy link
Author

Didn't see #4 when I hacked this together. Since we had a very similar approach, I'd suggest merging it before this one. Then I can refactor this PR to fit the other PR.

@d3vyce
Copy link
Contributor

d3vyce commented Jun 9, 2024

I've just added a test in the connect function on my branch #4, a bit like you did.
If you think something is missing, don't hesitate, just to have a clean model before adding more printer types.

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

Successfully merging this pull request may close these issues.

2 participants