octoprint-klipper-docker/start.sh

11 lines
358 B
Bash
Raw Normal View History

2022-04-07 15:47:54 +00:00
#Copy over Initial Printer Config
cp -n /printer.cfg /home/octoprint/.octoprint/printer.cfg
2022-04-07 15:47:54 +00:00
#Start Unit
unitd --no-daemon --control unix:/var/run/control-unit.sock &
#Apply Primary Full Configuration
curl -X PUT --data-binary @/unitconfig.json --unix-socket /var/run/control-unit.sock http://localhost/config
#Start OctoPrint and Klipper
python3 /start.py