Editing files in /sys/subdirectory???
-
Since I am using my machine for both printing and laser engraving, I am making use of the M505 command to use alternate configuration files. However it seems like I cannot edit the files in the directory under the sys directory. I have to put the card in my computer to edit them. Is there something I am missing or is that a request that should go in for an enhancement?
-
Duet Web Control does not support editing arbitrary files in arbitrary directories.
You can turn on FTP and transfer/edit/transfer anything anywhere on the SD. When FTP is on, so is SFTP and some editors will use (one of these) to make it fairly seamless. Many people do this simply to use an "editor of choice" instead of the primitive edit capability build into DWC.
Make sense?
-
On 1.X versions of DWC this is not available as far as I remember
On 2.X version go to system and the option to make and enter directories should work
-
@GeorgeM said in Editing files in /sys/subdirectory???:
Since I am using my machine for both printing and laser engraving, I am making use of the M505 command to use alternate configuration files. However it seems like I cannot edit the files in the directory under the sys directory. I have to put the card in my computer to edit them. Is there something I am missing or is that a request that should go in for an enhancement?
It works for me on the latest system Not tried it on v2 system tho
Just tested on V2 of DWC and it works ok there as well
-
@GeorgeM said in Editing files in /sys/subdirectory???:
files in the directory under the sys directory
@T3P3Tony said in Editing files in /sys/subdirectory???:
go to system and the files are there
Tony, I don't believe that DWC supports editing files in sub directories under /sys
-
DWC V2.x certainly supports having the directories and contents but what it will do with them I am not sure
-
@Dougal1957 said in Editing files in /sys/subdirectory???:
DWC V2.x certainly supports having the directories and contents but what it will do with them I am not sure
Having them, yes. Editing files in them??
-
@Danal said in Editing files in /sys/subdirectory???:
@Dougal1957 said in Editing files in /sys/subdirectory???:
DWC V2.x certainly supports having the directories and contents but what it will do with them I am not sure
Having them, yes. Editing files in them??
Yes I can edit them as well!
-
Yep, just answered my own question. Web 1.x doesn't let you, Web 2.x does. Thanks @Dougal1957 !!
Latest repository: https://github.com/chrishamm/DuetWebControl check under "releases".
-
@Danal Is "package.json" the file I should dl?
-
@GeorgeM go to:
https://github.com/chrishamm/DuetWebControl/releases
and grab the appropriate zip file for your Duet (duet 2 or Duet 3)
The contents go in the www directory
-
@T3P3Tony Never mind. I figured it out.
-
Well I spoke too soon. I dl from here
https://github.com/chrishamm/DuetWebControl/tree/next
which is the "next" tree of DWC.
It downloads a file DuetWebControl-next.zip
But when I install this from within DWC 1.22.6 I see it unzipping a lot of files and then a blank screen.
I have to copy my backup /www directory onto the card to get back up.
Do I have the wrong file? -
@T3P3Tony said in Editing files in /sys/subdirectory???:
@GeorgeM go to:
https://github.com/chrishamm/DuetWebControl/releases
and grab the appropriate zip file for your Duet (duet 2 or Duet 3)
The contents go in the www directory
-
@T3P3Tony Thank You. That works.