-
Notifications
You must be signed in to change notification settings - Fork 0
/
ercf_klipperscreen.conf
519 lines (486 loc) · 17.6 KB
/
ercf_klipperscreen.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
# ERCF Happy Hare KlipperScreen menus. Don't remove this line, installer needs it!
#
# Copyright (C) 2023 moggieuk#6538 (discord)
#
# Menu options:
# name, icon, panel, method, confirm, enable, params, style, NEW: show_disabled, refresh_on
#
# Additional functionality added with this ERCF Happy Hare fork:
#
# Options:
# show_disabled - True will cause 'enable' logic to show button disabled rather than not display it
# refresh_on - List of printer variables to monitor real time for 'show_disabled'
#
# Menu name:
# can specify multiple roots, e.g. [menu __main,__print mymenu]
# will duplicate on both __main and __print menus
# (no space after comman)
#
[menu __main,__print ercf]
name: {{ gettext('Manage ERCF') }}
icon: ercf_carrot
panel: ercf_main
enable: {{ printer.ercf is defined and not klipperscreen.side_ercf_shortcut }}
[menu __main,__print ercf filament_editor]
name: {{ gettext('Filaments...') }}
icon: ercf_filaments
panel: ercf_filaments
[menu __main,__print ercf ttg]
name: {{ gettext('Manage TTG...') }}
icon: ercf_ttg_map
panel: ercf_toolmap
[menu __main,__print ercf preload_gates]
name: {{ gettext('Preload Gate...') }}
icon: ercf_reset
enable: {{ printer.idle_timeout.state != "Printing" }}
show_disabled: True
refresh_on: printer.idle_timeout.state
# Generated menus for each tool/gate...
[menu __main,__print ercf preload_gates PG0]
name: {{ gettext('Preload Gate #0') }}
icon: ercf_reset
method: printer.gcode.script
params: { "script":"ERCF_PRELOAD GATE=0" }
enable: {{ printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.action
[menu __main,__print ercf preload_gates PG1]
name: {{ gettext('Preload Gate #1') }}
icon: ercf_reset
method: printer.gcode.script
params: { "script":"ERCF_PRELOAD GATE=1" }
enable: {{ printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.action
[menu __main,__print ercf preload_gates PG2]
name: {{ gettext('Preload Gate #2') }}
icon: ercf_reset
method: printer.gcode.script
params: { "script":"ERCF_PRELOAD GATE=2" }
enable: {{ printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.action
[menu __main,__print ercf preload_gates PG3]
name: {{ gettext('Preload Gate #3') }}
icon: ercf_reset
method: printer.gcode.script
params: { "script":"ERCF_PRELOAD GATE=3" }
enable: {{ printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.action
[menu __main,__print ercf preload_gates PG4]
name: {{ gettext('Preload Gate #4') }}
icon: ercf_reset
method: printer.gcode.script
params: { "script":"ERCF_PRELOAD GATE=4" }
enable: {{ printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.action
[menu __main,__print ercf preload_gates PG5]
name: {{ gettext('Preload Gate #5') }}
icon: ercf_reset
method: printer.gcode.script
params: { "script":"ERCF_PRELOAD GATE=5" }
enable: {{ printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.action
[menu __main,__print ercf check_gates]
name: {{ gettext('Check Gate...') }}
icon: ercf_checkgates
enable: {{ printer.idle_timeout.state != "Printing" }}
show_disabled: True
refresh_on: printer.idle_timeout.state
# Generated menus for each tool/gate...
[menu __main,__print ercf check_gates CG0]
name: {{ gettext('Check Gate #0') }}
icon: ercf_checkgate0
method: printer.gcode.script
params: { "script":"ERCF_CHECK_GATES GATE=0 QUIET=1" }
enable: {{ printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.action
[menu __main,__print ercf check_gates CG1]
name: {{ gettext('Check Gate #1') }}
icon: ercf_checkgate1
method: printer.gcode.script
params: { "script":"ERCF_CHECK_GATES GATE=1 QUIET=1" }
enable: {{ printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.action
[menu __main,__print ercf check_gates CG2]
name: {{ gettext('Check Gate #2') }}
icon: ercf_checkgate2
method: printer.gcode.script
params: { "script":"ERCF_CHECK_GATES GATE=2 QUIET=1" }
enable: {{ printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.action
[menu __main,__print ercf check_gates CG3]
name: {{ gettext('Check Gate #3') }}
icon: ercf_checkgate3
method: printer.gcode.script
params: { "script":"ERCF_CHECK_GATES GATE=3 QUIET=1" }
enable: {{ printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.action
[menu __main,__print ercf check_gates CG4]
name: {{ gettext('Check Gate #4') }}
icon: ercf_checkgate4
method: printer.gcode.script
params: { "script":"ERCF_CHECK_GATES GATE=4 QUIET=1" }
enable: {{ printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.action
[menu __main,__print ercf check_gates CG5]
name: {{ gettext('Check Gate #5') }}
icon: ercf_checkgate5
method: printer.gcode.script
params: { "script":"ERCF_CHECK_GATES GATE=5 QUIET=1" }
enable: {{ printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.action
[menu __main,__print ercf tools]
name: {{ gettext('Load Tool...') }}
icon: extruder
enable: {{ printer.idle_timeout.state != "Printing" }}
show_disabled: True
refresh_on: printer.idle_timeout.state
# Generated menus for each tool/gate...
[menu __main,__print ercf tools T0]
name: {{ gettext('T0') }}
icon: ercf_t0
method: printer.gcode.script
params: { "script":"ERCF_CHANGE_TOOL TOOL=0 QUIET=1" }
enable: {{ (printer.ercf.tool != 0 or (printer.ercf.tool == 0 and printer.ercf.filament != "Loaded")) and printer.ercf.gate_status[0] != 0 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.tool, printer.ercf.gate_status, printer.ercf.filament, printer.ercf.action
[menu __main,__print ercf tools T1]
name: {{ gettext('T1') }}
icon: ercf_t1
method: printer.gcode.script
params: { "script":"ERCF_CHANGE_TOOL TOOL=1 QUIET=1" }
enable: {{ (printer.ercf.tool != 1 or (printer.ercf.tool == 1 and printer.ercf.filament != "Loaded")) and printer.ercf.gate_status[1] != 0 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.tool, printer.ercf.gate_status, printer.ercf.filament, printer.ercf.action
[menu __main,__print ercf tools T2]
name: {{ gettext('T2') }}
icon: ercf_t2
method: printer.gcode.script
params: { "script":"ERCF_CHANGE_TOOL TOOL=2 QUIET=1" }
enable: {{ (printer.ercf.tool != 2 or (printer.ercf.tool == 2 and printer.ercf.filament != "Loaded")) and printer.ercf.gate_status[2] != 0 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.tool, printer.ercf.gate_status, printer.ercf.filament, printer.ercf.action
[menu __main,__print ercf tools T3]
name: {{ gettext('T3') }}
icon: ercf_t3
method: printer.gcode.script
params: { "script":"ERCF_CHANGE_TOOL TOOL=3 QUIET=1" }
enable: {{ (printer.ercf.tool != 3 or (printer.ercf.tool == 3 and printer.ercf.filament != "Loaded")) and printer.ercf.gate_status[3] != 0 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.tool, printer.ercf.gate_status, printer.ercf.filament, printer.ercf.action
[menu __main,__print ercf tools T4]
name: {{ gettext('T4') }}
icon: ercf_t4
method: printer.gcode.script
params: { "script":"ERCF_CHANGE_TOOL TOOL=4 QUIET=1" }
enable: {{ (printer.ercf.tool != 4 or (printer.ercf.tool == 4 and printer.ercf.filament != "Loaded")) and printer.ercf.gate_status[4] != 0 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.tool, printer.ercf.gate_status, printer.ercf.filament, printer.ercf.action
[menu __main,__print ercf tools T5]
name: {{ gettext('T5') }}
icon: ercf_t5
method: printer.gcode.script
params: { "script":"ERCF_CHANGE_TOOL TOOL=5 QUIET=1" }
enable: {{ (printer.ercf.tool != 5 or (printer.ercf.tool == 5 and printer.ercf.filament != "Loaded")) and printer.ercf.gate_status[5] != 0 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.tool, printer.ercf.gate_status, printer.ercf.filament, printer.ercf.action
# Example: to just select the tool (not load)
#[menu __main,__print ercf select_tools]
#name: {{ gettext('Select Tool...') }}
#icon: extruder
#enable: {{ printer.idle_timeout.state != "Printing" }}
#show_disabled: True
#refresh_on: printer.idle_timeout.state
#
#ERCF_iter_select_tools
[menu __main,__print ercf select_gates]
name: {{ gettext('Select Gate...') }}
icon: ercf_select_gate
enable: {{ printer.idle_timeout.state != "Printing" }}
show_disabled: True
refresh_on: printer.idle_timeout.state
[menu __main,__print ercf select_gates bypass}]
name: {{ gettext('Select Bypass') }}
icon: ercf_select_bypass
method: printer.gcode.script
params: {"script":"ERCF_SELECT_BYPASS"}
enable: {{ printer.ercf.gate != -2 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.gate, printer.ercf.action
# Generated menus for each tool/gate...
[menu __main,__print ercf select_gates G0]
name: {{ gettext('Select Gate #0') }}
icon: ercf_select_gate
method: printer.gcode.script
params: { "script":"ERCF_SELECT GATE=0" }
enable: {{ printer.ercf.gate != 0 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.gate, printer.ercf.action
[menu __main,__print ercf select_gates G1]
name: {{ gettext('Select Gate #1') }}
icon: ercf_select_gate
method: printer.gcode.script
params: { "script":"ERCF_SELECT GATE=1" }
enable: {{ printer.ercf.gate != 1 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.gate, printer.ercf.action
[menu __main,__print ercf select_gates G2]
name: {{ gettext('Select Gate #2') }}
icon: ercf_select_gate
method: printer.gcode.script
params: { "script":"ERCF_SELECT GATE=2" }
enable: {{ printer.ercf.gate != 2 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.gate, printer.ercf.action
[menu __main,__print ercf select_gates G3]
name: {{ gettext('Select Gate #3') }}
icon: ercf_select_gate
method: printer.gcode.script
params: { "script":"ERCF_SELECT GATE=3" }
enable: {{ printer.ercf.gate != 3 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.gate, printer.ercf.action
[menu __main,__print ercf select_gates G4]
name: {{ gettext('Select Gate #4') }}
icon: ercf_select_gate
method: printer.gcode.script
params: { "script":"ERCF_SELECT GATE=4" }
enable: {{ printer.ercf.gate != 4 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.gate, printer.ercf.action
[menu __main,__print ercf select_gates G5]
name: {{ gettext('Select Gate #5') }}
icon: ercf_select_gate
method: printer.gcode.script
params: { "script":"ERCF_SELECT GATE=5" }
enable: {{ printer.ercf.gate != 5 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.gate, printer.ercf.action
#[menu __main,__print ercf enable_endless_spool]
#name: {{ gettext('Enable E.Spool') }}
#icon: ercf_enable_endless_spool
#method: printer.gcode.script
#params: {"script":"ERCF_ENDLESS_SPOOL ENABLE=1"}
#enable: {{ printer.ercf.endless_spool == 0 }}
#show_disabled: True
#refresh_on: printer.ercf.endless_spool
#
#[menu __main,__print ercf disable_endless_spool]
#name: {{ gettext('Disable E.Spool') }}
#icon: ercf_disable_endless_spool
#method: printer.gcode.script
#params: {"script":"ENDLESS_SPOOL ENABLE=0"}
#enable: {{ printer.ercf.endless_spool == 1 }}
#show_disabled: True
#refresh_on: printer.ercf.endless_spool
[menu __main,__print ercf status]
name: {{ gettext('Display Status') }}
icon: info
method: printer.gcode.script
params: {"script":"ERCF_STATUS"}
enable: {{ printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.action
[menu __main,__print ercf print]
name: {{ gettext('Print Stats') }}
icon: ercf_status
method: printer.gcode.script
params: {"script":"ERCF_DUMP_STATS"}
enable: {{ printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.action
[menu __main,__print ercf reset]
name: {{ gettext('Reset Stats') }}
icon: ercf_stats_reset
method: printer.gcode.script
confirm: Are you sure you want to reset ERCF statistics?
params: {"script":"ERCF_RESET_STATS"}
enable: {{ printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.action
# Example: User added ...
[menu __main,__print ercf spare1]
name: {{ gettext('user def') }}
icon: ercf_carrot
enable: False
show_disabled: False
# Examples: for basic management
#[menu __main,__print ercf home]
#name: {{ gettext('Home Selector') }}
#icon: home
#method: printer.gcode.script
#params: {"script":"ERCF_HOME"}
#
#[menu __main,__print ercf servoup]
#name: {{ gettext('Servo UP') }}
#icon: arrow-up
#method: printer.gcode.script
#params: {"script":"ERCF_SERVO_UP"}
#enable: {{ printer.ercf.servo != "Up" }}
#show_disabled: True
#refresh_on: printer.ercf.servo
#
#[menu __main,__print ercf servodown]
#name: {{ gettext('Servo Down') }}
#icon: arrow-down
#method: printer.gcode.script
#params: {"script":"ERCF_SERVO_DOWN"}
#enable: {{ printer.ercf.servo != "Down" }}
#show_disabled: True
#refresh_on: printer.ercf.servo
#
#[menu __main,__print ercf motoroff]
#name: {{ gettext('Disable Motors') }}
#icon: motor-off
#method: printer.gcode.script
#confirm: "This will invalidate selector position and require rehoming. Are you sure?"
#params: {"script":"ERCF_MOTORS_OFF"}
#
# ---------- ERCF Manage submenu end
# ---------- ERCF config/calibration menu
#
[menu __main config ercf_calib]
name: {{ gettext('ERCF Settings') }}
icon: ercf_gear
enable: {{ printer.ercf is defined }}
[menu __main config ercf_calib home]
name: {{ gettext('Home') }}
icon: home
method: printer.gcode.script
params: {"script":"ERCF_HOME"}
[menu __main config ercf_calib select_gates]
name: {{ gettext('Select Gate...') }}
icon: ercf_select_gate
# Generated menus for each tool/gate...
[menu __main config ercf_calib select_gates G0]
name: {{ gettext('Select Gate #0') }}
icon: ercf_select_gate
method: printer.gcode.script
params: { "script":"ERCF_SELECT GATE=0" }
enable: {{ printer.ercf.gate != 0 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.gate, printer.ercf.action
[menu __main config ercf_calib select_gates G1]
name: {{ gettext('Select Gate #1') }}
icon: ercf_select_gate
method: printer.gcode.script
params: { "script":"ERCF_SELECT GATE=1" }
enable: {{ printer.ercf.gate != 1 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.gate, printer.ercf.action
[menu __main config ercf_calib select_gates G2]
name: {{ gettext('Select Gate #2') }}
icon: ercf_select_gate
method: printer.gcode.script
params: { "script":"ERCF_SELECT GATE=2" }
enable: {{ printer.ercf.gate != 2 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.gate, printer.ercf.action
[menu __main config ercf_calib select_gates G3]
name: {{ gettext('Select Gate #3') }}
icon: ercf_select_gate
method: printer.gcode.script
params: { "script":"ERCF_SELECT GATE=3" }
enable: {{ printer.ercf.gate != 3 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.gate, printer.ercf.action
[menu __main config ercf_calib select_gates G4]
name: {{ gettext('Select Gate #4') }}
icon: ercf_select_gate
method: printer.gcode.script
params: { "script":"ERCF_SELECT GATE=4" }
enable: {{ printer.ercf.gate != 4 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.gate, printer.ercf.action
[menu __main config ercf_calib select_gates G5]
name: {{ gettext('Select Gate #5') }}
icon: ercf_select_gate
method: printer.gcode.script
params: { "script":"ERCF_SELECT GATE=5" }
enable: {{ printer.ercf.gate != 5 and printer.ercf.action == "Idle" }}
show_disabled: True
refresh_on: printer.ercf.gate, printer.ercf.action
[menu __main config ercf_calib grip]
name: {{ gettext('Test Grip') }}
icon: ercf_grip
method: printer.gcode.script
params: {"script":"ERCF_TEST_GRIP"}
[menu __main config ercf_calib formtip]
name: {{ gettext('Form Tip') }}
icon: ercf_formtip
method: printer.gcode.script
params: {"script":"ERCF_FORM_TIP_STANDALONE FINAL_EJECT=1"}
[menu __main config ercf_calib servoup]
name: {{ gettext('Servo UP') }}
icon: arrow-up
method: printer.gcode.script
params: {"script":"ERCF_SERVO_UP"}
enable: {{ printer.ercf.servo != "Up" }}
show_disabled: True
refresh_on: printer.ercf.servo
[menu __main config ercf_calib servodown]
name: {{ gettext('Servo DOWN') }}
icon: arrow-down
method: printer.gcode.script
params: {"script":"ERCF_SERVO_DOWN"}
enable: {{ printer.ercf.servo != "Down" }}
show_disabled: True
refresh_on: printer.ercf.servo
[menu __main config ercf_calib encoder]
name: {{ gettext('Encoder') }}
icon: ercf_encodercal
method: printer.gcode.script
params: {"script":"ERCF_CALIBRATE_ENCODER"}
[menu __main config ercf_calib all]
name: {{ gettext('Calibrate ALL') }}
icon: extruder
method: printer.gcode.script
confirm: This will calibrate all gates. Are you sure?
params: {"script":"ERCF_CALIBRATE"}
[menu __main config ercf_calib tool]
name: {{ gettext('Cal Tool...') }}
icon: ercf_calibrate
# Generated menus for each tool/gate...
[menu __main config ercf_calib tool CT0]
name: {{ gettext('Calibrate T0') }}
icon: ercf_calibrate
method: printer.gcode.script
params: { "script":"ERCF_CALIBRATE_SINGLE TOOL=0" }
[menu __main config ercf_calib tool CT1]
name: {{ gettext('Calibrate T1') }}
icon: ercf_calibrate
method: printer.gcode.script
params: { "script":"ERCF_CALIBRATE_SINGLE TOOL=1" }
[menu __main config ercf_calib tool CT2]
name: {{ gettext('Calibrate T2') }}
icon: ercf_calibrate
method: printer.gcode.script
params: { "script":"ERCF_CALIBRATE_SINGLE TOOL=2" }
[menu __main config ercf_calib tool CT3]
name: {{ gettext('Calibrate T3') }}
icon: ercf_calibrate
method: printer.gcode.script
params: { "script":"ERCF_CALIBRATE_SINGLE TOOL=3" }
[menu __main config ercf_calib tool CT4]
name: {{ gettext('Calibrate T4') }}
icon: ercf_calibrate
method: printer.gcode.script
params: { "script":"ERCF_CALIBRATE_SINGLE TOOL=4" }
[menu __main config ercf_calib tool CT5]
name: {{ gettext('Calibrate T5') }}
icon: ercf_calibrate
method: printer.gcode.script
params: { "script":"ERCF_CALIBRATE_SINGLE TOOL=5" }
#
# ---------- ERCF config/calibration end