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

Control PSU from OctoDash #201

Closed
hessius opened this issue Oct 13, 2019 · 5 comments
Closed

Control PSU from OctoDash #201

hessius opened this issue Oct 13, 2019 · 5 comments
Assignees
Labels
enhancement New feature or request
Projects

Comments

@hessius
Copy link
Contributor

hessius commented Oct 13, 2019

As I mentioned in #200 I would love the ability to control the PSU-control plugin through the OctoDash screen.

Without knowing any of the details: I'm using the app OctoPod which can control the plugin so there is some sort of API.
It's also possible to set up PSU-control to respond to Gcode commands, (defaults to M80/M81), so this could probably be added to the custom controls? Though without having tried it yet it looks like the power on Gcode command would not be usable since OctoDash throws a 409 error continuously when the printer is offline?

@UnchartedBull
Copy link
Owner

Yes if the printer is offline OctoDash can't send anything, because everything will go through OctoPrint which will throw the 409 error. But thats a good idea and fits really well into the custom actions. Also kill would make kind of more sense then. So that feature probably is coming soon :)

Could you link the plugin so I can have a look?

@UnchartedBull UnchartedBull added the enhancement New feature or request label Oct 13, 2019
@UnchartedBull UnchartedBull self-assigned this Oct 13, 2019
@UnchartedBull UnchartedBull added this to To do in v2 Release via automation Oct 13, 2019
@hessius
Copy link
Contributor Author

hessius commented Oct 14, 2019

Here’s the plugin: https://github.com/kantlivelong/OctoPrint-PSUControl
Here’s a write up I made on how to set it up with ikea Trådfri smart outlets: https://community.octoprint.org/t/psu-control-with-ikea-tradfri-and-no-additional-hw/12536

@UnchartedBull
Copy link
Owner

It does have an API so the plugin can be integrated quite easily :)

@UnchartedBull UnchartedBull moved this from To do to In progress in v2 Release Oct 14, 2019
@hessius
Copy link
Contributor Author

hessius commented Oct 15, 2019

Small update; enabling the save connection settings and the auto connect on server startup in conjunction with this plugin enables auto connection after powering on the psu: https://github.com/markwal/OctoPrint-PortLister

@UnchartedBull
Copy link
Owner

I've almost finished the sleeping screen, which also attempts to connect to the Printer (just needs some testing and some minor tweaks). And because I don't use the WebInterface, but rely on the API it hopefully should work just fine. Maybe if this doesn't work out I'll have a look at the plugin

v2 Release automation moved this from In progress to Done Oct 15, 2019
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
v2 Release
  
Done
Development

No branches or pull requests

2 participants