Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
87cb9419
Commit
87cb9419
authored
Aug 01, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #562: Add start command
parent
2299962b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
pronsole.py
printrun/pronsole.py
+8
-0
settings.py
printrun/settings.py
+1
-0
No files found.
printrun/pronsole.py
View file @
87cb9419
...
...
@@ -1150,6 +1150,14 @@ class pronsole(cmd.Cmd):
self
.
compute_eta
=
RemainingTimeEstimator
(
self
.
fgcode
)
else
:
self
.
compute_eta
=
None
if
self
.
settings
.
start_command
:
output
=
get_command_output
(
self
.
settings
.
start_command
,
{
"$s"
:
str
(
self
.
filename
),
"$t"
:
format_time
(
time
.
time
())})
if
output
:
self
.
log
(
"Start command output:"
)
self
.
log
(
output
.
rstrip
())
try
:
powerset_print_start
(
reason
=
"Preventing sleep during print"
)
except
:
...
...
printrun/settings.py
View file @
87cb9419
...
...
@@ -272,6 +272,7 @@ class Settings(object):
self
.
_add
(
SpinSetting
(
"e_feedrate"
,
100
,
0
,
1000
,
_
(
"E manual feedrate"
),
_
(
"Feedrate for Control Panel Moves in Extrusions (mm/min)"
),
"Printer"
))
self
.
_add
(
StringSetting
(
"slicecommand"
,
"python skeinforge/skeinforge_application/skeinforge_utilities/skeinforge_craft.py $s"
,
_
(
"Slice command"
),
_
(
"Slice command"
),
"External"
))
self
.
_add
(
StringSetting
(
"sliceoptscommand"
,
"python skeinforge/skeinforge_application/skeinforge.py"
,
_
(
"Slicer options command"
),
_
(
"Slice settings command"
),
"External"
))
self
.
_add
(
StringSetting
(
"start_command"
,
""
,
_
(
"Start command"
),
_
(
"Executable to run when the print is started"
),
"External"
))
self
.
_add
(
StringSetting
(
"final_command"
,
""
,
_
(
"Final command"
),
_
(
"Executable to run when the print is finished"
),
"External"
))
self
.
_add
(
StringSetting
(
"error_command"
,
""
,
_
(
"Error command"
),
_
(
"Executable to run when an error occurs"
),
"External"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment