Code Monkey home page Code Monkey logo

klipper-better-speed-adjust's Introduction

Better speed adjustments for Klipper

Individually adjust speeds for walls, infill, support and more!

Currently works with Cura, please add support for other slicers!

Supported line types:

  • infill (TYPE_FILL)
  • skin (TYPE_SKIN) (first/last few layers)
  • skirt (TYPE_SKIRT) (also brim/raft)
  • support (TYPE_SUPPORT)
  • wall_inner (TYPE_WALL_INNER)
  • wall_outer (TYPE_WALL_OUTER)

If you find more, please add them or open an issue!
Any unknown line types should only result in a warning Unknown command.

How it works

This script utilizes the ;TYPE: comment by Cura. The comments are replaced with TYPE_ to make them a macro call.

The macro SET_SPEEDS is called by the user to set the speed for each line type. While printing, the TYPE_ macros set M220 to the corresponding speed.

IMPORTANT: once you set one of the speeds, DO NOT USE M220, neither the speed slider! This macro will overwrite it.

Usage

UI

The macro UI of your klipper/moonraker frontend is probably the most intuitive option.
Speeds are in percent!

Tip

Hide the TYPE_ macros to prevent clutter.

in terminal

; to get current speeds
SET_SPEEDS

; to set speeds, e.g. 100% for everything
SET_SPEEDS INFILL=100 SKIN=100 SKIRT=100 SUPPORT=100 WALL_INNER=100 WALL_OUTER=100

; to disable custom speed control and use M220 / speed slider again
DISABLE_CUSTOM_SPEEDS

Installation

Install gcode macros

Include betterspeedadjust.cfg in your printer config. There are multiple ways, I have the file in macros/ and include it with [include macros/*.cfg].

If you don’t already know what to do, download betterspeedadjust.cfg, upload it to your printer’s config directory and include it by putting [include betterspeedadjust.cfg] into your printer.cfg.

Configure Cura

In Cura, go to Extensions > Post Processing > Modify G-Code and add a new script Search and Replace:

Search: ;TYPE:
Replace: TYPE_

Add two more after the one above (IMPORTANT):

Search: TYPE_WALL-INNER
Replace: TYPE_WALL_INNER

and

Search: TYPE_WALL-OUTER
Replace: TYPE_WALL_OUTER

Leave regex unchecked for all three.

klipper-better-speed-adjust's People

Contributors

tippfehlr avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.