Automatic commit of config from 2025-03-15
This commit is contained in:
parent
46c5a563c5
commit
648931293f
2 changed files with 29 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#cd $HOME/printer_data/config
|
pushd $HOME/printer_data/config
|
||||||
if [ -n "$(git status --porcelain)" ]; then
|
if [ -n "$(git status --porcelain)" ]; then
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Automatic commit of config from $(date -I)"
|
git commit -m "Automatic commit of config from $(date -I)"
|
||||||
|
@ -8,3 +8,4 @@ if [ -n "$(git status --porcelain)" ]; then
|
||||||
else
|
else
|
||||||
Nothing new to save to git
|
Nothing new to save to git
|
||||||
fi
|
fi
|
||||||
|
popd
|
||||||
|
|
|
@ -282,3 +282,30 @@ verbose: True
|
||||||
description: Backs up config directory GitHub
|
description: Backs up config directory GitHub
|
||||||
gcode:
|
gcode:
|
||||||
RUN_SHELL_COMMAND CMD=backup_cfg
|
RUN_SHELL_COMMAND CMD=backup_cfg
|
||||||
|
|
||||||
|
; For KlipperScreen
|
||||||
|
[gcode_macro LOAD_FILAMENT]
|
||||||
|
variable_load_distance: 50
|
||||||
|
variable_purge_distance: 25
|
||||||
|
gcode:
|
||||||
|
{% set speed = params.SPEED|default(300) %}
|
||||||
|
{% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity * 60 %}
|
||||||
|
SAVE_GCODE_STATE NAME=load_state
|
||||||
|
G91
|
||||||
|
G92 E0
|
||||||
|
G1 E{load_distance} F{max_velocity} # fast-load
|
||||||
|
G1 E{purge_distance} F{speed} # purge
|
||||||
|
RESTORE_GCODE_STATE NAME=load_state
|
||||||
|
|
||||||
|
[gcode_macro UNLOAD_FILAMENT]
|
||||||
|
variable_unload_distance: 50
|
||||||
|
variable_purge_distance: 25
|
||||||
|
gcode:
|
||||||
|
{% set speed = params.SPEED|default(300) %}
|
||||||
|
{% set max_velocity = printer.configfile.settings['extruder'].max_extrude_only_velocity * 60 %}
|
||||||
|
SAVE_GCODE_STATE NAME=unload_state
|
||||||
|
G91
|
||||||
|
G92 E0
|
||||||
|
G1 E{purge_distance} F{speed} # purge
|
||||||
|
G1 E-{unload_distance} F{max_velocity} # fast-unload
|
||||||
|
RESTORE_GCODE_STATE NAME=unload_state
|
Loading…
Add table
Reference in a new issue