Stephan3 / dwc2-for-klipper

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

Show saved Gcodes in Klipper display #26

Closed mbgroot closed 5 years ago

mbgroot commented 5 years ago

The Klipper searches for files in the CD card (/sdcard) and does not show the files in the subdirectories DWC2 stores the files in /gcodes (/sdcard/gcodes) and then does not show them in the klipper on the display. Can I change this?

mbgroot commented 5 years ago

I tried to change the /DuetWebControl/src/utils/path.js file to gcodes: '0:/gcodes', to gcodes: '0:/', but then the folder navigation logic in the file manager is broken.

Stephan3 commented 5 years ago

This is like klipper does that. For me in 2019 there is no reason to drop subfoldersupport. If you wand you can hardlink that as a workarround.

~/dwcstuff (give that as sdpath in dwc config) ~/sdcard (hardlink to ~/dwcstuff/gcodes)

mbgroot commented 5 years ago

I was thinking about the hard link... just a little bit confused about where to find the dwc config? And what variable is responsible for sdpath?

Stephan3 commented 5 years ago

I am talking about the config block in your klipper config.

mbgroot commented 5 years ago

hmm... but: Error: Option 'sdpath' is not valid in section 'web_dwc2'