From d913906b9c6333c41d7bb0bb7a1d405f8e32d45e Mon Sep 17 00:00:00 2001 From: Hendrie Bosch Date: Mon, 13 Nov 2023 14:40:51 +0100 Subject: [PATCH] Upload files to "klipper/DNV-TPU-Ender3/klipper_config" --- .../klipper_config/.moonraker.conf.bkp | 66 ++++++++++++++++++ .../klipper_config/bed_mesh_org.cfg | 69 +++++++++++++++++++ .../klipper_config/jschuh_macros.cfg | 63 +++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 klipper/DNV-TPU-Ender3/klipper_config/.moonraker.conf.bkp create mode 100644 klipper/DNV-TPU-Ender3/klipper_config/bed_mesh_org.cfg create mode 100644 klipper/DNV-TPU-Ender3/klipper_config/jschuh_macros.cfg diff --git a/klipper/DNV-TPU-Ender3/klipper_config/.moonraker.conf.bkp b/klipper/DNV-TPU-Ender3/klipper_config/.moonraker.conf.bkp new file mode 100644 index 0000000..6642313 --- /dev/null +++ b/klipper/DNV-TPU-Ender3/klipper_config/.moonraker.conf.bkp @@ -0,0 +1,66 @@ +[server] +host = 127.0.0.1 +port = 7125 +klippy_uds_address = /tmp/klippy_uds + +[authorization] +trusted_clients = + 127.0.0.0/8 + 169.254.0.0/16 + FE80::/10 + ::1/128 +cors_domains = + *.lan + *.local + *.fritz.box + *://my.mainsail.xyz + *://app.fluidd.xyz + *:7136 + +[file_manager] +enable_object_processing = True + +[octoprint_compat] + +[history] + +[update_manager] +channel = dev + +[update_manager mainsail] +type = web +channel = beta +repo = mainsail-crew/mainsail +path = ~/mainsail +refresh_interval = 24 + +[update_manager fluidd] +type = web +channel = beta +repo = fluidd-core/fluidd +path = ~/fluidd +refresh_interval = 24 + +[update_manager KlipperScreen] +type = git_repo +path = /home/pi/KlipperScreen +origin = https://github.com/jordanruthe/KlipperScreen.git +env = /home/pi/.KlipperScreen-env/bin/python +requirements = scripts/KlipperScreen-requirements.txt +install_script = scripts/KlipperScreen-install.sh + +[update_manager pgcode] +type = git_repo +primary_branch = main +origin = https://github.com/Kragrathea/pgcode.git +path = ~/pgcode +is_system_service = False + +[update_manager moonraker-telegram-bot] +type = git_repo +path = ~/moonraker-telegram-bot +origin = https://github.com/nlef/moonraker-telegram-bot.git +env = ~/moonraker-telegram-bot-env/bin/python +requirements = scripts/requirements.txt +install_script = scripts/install.sh + diff --git a/klipper/DNV-TPU-Ender3/klipper_config/bed_mesh_org.cfg b/klipper/DNV-TPU-Ender3/klipper_config/bed_mesh_org.cfg new file mode 100644 index 0000000..6818608 --- /dev/null +++ b/klipper/DNV-TPU-Ender3/klipper_config/bed_mesh_org.cfg @@ -0,0 +1,69 @@ +# Copyright (C) 2022 Justin Schuh +# +# This file may be distributed under the terms of the GNU GPLv3 license. +# +# Credit to original source: +# https://gist.github.com/ChipCE/95fdbd3c2f3a064397f9610f915f7d02 + +[gcode_macro bed_mesh_calibrate] +rename_existing: _KM_BED_MESH_CALIBRATE_BASE +description: Wraps BED_MESH_CALIBRATE, scaling probe count to specified area. + Usage: See Klipper documentation. +gcode: + {% set km = printer["gcode_macro _km_globals"] %} + {% set probe_mesh_padding = km.probe_mesh_padding %} + {% set probe_min_count = km.probe_min_count %} + {% set probe_count_scale = km.probe_count_scale %} + {% set bed_mesh = printer.configfile.config.bed_mesh %} + + # don't have the math functions available to work on a delta bed. + {%if "mesh_radius" not in bed_mesh %} + {% set safe_min_x = bed_mesh.mesh_min.split(",")[0]|float %} + {% set safe_min_y = bed_mesh.mesh_min.split(",")[1]|float %} + {% set safe_max_x = bed_mesh.mesh_max.split(",")[0]|float %} + {% set safe_max_y = bed_mesh.mesh_max.split(",")[1]|float %} + + {% if "MESH_MIN" in params %} + {% set mesh_min_x = (params.MESH_MIN.split(",")[0]|float - + probe_mesh_padding, safe_min_x)|max %} + {% set mesh_min_y = (params.MESH_MIN.split(",")[1]|float - + probe_mesh_padding, safe_min_y)|max %} + {% else %} + {% set mesh_min_x = safe_min_x %} + {% set mesh_min_y = safe_min_y %} + {% endif %} + {% if "MESH_MAX" in params %} + {% set mesh_max_x = (params.MESH_MAX.split(",")[0]|float + + probe_mesh_padding, safe_max_x)|min %} + {% set mesh_max_y = (params.MESH_MAX.split(",")[1]|float + + probe_mesh_padding, safe_max_y)|min %} + {% else %} + {% set mesh_max_x = safe_max_x %} + {% set mesh_max_y = safe_max_y %} + {% endif %} + + {% set max_x_probes = (params.PROBE_COUNT | + default(bed_mesh.probe_count)).split(",")[0]|int %} + {% set max_y_probes = (params.PROBE_COUNT | + default(bed_mesh.probe_count)).split(",")[1]|int %} + + {% set x_probes = (max_x_probes * (mesh_max_x - mesh_min_x) / + (safe_max_x - safe_min_x) * probe_count_scale) + | round(0) | int %} + {% set x_probes = ((x_probes, probe_min_count)|max, max_x_probes)|min %} + + {% set y_probes = (max_y_probes * (mesh_max_y - mesh_min_y ) / + (safe_max_y - safe_min_y) * probe_count_scale ) + | round(0) | int %} + {% set y_probes = ((y_probes, probe_min_count)|max, max_y_probes)|min %} + + {% set dummy = params.__setitem__("MESH_MIN", mesh_min_x~","~mesh_min_y) %} + {% set dummy = params.__setitem__("MESH_MAX", mesh_max_x~","~mesh_max_y) %} + {% set dummy = params.__setitem__("PROBE_COUNT", x_probes~","~y_probes) %} + {% endif %} + _km_bed_mesh_calibrate_base{%for k in params%}{ + ' '~k~'="'~params[k]~'"'}{%endfor%} + +[gcode_macro g29] +gcode: + BED_MESH_CALIBRATE \ No newline at end of file diff --git a/klipper/DNV-TPU-Ender3/klipper_config/jschuh_macros.cfg b/klipper/DNV-TPU-Ender3/klipper_config/jschuh_macros.cfg new file mode 100644 index 0000000..bf37bbc --- /dev/null +++ b/klipper/DNV-TPU-Ender3/klipper_config/jschuh_macros.cfg @@ -0,0 +1,63 @@ +# 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'] +variable_print_min: (12, 30) # example: (0, 0) +variable_start_bed_heat_overshoot: 0.0 +variable_park_x: 5.0 +variable_park_y: 5.0 +# Length (in mm) of filament to load (bowden tubes will be longer). +variable_load_length: 50.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' : 'TPU', 'extruder' : 220.0, 'bed' : 45.0}, + {'name' : 'PLA', 'extruder' : 200.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 + + M118 Einde gcode_macro _km_options +# 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. + M118 Einde idle_timeout + +[pause_resume] + +[respond] + +[save_variables] +filename: ~/printer_data/variables.cfg # UPDATE THIS FOR YOUR PATH!!! + +#[virtual_sdcard] +#path: ~/gcode_files # UPDATE THIS FOR YOUR PATH!!! + +[display_status] + +# Uncomment the sections below if Fluidd complains (because it's confused). +[gcode_macro CANCEL_PRINT] +rename_existing: CANCEL_PRINT_FAKE_BASE +gcode: CANCEL_PRINT_FAKE_BASE {rawparams}