mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-21 23:03:35 +05:00
script: rework klipper service setup
This commit is contained in:
15
resources/klipper.service
Normal file
15
resources/klipper.service
Normal file
@@ -0,0 +1,15 @@
|
||||
#Systemd service file for klipper
|
||||
[Unit]
|
||||
Description=Starts klipper instance %INST% on startup
|
||||
After=network.target
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=%USER%
|
||||
RemainAfterExit=yes
|
||||
ExecStart=%KL_ENV%/bin/python %KL_DIR%/klippy/klippy.py %P_CFG% -I %P_TMP% -l %KL_LOG% -a %KL_UDS%
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
14
resources/printer.cfg
Normal file
14
resources/printer.cfg
Normal file
@@ -0,0 +1,14 @@
|
||||
[mcu]
|
||||
serial: /dev/serial/by-id/<your-mcu-id>
|
||||
|
||||
[pause_resume]
|
||||
|
||||
[display_status]
|
||||
|
||||
[virtual_sdcard]
|
||||
path: ~/gcode_files
|
||||
|
||||
[printer]
|
||||
kinematics: none
|
||||
max_velocity: 1000
|
||||
max_accel: 1000
|
||||
Reference in New Issue
Block a user