Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Additional commands in the job interface. #3

Open
RobListon opened this issue Nov 21, 2013 · 4 comments
Open

Additional commands in the job interface. #3

RobListon opened this issue Nov 21, 2013 · 4 comments

Comments

@RobListon
Copy link

I would like to add a few more buttons to the interface for each job. Specifically the options to pause, unpause, and cancel a running job.
Am I correct in assuming I would just need to edit the makerbot_tools/scripts.py file to add them? Also, does this project store the job variable used by conveyor for each file submitted?

@gawel
Copy link
Collaborator

gawel commented Nov 21, 2013

We store nothing. This project is just a packaging of convoyer and a web UI.

You only need to add some url in the api (web.py). Let say /api/pause/{job} etc.

You can retrieve the jobs with call_client('jobs') This will call convoyer's jsonrpc api

Check https://github.com/hackable-devices/makerbot_tools/blob/master/makerbot_tools/web.py#L151

I guess you can pause/cancel the jobs with something like call_client('pause', job_id)

You need to check the parameters required by the command (somewhere in convoyer/client/init.py)

But maybe those tasks are already done. ping @tchapi

@gawel
Copy link
Collaborator

gawel commented Nov 22, 2013

Not done already. Patch welcome.

@tchapi
Copy link
Member

tchapi commented Nov 22, 2013

yep, not done already but that could really be a nice addition ! Thanks @RobListon

@RobListon
Copy link
Author

This is taking me a bit longer than I expected to work on since python is new to me and I'm getting the hang of using bottle as well. I'm also going to look into using the new python eggs MBI is packaging their pyserial, conveyor, and s3g (makerbot_driver) projects into.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants