Stephan3 / dwc2-for-klipper

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

File list on LCD #38

Closed rafaljot closed 4 years ago

rafaljot commented 4 years ago

If you are using LCD there is a menu "SD Card". It lists files from folder /home/pi/sdcard Unfortunately Klipper doesn't suport subfolders.

dwc2-for-klipper stores all files in "gcodes" subfolder so I can't print uploaded files using LCD menu.

I made little workaround: [virtual_sdcard] path: /home/pi/sdcard/gcodes

`

<-----><------>self.sdpath = self.configfile.getsection("virtual_sdcard").get("path", None)

<------><------>self.sdpath = config.get( 'sd_path', self.configfile.getsection("virtual_sdcard").get("path", None)) `

then:

[web_dwc2] (...) sd_path: /home/pi/sdcard

Stephan3 commented 4 years ago

I am willing to add this. As you did this allready, does dwc realize that printing started when starting from lcd?

Stephan3 commented 4 years ago

No answer since a month? you alive?

rafaljot commented 4 years ago

Sorry, Unfortunately not. Over and over trying to reconnect

image
Stephan3 commented 4 years ago

Okay you are asking for "file list on LCD" and then you are talking about restarts. What ever you did/doing it breaks thing. If i can help with code or take a look at logs, let me know.

rafaljot commented 4 years ago

Because this restart happens only during printing when I start it from file list on LCD. Yep, I'll try to manage this issue.

Stephan3 commented 4 years ago

Then I need a loggile please

trevjonez commented 4 years ago

both sdcard lcd listing and the constant errors when a print is started via LCD are resolved by the combination of https://github.com/KevinOConnor/klipper/pull/2767 and Stephan3/dwc2-for-klipper#65