klipper icon indicating copy to clipboard operation
klipper copied to clipboard

Feature Request (Menu): Octoprint Files

Open cfelicio opened this issue 8 years ago • 6 comments

So, we have an octoprint menu, which is awesome (and an improvement compared to other firmwares). I'm wondering if besides pausing / stoping a job, it would be possible to read files currently stored on Octoprint, and having the option to start a print on them?

cfelicio avatar Aug 29 '18 22:08 cfelicio

Isn't that what virtual sd-card does?

# A virtual sdcard may be useful if the host machine is not fast
# enough to run OctoPrint well. It allows the Klipper host software to
# directly print gcode files stored in a directory on the host using
# standard sdcard G-Code commands (eg, M24).
#[virtual_sdcard]
#path: ~/.octoprint/uploads/
#   The path of the local directory on the host machine to look for
#   g-code files. This is a read-only directory (sdcard file writes
#   are not supported). One may point this to OctoPrint's upload
#   directory (generally ~/.octoprint/uploads/ ). This parameter must
#   be provided.

Currently, it's not supporting folders. There's also a menu for this. Just enable virtual_sdcard and a submenu will appear.

mcmatrix avatar Aug 30 '18 07:08 mcmatrix

Thanks, I just tried the virtualsd option. It does allow me to start a print, but I can't control it via Octoprint afterwards, or monitor the status. I assume that's how it works?

cfelicio avatar Aug 31 '18 01:08 cfelicio

I think this is the way how sd card printing works. When printing via SDCard then Klipper itself is feeding gcodes not Octoprint. So Octoprint is not able to control printing progress.

Maybe there's a host command to tell OctoPrint to start printing file from a folder. Then Octoprint will lead the orchestra. The default folder is any way Octoprint upload folder.

mcmatrix avatar Sep 06 '18 08:09 mcmatrix

It looks like this question was answered, so I am closing for now.

KevinOConnor avatar Sep 25 '18 18:09 KevinOConnor

you can start virtual sdcard prints via gcode commands as well. should be able to hook that up to octoprint or any other printer host software. https://github.com/KevinOConnor/klipper/blob/e26d1a356708b3702c91a86ff37f3c5c615941c9/docs/G-Codes.md#g-code-sd-card-commands

trevjonez avatar Jan 12 '19 21:01 trevjonez

I'm having a difficult time figuring out how to enable virtual sdcard. Can someone explain how to do it please

shubble32 avatar Oct 20 '19 21:10 shubble32