Skip to content
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

Add Custom Actions on Sleeping Screen... like control Enclosure Rele or launch gcode command #687

Closed
alienboyxp opened this issue May 27, 2020 · 3 comments · Fixed by #1299
Labels
enhancement New feature or request
Projects

Comments

@alienboyxp
Copy link

Additional context
Could be interesting to add some actions/buttons available at "Sleep" screen to, for example:

  • launch gcode or API custom call to Octoprint
  • make available some Enclosure actions like power on or off specific rele, like to power on the printer, led strip, etc.
@alienboyxp alienboyxp added the enhancement New feature or request label May 27, 2020
@UnchartedBull
Copy link
Owner

GCode won't work in the sleep screen, since there is no printer connected, who could handle that. I think the API doesn't even accept the command. Custom API call will work yes, but will be a relatively large thing to implement.

Powering the printer on and off is already support with the PSUControl Plugin. Regarding the Enclosure Plugin please read #668. Feel free to open a PR yourself! It probably will take some time for me to come back to this ...

@alienboyxp
Copy link
Author

GCode won't work in the sleep screen, since there is no printer connected, who could handle that. I think the API doesn't even accept the command. Custom API call will work yes, but will be a relatively large thing to implement.

Powering the printer on and off is already support with the PSUControl Plugin. Regarding the Enclosure Plugin please read #668. Feel free to open a PR yourself! It probably will take some time for me to come back to this ...

@UnchartedBull thanks for your quick answer!!!
Related to send gcode I mean this functionality from Enclosure you can use/manage the plugin with custom gcodes https://github.com/vitormhenrique/OctoPrint-Enclosure/wiki/G-CODE-Control but not sure if, as you mentioned, will be available send ENC O2 S1 when printer is not connected and then the solution will be to launch API call to Enclosure plugin.

I will review the PSUControl as you mentioned but the question is if this feature to power on the printer is available at sleep screen, in any case and for my special case is not useful as I manage the power on off by GPIO rele and Enclosure is most appropriate for this scenario as provide much more features than PSU Control.

As you start to integrate Enclosure for chamber temperature will be a great feature to extend Enclosure options to manage reles or reles and, in some cases allow some actions from sleep screen.

@UnchartedBull
Copy link
Owner

Yes you can set that up in the settings of OctoDash. This will then tell PSUControl to turn on the printer, if you want to exit from sleep mode.

@UnchartedBull UnchartedBull added this to To do in v3 Release via automation Aug 19, 2020
@UnchartedBull UnchartedBull added this to To do in Future via automation Aug 19, 2020
@UnchartedBull UnchartedBull removed this from To do in v3 Release Aug 19, 2020
Future automation moved this from To do to Done Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
Future
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants