-
Notifications
You must be signed in to change notification settings - Fork 31
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
AutomaticShutdown does not shutdown #10
Comments
I'll take a look.
Are you using a webcam/timelapse?
|
Yes I use webcam, but timelapse disabled (for now). I've tried two or tree times with real printer and with virtual printer. The result have always been the same. Ah ! I don't think that it could be related but I use the latest OctoPi. |
Would you be able to do a test with timelapse on?
|
I'll check when my current print finishes, I keep you in touch ! Thank for your help. I don't know which event is thrown when the plugin log the "Printer is currently printing/paused" message. Maybe a bit of additional log here could help ? If Octoprint trigger the "done" event but the printer is still in "printing" state, it could be a OctoPrint issue. |
That's what I'm guessing is happening but it seems weird that it would get PrintDone and still return True for is_printing() (Think I can safely assume that it wasn't paused) So far I can't replicate it. Are you running any plugins that would affect print functionality? |
Here the additionnal plugins : DisplayProgress , EmailNotifier, PortLister, |
I made the tests : Still don't know why with a timelapse it works but ... in wait of a fix some timelapses won't kill me :D |
I also have the problem. Noting happens after print finishes. I will try that. thank you very much! |
I wouldn't say its a solution but definitely a good workaround for now until I can figure out why it thinks a print is still running even though it's not. |
Works fine with timelapse enabled ;) thank you for your plugin! |
I've committed a potential fix to the issue-10 branch. Would you be willing to test? How to install from branch1.) Uninstall the plugin (don't reboot). 2.) Install the plugin via URL.( https://github.com/OctoPrint/OctoPrint-AutomaticShutdown/archive/issue-10.zip ) 3.) Paste the URL into plugin manager(Example screenshot below): |
Thank you very much, i will test it tomorrow and write you if it does work
Thanks Steph
Shawn Bruce <[email protected]> schrieb am Mo., 27. Feb. 2017 17:36:
… I've committed a potential fix to the *issue-10* branch. Would you be
willing to test?
How to install from branch
1.) Uninstall the plugin then install via URL.(
https://github.com/OctoPrint/OctoPrint-AutomaticShutdown/archive/issue-10.zip
)
2.) Paste the URL into plugin manager(Example screenshot below):
[image: image]
<https://cloud.githubusercontent.com/assets/83657/22247870/4b1d1a9e-e23c-11e6-90ef-6f942ccb5c68.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AY0WNrBbsEdybK1ZT9j4Rx5TpIburJvOks5rgvt6gaJpZM4ML-hN>
.
|
Hey, i did a short test.
I could not finish the print and i just canceled it manualy.
But the plug-in did nothing. The checkbox always changes it state.
The last time i canceled a print your plug-in also started the countdown to
shutdown.
Steph
Stephan Koch
E-Mail: [email protected]
2017-02-27 17:44 GMT+01:00 Stephan Koch <[email protected]>:
… Thank you very much, i will test it tomorrow and write you if it does work
Thanks Steph
Shawn Bruce ***@***.***> schrieb am Mo., 27. Feb. 2017
17:36:
> I've committed a potential fix to the *issue-10* branch. Would you be
> willing to test?
> How to install from branch
>
> 1.) Uninstall the plugin then install via URL.(
> https://github.com/OctoPrint/OctoPrint-AutomaticShutdown/
> archive/issue-10.zip )
>
> 2.) Paste the URL into plugin manager(Example screenshot below):
> [image: image]
> <https://cloud.githubusercontent.com/assets/83657/22247870/4b1d1a9e-e23c-11e6-90ef-6f942ccb5c68.png>
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#10 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AY0WNrBbsEdybK1ZT9j4Rx5TpIburJvOks5rgvt6gaJpZM4ML-hN>
> .
>
|
It shouldn't show the shut down timer if a job is cancelled but would if finished/failed. |
The new version starts countdown if i cancel the print and timelapse is
enabled.
Checkbox to shutdown changes its state sometimes.
That is the result of my research so far.
Am 27.02.2017 18:58 schrieb "Shawn Bruce" <[email protected]>:
… It shouldn't show the shut down timer if a job is cancelled but it will if
the print failed.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AY0WNvnOlYfKBfjsv4xMQmXSJSAZGRJwks5rgw7egaJpZM4ML-hN>
.
|
Hmm not entirely sure how I can rework this. If a job is cancelled OctoPrint will send PrintCancelled along with PrintFailed. PrintFailed can also be sent when there is a comm issue. I can check if the printer is an error state to determine failure vs cancel but where it gets tricky is when doing timelapse rendering because it will still render regardless if it was successful, cancelled, or failed and the plugin needs to wait for rendering to finish before shutting down. Would be a lot easier if events sent a job id. Will see if I can figure something out. |
I would be happy if it works without timelapse enabled. If countdown starts
when print gets canceled is no problem in my opinion.
I will although think about it. How it can be solved.
Shawn Bruce <[email protected]> schrieb am Mo., 27. Feb. 2017 21:22:
… Hmm not entirely sure how I can rework this. If a job is cancelled
OctoPrint will send PrintCancelled along with PrintFailed. PrintFailed can
also be sent when there is a comm issue. I can check if the printer is an
error state to determine failure vs cancel but where it gets tricky is when
doing timelapse rendering because it will still render regardless if it was
successful, cancelled, or failed and the plugin needs to wait for rendering
to finish before shutting down.
Would be a lot easier if events sent a job id.
Will see if I can figure something out.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AY0WNh0S189K6DVcCHPSs6nWiFupNDJ9ks5rgzCggaJpZM4ML-hN>
.
|
Alright I've reworked the timelapse support (which hopefully also fixed when not using timelapse). Should also allow jobs to be canceled without displaying the timer. Same URL if you'd be willing to test it out. ( https://github.com/OctoPrint/OctoPrint-AutomaticShutdown/archive/issue-10.zip ) Thanks |
Hey,
i tested it with timelapse enabled and disabled.
It works both times.
If print job is canceled countdown does not start.
Seems to work perfect in my opinion.
Steph
Stephan Koch
E-Mail: [email protected]
2017-03-01 1:31 GMT+01:00 Shawn Bruce <[email protected]>:
… Alright I've reworked the timelapse support (which hopefully also fixed
when not using timelapse). Should also allow jobs to be canceled without
displaying the timer.
Same URL if you'd be willing to test it out. (
https://github.com/OctoPrint/OctoPrint-AutomaticShutdown/
archive/issue-10.zip )
Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AY0WNjSMT3SeBjzd6U851DDLSXKrsJ2Dks5rhLxRgaJpZM4ML-hN>
.
|
Awesome! Merged into devel ff82a3d |
-Rework timelapse support (Fixes #10) -Don't shutdown when a job is cancalled
-Rework timelapse support (Fixes #10) -Don't shutdown when a job is cancelled
Hi ! I'm currently trying to use your plugin to shutdown my printer after the print but it seems that something is preventing it.
I tool a look at the code, it looks like Octoprint is still reporting state as printing while the printing is effectively finished :
2017-02-25 10:33:22,795 - octoprint.util.comm - INFO - Finished in 5645.460 s.
2017-02-25 10:33:22,809 - octoprint.plugins.automaticshutdown - INFO - Printer is currently printing/paused. No shutdown action will be preformed.
Octoprint v1.3.1
OctoPrint-AutomaticShutdown v0.1.3
Printer Anet A8 (Repetier firmware)
Process : start printing, check automatic shutdown, wait an infinite time, come back when print finishes, and ... nothing :)
If you need any additional info tell me !
The text was updated successfully, but these errors were encountered: