# All customizations are documented in globals.cfg. Just copy a variable from # there into the section below, and change the value to meet your needs. [gcode_macro _km_options] # These are examples of some likely customizations: # Any sheets in the below list will be available with a configurable offset. #variable_bed_surfaces: ['smooth_1','texture_1'] # Length (in mm) of filament to load (bowden tubes will be longer). #variable_load_length: 90.0 # Hide the Octoprint LCD menu since I don't use it. variable_menu_show_octoprint: False # Customize the filament menus (up to 10 entries). variable_menu_temperature: [ {'name' : 'PLA', 'extruder' : 225.0, 'bed' : 60.0}, {'name' : 'PETG', 'extruder' : 230.0, 'bed' : 85.0}, {'name' : 'ABS', 'extruder' : 245.0, 'bed' : 110.0, 'chamber' : 60}] # Length of filament (in millimeters) to purge at print start. variable_start_purge_length: 30 # This value works for most setups. gcode: # This line is required by Klipper. # Any code you put here will run at klipper startup, after the initialization # for these macros. For example, you could uncomment the following line to # automatically adjust your bed surface offsets to account for any changes made # to your Z endstop or probe offset. # ADJUST_SURFACE_OFFSETS # BACKUP config to git.npau.ru [gcode_macro update_git] gcode: {% set message = params.MESSAGE|default() %} {% if message %} RUN_SHELL_COMMAND CMD=update_git_script_message PARAMS="'{params.MESSAGE}'" {% else %} RUN_SHELL_COMMAND CMD=update_git_script {% endif %} [gcode_shell_command update_git_script] command: bash -c "bash $HOME/klipper-backup-3dsprinter/script.sh" timeout: 90.0 verbose: True [gcode_shell_command update_git_script_message] command: bash -c "bash $HOME/klipper-backup-3dsprinter/script.sh $0" timeout: 90.0 verbose: True # This line includes all the standard macros. [include klipper-macros/*.cfg] # Uncomment to include features that require specific hardware support. # LCD menu support for features like bed surface selection and pause next layer. [include klipper-macros/optional/lcd_menus.cfg] # Optimized bed leveling [include klipper-macros/optional/bed_mesh.cfg] # The sections below here are required for the macros to work. If your config # already has some of these sections you should merge the duplicates into one # (or if they are identical just remove one of them). [idle_timeout] gcode: _KM_IDLE_TIMEOUT # This line must be in your idle_timeout section. [pause_resume] [respond] [save_variables] filename: ~/3dsprinter_data/variables.cfg # UPDATE THIS FOR YOUR PATH!!! [virtual_sdcard] path: ~/3dsprinter_data/gcodes on_error_gcode: CANCEL_PRINT [display_status]