I organized my prints in directories, very nice to see the color of a file is turned into green when printed.
Now I want to print the whole thing again, but all files are green already.
How can I reset them to be "not printed" again ?
What did you already try to solve it?
Tried file-manager, looked for options, found nothing.
You want to change / delete history section of the meta data for the file manager.
The file named: ".metadata.json"
It should be in the root of where you upload your file to. You can find this buy looking at your settings in OctoPrint and finding the section named "Folders" on the left. At the top there is the upload folder path.
Each file has an entry in there that has a section and in that section there is a history node that looks like this:
Another option would be to re-upload all the files. I'm pretty sure that will reset the metadata for them. It would be possible to create a plugin to clear the metadata information, and in your case it would probably make the most sense to perform that action at the folder level with a button or something in the UI like this.
yes re.upload would do exaclty what I want to get - but it is a bit of effort I wanted to avoid.
A plugin which does the work on folder-level would be ideal.
And - yes also : I tried to replace the "success": true with "success": false .
First nothing happened, even reload the folder-view in octoprint did not change anything.
Well it changed after restarting complete octoprint : All ( also the directories and files on upper levels ) are gone. The file-view is completely empty now.
In the filesystem they are still there - I created a terrible mess obviously .
Are they really gone or just hiding from OctoPrint???
At one time there was a bug in the DisplayLayerProgress plugin and the fix was to reload all the files after the plugin update to fix it. Not me!
I wrote a script that made a copy of the 'upload' folder and dumped it into the 'watched' folder. OctoPrint dutifully processed each file and re-analysed the files and put them into the directories they came from. Took a while, it's not fast.... but it was automatic.
I just ran across this function while looking into something else, which makes me believe clearing the history data in a plugin would be even easier. Would just have to pull metadata to get the indexes for each file in a loop and then call this via
You are right - the files ard still on the hd. ( I am using a SSD for the octopi )
Writing a little script sound like a great idea. Did you copy the directories ( the whole tree ) or
do you need to create them manually in octoprint before.
I assume you did not copy the .metadata.jason -files as I destroyed them.
Ooooh! I actually prettified it with a 'help' and everything... It rebuilds the directories too.
Correct, the metadata files are rebuilt by OctoPrint on the reload. Now I just have to find a way to get it to you. Reload.zip (1.7 KB)
There are two options.
Usage: Reload.sh -c -d XX
c - strip current DLP M117 messages
d - delay between files