Skip to content

Commit

Permalink
DOC: add new chamber filter macro hook (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgeKeck authored Dec 20, 2024
1 parent 9160b9f commit 00fd04d
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions site/docs/configuration/chamber_filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,20 @@ The chamber filter control includes two customizable macro hooks:
```
[gcode_macro _CHAMBER_FILTER_TURN_ON]
gcode:
# Configuration
{% set chamber_filter_speed = printer["gcode_macro RatOS"].chamber_filter_speed|default(0)|float %}
# parameters
{% set at = params.AT|default('')|lower %}
# Turn filter fan on
SET_FAN_SPEED FAN=filter SPEED={chamber_filter_speed}
# config
{% set chamber_filter_speed = printer["gcode_macro RatOS"].chamber_filter_speed|default(0)|float %}
{% if at == "print_end" %}
{% set chamber_filter_speed = printer["gcode_macro RatOS"].chamber_filter_disable_speed|default(0)|float %}
{% endif %}
# reset timer
UPDATE_DELAYED_GCODE ID=_CHAMBER_FILTER_OFF_TIMER DURATION=0
# turn filter fan on
SET_FAN_SPEED FAN=filter SPEED={chamber_filter_speed}
```

```
Expand Down

0 comments on commit 00fd04d

Please sign in to comment.