-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Klipper version: v0.12.0-58-g25bc649c Moonraker version: v0.8.0-242-g54dc887 Fluidd version: v1.27.1
- Loading branch information
0 parents
commit ef5b2e3
Showing
37 changed files
with
17,161 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
[server] | ||
host = 0.0.0.0 | ||
port = 7125 | ||
max_upload_size = 1024 | ||
|
||
[file_manager] | ||
enable_object_processing = True | ||
|
||
[data_store] | ||
temperature_store_size = 600 | ||
gcode_store_size = 1000 | ||
|
||
[authorization] | ||
force_logins = True | ||
cors_domains = | ||
*.local | ||
*.lan | ||
*://app.fluidd.xyz | ||
trusted_clients = | ||
10.0.0.0/8 | ||
127.0.0.0/8 | ||
169.254.0.0/16 | ||
172.16.0.0/12 | ||
192.168.0.0/16 | ||
FE80::/10 | ||
::1/128 | ||
|
||
[octoprint_compat] | ||
|
||
[history] | ||
|
||
[announcements] | ||
subscriptions = | ||
fluidd | ||
|
||
[update_manager] | ||
enable_auto_refresh = True | ||
|
||
[update_manager client fluidd] | ||
type = web | ||
repo = fluidd-core/fluidd | ||
path = ~/fluidd | ||
|
||
[update_manager client z_calibration] | ||
type = git_repo | ||
path = ~/klipper_z_calibration | ||
origin = https://github.com/protoloft/klipper_z_calibration.git | ||
install_script = install.sh | ||
managed_services = klipper | ||
|
||
[update_manager Klipper-Adaptive-Meshing-Purging] | ||
type = git_repo | ||
channel = dev | ||
path = ~/Klipper-Adaptive-Meshing-Purging | ||
origin = https://github.com/kyleisah/Klipper-Adaptive-Meshing-Purging.git | ||
managed_services = klipper | ||
primary_branch = main | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/home/pi/Klipper-Adaptive-Meshing-Purging/Configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Below you can include specific configuration files depending on what you want KAMP to do: | ||
|
||
[include ./KAMP/Adaptive_Meshing.cfg] # Include to enable adaptive meshing configuration. | ||
[include ./KAMP/Line_Purge.cfg] # Include to enable adaptive line purging configuration. | ||
#[include ./KAMP/Voron_Purge.cfg] # Include to enable adaptive Voron logo purging configuration. | ||
[include ./KAMP/Smart_Park.cfg] # Include to enable the Smart Park function, which parks the printhead near the print area for final heating. | ||
|
||
[gcode_macro _KAMP_Settings] | ||
description: This macro contains all adjustable settings for KAMP | ||
|
||
# The following variables are settings for KAMP as a whole. | ||
variable_verbose_enable: True # Set to True to enable KAMP information output when running. This is useful for debugging. | ||
|
||
# The following variables are for adjusting adaptive mesh settings for KAMP. | ||
variable_mesh_margin: 0 # Expands the mesh size in millimeters if desired. Leave at 0 to disable. | ||
variable_fuzz_amount: 2 # Slightly randomizes mesh points to spread out wear from nozzle-based probes. Leave at 0 to disable. | ||
|
||
# The following variables are for those with a dockable probe like Klicky, Euclid, etc. # ---------------- Attach Macro | Detach Macro | ||
variable_probe_dock_enable: False # Set to True to enable the usage of a dockable probe. # --------------------------------------------- | ||
variable_attach_macro: 'Attach_Probe' # The macro that is used to attach the probe. # Klicky Probe: 'Attach_Probe' | 'Dock_Probe' | ||
variable_detach_macro: 'Dock_Probe' # The macro that is used to store the probe. # Euclid Probe: 'Deploy_Probe' | 'Stow_Probe' | ||
# Legacy Gcode: 'M401' | 'M402' | ||
|
||
# The following variables are for adjusting adaptive purge settings for KAMP. | ||
variable_purge_height: 0.8 # Z position of nozzle during purge, default is 0.8. | ||
variable_tip_distance: 4 # Distance between tip of filament and nozzle before purge. Should be similar to PRINT_END final retract amount. | ||
variable_purge_margin: 25 # Distance the purge will be in front of the print area, default is 10. | ||
variable_purge_amount: 30 # Amount of filament to be purged prior to printing. | ||
variable_flow_rate: 20 # Flow rate of purge in mm3/s. Default is 12. | ||
|
||
# The following variables are for adjusting the Smart Park feature for KAMP, which will park the printhead near the print area at a specified height. | ||
variable_smart_park_height: 5 # Z position for Smart Park, default is 10. | ||
|
||
gcode: # Gcode section left intentionally blank. Do not disturb. | ||
|
||
{action_respond_info(" Running the KAMP_Settings macro does nothing, it is only used for storing KAMP settings. ")} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[mcu adxl] | ||
serial: /dev/serial/by-id/usb-Klipper_rp2040_E6609CB2D38B4E2A-if00 | ||
|
||
[adxl345] | ||
cs_pin: adxl:gpio1 | ||
spi_bus: spi0a | ||
#axes_map: x,z,y | ||
|
||
[resonance_tester] | ||
accel_chip: adxl345 | ||
probe_points: | ||
150,150, 20 # middle of bed as an example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
#!/bin/bash | ||
|
||
####################################################################### | ||
## NOTE: This script originates from here but I tweaked the pull ## | ||
## command, changed default location for backup, and added a comment ## | ||
## for reference later. ## | ||
####################################################################### | ||
|
||
##################################################################### | ||
### Please set the paths accordingly. In case you don't have all ### | ||
### the listed folders, just keep that line commented out. ### | ||
##################################################################### | ||
### Path to your config folder you want to backup | ||
config_folder=~/printer_data/config | ||
|
||
# NOTE: The above should work for just about everyone, but a somewhat | ||
# recent update to moonraker changed paths, etc. You can run the | ||
# provided moonraker script 'data-path-fix.sh' to fix/update | ||
# older installs | ||
|
||
### Path to your Klipper folder, by default that is '~/klipper' | ||
klipper_folder=~/klipper | ||
|
||
### Path to your Moonraker folder, by default that is '~/moonraker' | ||
moonraker_folder=~/moonraker | ||
|
||
### Path to your Mainsail folder, by default that is '~/mainsail' | ||
#mainsail_folder=~/mainsail | ||
|
||
### Path to your Fluidd folder, by default that is '~/fluidd' | ||
fluidd_folder=~/fluidd | ||
|
||
### The branch of the repository that you want to save your config | ||
### By default that is 'main' | ||
branch=main | ||
|
||
### Set this to true if you want ONLY the history table to be dumped | ||
### from data.mdb. | ||
history_only=false | ||
|
||
##################################################################### | ||
##################################################################### | ||
|
||
|
||
##################################################################### | ||
################ !!! DO NOT EDIT BELOW THIS LINE !!! ################ | ||
##################################################################### | ||
grab_version(){ | ||
if [ ! -z "$klipper_folder" ]; then | ||
klipper_commit=$(git -C $klipper_folder describe --always --tags --long | awk '{gsub(/^ +| +$/,"")} {print $0}') | ||
m1="Klipper version: $klipper_commit" | ||
fi | ||
if [ ! -z "$moonraker_folder" ]; then | ||
moonraker_commit=$(git -C $moonraker_folder describe --always --tags --long | awk '{gsub(/^ +| +$/,"")} {print $0}') | ||
m2="Moonraker version: $moonraker_commit" | ||
fi | ||
if [ ! -z "$mainsail_folder" ]; then | ||
mainsail_ver=$(head -n 1 $mainsail_folder/.version) | ||
m3="Mainsail version: $mainsail_ver" | ||
fi | ||
if [ ! -z "$fluidd_folder" ]; then | ||
fluidd_ver=$(head -n 1 $fluidd_folder/.version) | ||
m4="Fluidd version: $fluidd_ver" | ||
fi | ||
} | ||
|
||
# Here we dump stats database to text format for backup, IF the right software is found | ||
# To RESTORE the database, use the following command: | ||
# mdb_load -f ~/printer_data/config/data.mdb.backup -s -T ~/printer_data/database/ | ||
|
||
if command -v /usr/bin/mdb_dump &> /dev/null | ||
then | ||
if $history_only | ||
then | ||
echo "mdb_dump found! Exporting history table from data.mdb to ~/printer_data/config/data.mdb.backup" | ||
mdb_dump -s history -n ~/printer_data/database/data.mdb -f ~/printer_data/config/data.mdb.backup | ||
else | ||
echo "mdb_dump found! Exporting ALL tables data.mdb to ~/printer_data/config/data.mdb.backup" | ||
mdb_dump -a -n ~/printer_data/database/data.mdb -f ~/printer_data/config/data.mdb.backup | ||
fi | ||
else | ||
echo "mdb_dump not found! Consider installing it via 'sudo apt install lmdb-utils' if you want to back up your statistics database!" | ||
fi | ||
|
||
# To fully automate this and not have to deal with auth issues, generate a legacy token on Github | ||
# then update the command below to use the token. Run the command in your base directory and it will | ||
# handle auth. This should just be executed in your shell and not committed to any files or | ||
# Github will revoke the token. =) | ||
# git remote set-url origin https://[email protected]/EricZimmerman/Voron24Configs.git/ | ||
# Note that that format is for changing things after the repository is in use, vs initially | ||
|
||
push_config(){ | ||
cd $config_folder | ||
git pull origin $branch --no-rebase | ||
git add . | ||
current_date=$(date +"%Y-%m-%d %T") | ||
git commit -m "Autocommit from $current_date" -m "$m1" -m "$m2" -m "$m3" -m "$m4" | ||
git push origin $branch | ||
} | ||
|
||
grab_version | ||
push_config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
[z_calibration] | ||
nozzle_xy_position: 252,308 | ||
# A X, Y coordinate (e.g. 100,100) of the nozzle, clicking on the Z endstop. | ||
switch_xy_position: 247,290 | ||
# A X, Y coordinate (e.g. 100,100) of the probe's switch body, clicking on | ||
# the Z endstop. | ||
bed_xy_position: 150,150 #default from relative_reference_index of bed_mesh | ||
# a X, Y coordinate (e.g. 100,100) where the print surface (e.g. the center | ||
# point) is probed. These coordinates will be adapted by the | ||
# probe's X and Y offsets. The default is the relative_reference_index | ||
# of the configured bed_mesh, if configured. It's possible to change the relative | ||
# reference index at runtime or use the GCode argument BED_POSITION of CALIBRATE_Z. | ||
switch_offset: 0.49 | ||
# The trigger point offset of the used mag-probe switch. | ||
# Larger values will position the nozzle closer to the bed. | ||
# This needs to be find out manually. More on this later | ||
# in this section.. | ||
#max_deviation: 3.0 | ||
# The maximum allowed deviation of the calculated offset. | ||
# If the offset exceeds this value, it will stop! | ||
# The default is 1.0 mm. | ||
#samples: default from "probe:samples" section | ||
# The number of times to probe each point. The probed z-values | ||
# will be averaged. The default is from the probe's configuration. | ||
#samples_tolerance: default from "probe:samples_tolerance" section | ||
# The maximum Z distance (in mm) that a sample may differ from other | ||
# samples. The default is from the probe's configuration. | ||
#samples_tolerance_retries: default from "probe:samples_tolerance_retries" section | ||
# The number of times to retry if a sample is found that exceeds | ||
# samples_tolerance. The default is from the probe's configuration. | ||
#samples_result: default from "probe:samples_result" section | ||
# The calculation method when sampling more than once - either | ||
# "median" or "average". The default is from the probe's configuration. | ||
#clearance: 2 * z_offset from the "probe:z_offset" section | ||
# The distance in mm to move up before moving to the next | ||
# position. The default is two times the z_offset from the probe's | ||
# configuration. | ||
#position_min: default from "stepper_z:position_min" section. | ||
# Minimum valid distance (in mm) used for probing move. The | ||
# default is from the Z rail configuration. | ||
speed: 50 | ||
# The moving speed in X and Y. The default is 50 mm/s. | ||
#lift_speed: default from "probe:lift_speed" section | ||
# Speed (in mm/s) of the Z axis when lifting the probe between | ||
# samples and clearance moves. The default is from the probe's | ||
# configuration. | ||
#probing_speed: default from "stepper_z:homing_speed" section. | ||
# The fast probing speed (in mm/s) used, when probing_first_fast | ||
# is activated. The default is from the Z rail configuration. | ||
#probing_second_speed: default from "stepper_z:second_homing_speed" section. | ||
# The slower speed (in mm/s) for probing the recorded samples. | ||
# The default is second_homing_speed of the Z rail configuration. | ||
#probing_retract_dist: default from "stepper_z:homing_retract_dist" section. | ||
# Distance to retract (in mm) before probing the next sample. | ||
# The default is homing_retract_dist from the Z rail configuration. | ||
probing_first_fast: false | ||
# If true, the first probing is done faster by the probing speed. | ||
# This is to get faster down and the result is not recorded as a | ||
# probing sample. The default is false. | ||
start_gcode: ATTACH_PROBE | ||
# A list of G-Code commands to execute prior to each calibration command. | ||
# See docs/Command_Templates.md for G-Code format. This can be used to | ||
# attach the probe. | ||
#before_switch_gcode: | ||
# A list of G-Code commands to execute prior to each probing on the | ||
# mag-probe. See docs/Command_Templates.md for G-Code format. This can be | ||
# used to attach the probe after probing on the nozzle and before probing | ||
# on the mag-probe. | ||
end_gcode: DOCK_PROBE | ||
# A list of G-Code commands to execute after each calibration command. | ||
# See docs/Command_Templates.md for G-Code format. This can be used to | ||
# detach the probe afterwards. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
[virtual_sdcard] | ||
path: /home/pi/gcode_files | ||
|
||
[pause_resume] | ||
|
||
[display_status] | ||
|
||
[gcode_macro CANCEL_PRINT] | ||
description: Cancel the actual running print | ||
rename_existing: CANCEL_PRINT_BASE | ||
gcode: | ||
TURN_OFF_HEATERS | ||
CANCEL_PRINT_BASE | ||
|
||
[gcode_macro PAUSE] | ||
description: Pause the actual running print | ||
rename_existing: PAUSE_BASE | ||
# change this if you need more or less extrusion | ||
variable_extrude: 1.0 | ||
gcode: | ||
##### read E from pause macro ##### | ||
{% set E = printer["gcode_macro PAUSE"].extrude|float %} | ||
##### set park positon for x and y ##### | ||
# default is your max posion from your printer.cfg | ||
{% set x_park = printer.toolhead.axis_maximum.x|float - 5.0 %} | ||
{% set y_park = printer.toolhead.axis_maximum.y|float - 5.0 %} | ||
##### calculate save lift position ##### | ||
{% set max_z = printer.toolhead.axis_maximum.z|float %} | ||
{% set act_z = printer.toolhead.position.z|float %} | ||
{% if act_z < (max_z - 2.0) %} | ||
{% set z_safe = 2.0 %} | ||
{% else %} | ||
{% set z_safe = max_z - act_z %} | ||
{% endif %} | ||
##### end of definitions ##### | ||
PAUSE_BASE | ||
G91 | ||
{% if printer.extruder.can_extrude|lower == 'true' %} | ||
G1 E-{E} F2100 | ||
{% else %} | ||
{action_respond_info("Extruder not hot enough")} | ||
{% endif %} | ||
{% if "xyz" in printer.toolhead.homed_axes %} | ||
G1 Z{z_safe} F900 | ||
G90 | ||
G1 X{x_park} Y{y_park} F6000 | ||
{% else %} | ||
{action_respond_info("Printer not homed")} | ||
{% endif %} | ||
|
||
[gcode_macro RESUME] | ||
description: Resume the actual running print | ||
rename_existing: RESUME_BASE | ||
gcode: | ||
##### read E from pause macro ##### | ||
{% set E = printer["gcode_macro PAUSE"].extrude|float %} | ||
#### get VELOCITY parameter if specified #### | ||
{% if 'VELOCITY' in params|upper %} | ||
{% set get_params = ('VELOCITY=' + params.VELOCITY) %} | ||
{%else %} | ||
{% set get_params = "" %} | ||
{% endif %} | ||
##### end of definitions ##### | ||
{% if printer.extruder.can_extrude|lower == 'true' %} | ||
G91 | ||
G1 E{E} F2100 | ||
{% else %} | ||
{action_respond_info("Extruder not hot enough")} | ||
{% endif %} | ||
RESUME_BASE {get_params} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This macro was provided by discord user Garrettwp to whom i give my thanks for sharing it with me. | ||
# I have tweaked it a lot. | ||
# They are based on the great Annex magprobe dockable probe macros "#Originally developed by Mental, | ||
# modified for better use on K-series printers by RyanG and Trails", kudos to them. | ||
# That macro as since evolved into a klipper plugin that currently is pending inclusion in klipper, | ||
# more information here, https://github.com/Annex-Engineering/Quickdraw_Probe/tree/main/Klipper_Macros | ||
# User richardjm revised the macro variables and added some functions, thanks a lot | ||
# by standing on the shoulders of giants, lets see if we can see further | ||
# | ||
# the current home for this version is https://github.com/jlas1/Klicky-Probe | ||
|
||
################### | ||
# Bed mesh calibrate | ||
[gcode_macro BED_MESH_CALIBRATE] | ||
rename_existing: _BED_MESH_CALIBRATE | ||
description: Perform Mesh Bed Leveling with klicky automount | ||
gcode: | ||
{% set V = printer["gcode_macro _User_Variables"].verbose %} | ||
{% if V %} | ||
{ action_respond_info("Bed Mesh Calibrate") } | ||
{% endif %} | ||
|
||
_CheckProbe action=query | ||
G90 | ||
Attach_Probe | ||
_KLICKY_STATUS_MESHING | ||
|
||
_BED_MESH_CALIBRATE {% for p in params | ||
%}{'%s=%s ' % (p, params[p])}{% | ||
endfor %} | ||
|
||
Dock_Probe |
Oops, something went wrong.