{"action":"closed","issue":{"url":"https://api.github.com/repos/kliment/Printrun/issues/881","repository_url":"https://api.github.com/repos/kliment/Printrun","labels_url":"https://api.github.com/repos/kliment/Printrun/issues/881/labels{/name}","comments_url":"https://api.github.com/repos/kliment/Printrun/issues/881/comments","events_url":"https://api.github.com/repos/kliment/Printrun/issues/881/events","html_url":"https://github.com/kliment/Printrun/issues/881","id":295012437,"number":881,"title":"Cannot tell if print is active with printcore","user":{"login":"slawlor6","id":36219126,"avatar_url":"https://avatars1.githubusercontent.com/u/36219126?v=4","gravatar_id":"","url":"https://api.github.com/users/slawlor6","html_url":"https://github.com/slawlor6","followers_url":"https://api.github.com/users/slawlor6/followers","following_url":"https://api.github.com/users/slawlor6/following{/other_user}","gists_url":"https://api.github.com/users/slawlor6/gists{/gist_id}","starred_url":"https://api.github.com/users/slawlor6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slawlor6/subscriptions","organizations_url":"https://api.github.com/users/slawlor6/orgs","repos_url":"https://api.github.com/users/slawlor6/repos","events_url":"https://api.github.com/users/slawlor6/events{/privacy}","received_events_url":"https://api.github.com/users/slawlor6/received_events","type":"User","site_admin":false},"labels":[{"id":777801214,"url":"https://api.github.com/repos/kliment/Printrun/labels/Question","name":"Question","color":"c067e0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-07T05:34:17Z","updated_at":"2018-03-24T18:43:21Z","closed_at":"2018-03-24T18:43:21Z","author_association":"NONE","body":"I am working on a sorter that uses x-y stepper motors to scan an object in the input bin and place it in a destination bin. I am able to get my setup working really well for objects one at a time, but if I automate the loading I can't figure out when the x-y steppers have come back from the destination to the input. I thought if I used the example, p.startprint(gcode), I would know if a print was active or not based on the comment from printcore.py below:\r\n\r\n def startprint(self, gcode, startindex = 0):\r\n        \"\"\"Start a print, gcode is an array of gcode commands.\r\n        returns True on success, False if already printing.\r\n        The print queue will be replaced with the contents of the data array,\r\n        the next line will be set to 0 and the firmware notified. Printing\r\n        will then start in a parallel thread.\r\n        \"\"\"\r\n\r\nIf I startprint() while the other print is running, the gcode is just appended to the previous run without hesitation. I need to do some sensing in between runs. How can I tell if the print has completed by using printcore? I don't want to use pronsole or pronterface. "}}
{"actor":{"display_login":"kliment"}}