-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
execute G-Code after render finish #6
Open
pappicio
wants to merge
1
commit into
mainsail-crew:main
Choose a base branch
from
pappicio:shut-down-printer-gcode
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
# | ||
# This file may be distributed under the terms of the GNU GPLv3 license | ||
# | ||
# Macro version 1.1 | ||
# Macro version 1.2 | ||
# | ||
|
||
##### DO NOT CHANGE ANY MACRO!!! ##### | ||
|
@@ -15,6 +15,9 @@ | |
# GET_TIMELAPSE_SETUP: Print the Timelapse setup to console # | ||
# # | ||
########################################################################## | ||
[gcode_macro get_timelapse_status] | ||
gcode: | ||
GET_TIMELAPSE_SETUP | ||
|
||
[gcode_macro GET_TIMELAPSE_SETUP] | ||
description: Print the Timelapse setup | ||
|
@@ -41,9 +44,10 @@ gcode: | |
############################################################################################### | ||
|
||
[gcode_macro _SET_TIMELAPSE_SETUP] | ||
description: Set user parameters for timelaps | ||
description: Set user parameters for timelapse | ||
gcode: | ||
##### get dictonaries ##### | ||
UPDATE_DELAYED_GCODE ID=_done_shutdown_timed DURATION=0 | ||
{% set enable = printer['gcode_macro TIMELAPSE_TAKE_FRAME'].enable %} | ||
{% set verbose = printer['gcode_macro TIMELAPSE_TAKE_FRAME'].verbose %} | ||
{% set park = printer['gcode_macro TIMELAPSE_TAKE_FRAME'].park %} | ||
|
@@ -239,12 +243,12 @@ gcode: | |
{% endif %} | ||
{% else %} | ||
{% if verbose|lower == 'true' %} | ||
{action_respond_info("Timelapse: take frame ignored")} | ||
{action_respond_info("Timelapse: disabled, take frame ignored")} | ||
{% endif %} | ||
{% endif %} | ||
|
||
[gcode_macro _TIMELAPSE_NEW_FRAME] | ||
description: action call for timelaps shoot. must be a seperate macro | ||
description: action call for timelapse shoot. must be a seperate macro | ||
gcode: | ||
{% set hyperlapse = false %} | ||
{% if params.HYPERLAPSE is defined %} | ||
|
@@ -297,7 +301,7 @@ gcode: | |
{action_respond_info("Hyperlapse: frames stopped")} | ||
UPDATE_DELAYED_GCODE ID=_HYPERLAPSE_LOOP DURATION=0 | ||
{% else %} | ||
{action_respond_info("Hyperlapse: No falid input parameter | ||
{action_respond_info("Hyperlapse: No valid input parameter | ||
Use: | ||
- HYPERLAPSE ACTION=START [CYCLE=time] | ||
- HYPERLAPSE ACTION=STOP")} | ||
|
@@ -342,3 +346,21 @@ gcode: | |
RESUME_BASE | ||
{% endif %} | ||
|
||
[gcode_macro _done_shutdown] | ||
gcode: | ||
UPDATE_DELAYED_GCODE ID=_done_shutdown_timer DURATION=0 | ||
UPDATE_DELAYED_GCODE ID=_done_shutdown_timed DURATION=1 | ||
|
||
[delayed_gcode _done_shutdown_timed] | ||
initial_duration: 0 | ||
gcode: | ||
{% if printer.extruder.temperature > 50 %} | ||
UPDATE_DELAYED_GCODE ID=_done_shutdown_timed DURATION=1 | ||
#m117 ciclo... | ||
#m118 ciclo... | ||
{% else %} | ||
m117 spengo..... | ||
m118 spengo..... | ||
spegni_tutto | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. spegni_tutto |
||
{% endif %} | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UPDATE_DELAYED_GCODE ID=_done_shutdown_timer DURATION=0
my own code to delete delayed gcode on printeing finish on printer.cfg