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
57c19bd9
Commit
57c19bd9
authored
May 06, 2013
by
D1plo1d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding a pause_between_print_jobs option so that less printers become on fire because that is bad.
parent
e63ae0d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
printserve.py
printserve.py
+8
-2
No files found.
printserve.py
View file @
57c19bd9
...
...
@@ -253,6 +253,7 @@ class Printserve(pronsole.pronsole, EventEmitter):
EventEmitter
.
__init__
(
self
)
self
.
settings
.
sensor_names
=
{
'T'
:
'extruder'
,
'B'
:
'bed'
}
self
.
settings
.
name
=
'Printserve Printer'
self
.
settings
.
pause_between_prints
=
True
self
.
dry_run
=
kwargs
[
'dry_run'
]
==
True
self
.
stdout
=
sys
.
stdout
self
.
ioloop
=
tornado
.
ioloop
.
IOLoop
.
instance
()
...
...
@@ -357,8 +358,13 @@ class Printserve(pronsole.pronsole, EventEmitter):
if
self
.
current_job
!=
None
:
self
.
update_job_progress
(
100
)
self
.
fire
(
"job_finished"
,
self
.
jobs
.
sanitize
(
self
.
current_job
))
if
len
(
self
.
jobs
.
list
)
>
0
:
print
"Starting the next print job"
if
self
.
settings
.
pause_between_prints
:
print
"Print job complete. Pausing between jobs."
self
.
current_job
=
None
self
.
printing_jobs
=
False
elif
len
(
self
.
jobs
.
list
)
>
0
:
print
"Print job complete. Starting the next print job"
self
.
current_job
=
self
.
jobs
.
list
.
pop
(
0
)
self
.
p
.
startprint
(
self
.
current_job
[
'body'
]
.
split
(
"
\n
"
))
self
.
fire
(
"job_started"
,
self
.
jobs
.
sanitize
(
self
.
current_job
))
...
...
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