Create a command that overrides Firmware_restart

Basic Information:

Printer Model: Ender 3
MCU / Printerboard: BTT Pi
klippy.log: N/A

Describe your issue:

This is less of an issue than a general question. Has anyone ever tried to override any of the “Human readable” commands that klipper ships with? I am asking because I would like to add a script that runs before each run of FIRMWARE_RESTART. Obviously, I don’t want this to prevent running firmware restart but I want to be able to upload my config files to a github repo everytime I save a config file and restart the firmware. I feel like this would be immensly helpful to those that might be forgetful about creating backups.

I have created a backup script here: useful_bits/Linux/backup_klipper.sh at main · Sineos/useful_bits · GitHub

It uses OS level functions to determine if files have changed and offers 3 methods to backup, including pushing to a git repo.
No printer.cfg or macro shenanigans needed.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.