Skip to content

Instantly share code, notes, and snippets.

View rootiest's full-sized avatar
:octocat:
Printing printers

Rootiest rootiest

:octocat:
Printing printers
View GitHub Profile
This file has been truncated, but you can view the full file.
; LightBurn 1.3.01
; Marlin device profile, absolute coords
; Bounds: X119.79 Y123.8 to X180.79 Y176.2
G21
G90
; Image @ 100 mm/sec, 20% power
M8
M106 S0
G0 X146.093 Y123.799 F0
; Layer C00
sensor:
- platform: statistics
name: Inside Temperature Statistics
entity_id: sensor.average_inside_temperature
sampling_size: 1440
#max_age: 604800
- platform: statistics
name: Inside Temperature Statistical Min
[menu __main __octoprint]
type: list
name: Klipper
[menu __main __octoprint __pause]
type: command
enable: {printer.idle_timeout.state == "Printing"}
name: Pause printing
gcode:
PAUSE
# Leveling Menus
[menu __main __leveling]
type: list
enable: {not printer.idle_timeout.state == "Printing"}
name: Leveling
index: 7
[menu __main __leveling preheatBed]
type: command
name: Hotbed > 60c
[gcode_macro TEST_STATE]
gcode:
{% if printer.idle_timeout.state == "Printing" %}
RESPOND MSG="We are printing"
{% endif %}
RESPOND type=error MSG="State: {printer.idle_timeout.state}"
@rootiest
rootiest / shutdown.sh
Last active November 17, 2022 22:28
Shutdown Scheduler for Klipper
#!/bin/bash
sleep 30
shutdown now
# This file contains pin mappings for the Creality CR-10 Smart Pro
# with a CR-FDM-v2.5.S1 board.
#
# To use this config, during "make menuconfig" select the STM32F103
# with a "64KiB bootloader" and serial (on USART1 PA10/PA9)
# communication. Enable PA0 GPIO pin on startup.
#
# Flash this firmware on the MCU by copying "out/klipper.bin" to an SD
# card and turning the printer on with the card inserted. The firmware
# filename must end in ".bin" and must not match the last filename
# Need this to send console messages
[respond]
[filament_switch_sensor runout_sensor]
pause_on_runout: False # This needs to be false to use runout_gcode
runout_gcode:
_filament_runout
insert_gcode:
_filament_insert
switch_pin:P1.26
[gcode_macro CIRCLE_WIPE]
gcode:
# Adjust these if necessary to fit on your bed
{% set X_MAX = printer.toolhead.axis_maximum.x|default(200)|float %}
{% set Y_MAX = printer.toolhead.axis_maximum.y|default(200)|float %}
{% set X_MIN = printer.toolhead.axis_minimum.x|default(0)|float %}
{% set Y_MIN = printer.toolhead.axis_minimum.y|default(0)|float %}
{% set X_CENTER = ((X_MIN + X_MAX) * 0.5) %}
{% set Y_CENTER = ((Y_MIN + Y_MAX) * 0.5) %}