Klipper /
MultipleKlipperInstancesInOneRepository
update:
sigh, can't really do this. was a good (or bad?) idea.
The basic concept here is: set the startup in
/etc/systemd/system/klipper.service
to point to a system-uniquely named printer.cfg file instead of the generic printer.cfg file. Thus, instead of
Environment=KLIPPER_CONFIG=/home/pi/klipper_config/printer.cfg
you would, for example, use
Environment=KLIPPER_CONFIG=/home/pi/klipper_config/printer-elf.cfg
This single-line change will allow for a unified repository, with unified macros and anything else that you want to have common.
the newest version of the kliper install changes this; the environment line in the klipper.service file
EnvironmentFile=/home/pi/printer_data/systemd/klipper.env
so the strategy changes. for example:
- normal install of mainsail via raspberry pi installer
- in
printer-data/systemd/klipper.env
replaceprinter.cfg
withstumpy/printer.cfg
- move
printer-data/config
out of the way, rename toconfig.orig
perhaps - check out the klipper-farm repo, which needs to contain a subdir called
stumpy
- reboot, and pray!