-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Is there a Pause Flag on RPC server? #1409
Comments
One possible way is to add https://reprap.org/wiki/G-code#M118:_Echo_message_on_host before a pause. You can catch up the message then and use this as a trigger in your action chain. |
Ok, got it But, how could i capture the message? Ive been reading some .py files of pronterface, ive found the eventhandler.py https://github.com/kliment/Printrun/blob/master/printrun/eventhandler.py or do i have to change the rpc.py to add options to read that data and re-make the pronterface.exe? i have another question, how could i know in which exact number line of the G code, the software is sending to the printer? I will really appreciate your ideas, and comments |
No, such functionality does not seem implemented as of today.
Good question (note to self to document this attribute) The |
I did never use or play myself with printcore.printcore.queueindex but I saw you mentioned this in #1397. I saw an old issue #263 where @kliment mentioned |
Hey there, i have an update, jejeje Guys, the RPC server is already reporting the current line, on the ETA, its the third value, i have already been able to extract it and use it Somehow i didn't notice it when i was working with that Thanks, hope it would be usefull |
I just run the rpc server it myself as I didn't use it in the past. I can see the following output: On print:
On Pause:
I can see that there are some quirks, like format of eta, z high not showing on first layer or when printing from SD do not show any information except temperature. Here an example where I start a real print from start to manually pausing and then aborting the print: Pay attention on my --> marks for understanding what happen during a print and where some wrong information occur.
There is real potential for improving the code of Pronterface / RPC server. Be careful with interpreting the shown information. @rockstorm101, we should leaf this open as I have some concern with the behavior of RPC (see in details). The shown information need to be at least correct, especially for temp values. |
Agreed. We can definitely improve the code a bit. I would open a new issue with your findings and what exactly needs changing. Since this one was more like a question about pausing a print via RPC and not technically a bug report. But up to you. I'm happy either way. |
Hi there,
Ive been working on a little code for getting a notification with the printing characteristics and sending some commands to control it remotely
But, in some Gcodes i need to know when the printing got paused to send a notification
Is there any form or a kind of "flag" that could be accesed via RPC server?
I have a couple of ideas on how to solve the problem, like reading the eta if its equal to 0, but, if its already integrated, could be cleaner solution.
Ive read the rpc.py code but, cant find something like that status report on pause
Thanks to the pronterface team for their work.
Thanks for your suggestions and answers.
The text was updated successfully, but these errors were encountered: