Stephan3 / dwc2-for-klipper

A translator between DWC2 and Klipper
GNU General Public License v3.0
160 stars 38 forks source link

linux host shutdown command #19

Closed BlackStump closed 5 years ago

BlackStump commented 5 years ago

Is it possible add a shutdown and reboot command so as to shutdown the host from within DWC ie sudo shutdown -h now ie sudo shutdown -r now

also babysteps is not working MOVE=1 needs to be added as per change log 20190520 https://github.com/KevinOConnor/klipper/blob/master/docs/Config_Changes.md

Thank you

dystechnic commented 5 years ago

I second that request. That would be a nice enhancement.

Stephan3 commented 5 years ago

I Agree with the MOVE=1 thing you mentioned. But why do we need native Linux commands? Next thing i am affraid of is, the day we merge, this might become a problem.

BlackStump commented 5 years ago

If it is any concern with a merge then I agree leave it out for now! The reason I asked is at the moment I use DWC then when I want to shutdown the printer I get out of DWC and open up Putty to log in to the Orangepi enter username and password issue the "sudo shutdown -h" enter password again and wait for the shutdown and power off. I have been doing this for sometime so I can continue but it would be nice to be able to shut it down from DWC . I would say that is the only thing I miss from Octoprint.

Thanks again for your work Cheers

manu7irl commented 5 years ago

maybe parsing the command from a macro could be possible

Stephan3 commented 5 years ago

I dont think that i will make that happen. You should ask Kevin if klipper should support hostcommands by gcode.