Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facility to recalculate layers for existing uploads #167

Open
nigeljh99 opened this issue Aug 21, 2020 · 3 comments
Open

Facility to recalculate layers for existing uploads #167

nigeljh99 opened this issue Aug 21, 2020 · 3 comments
Labels

Comments

@nigeljh99
Copy link

Hi there,
Just started using your plugin but as with others I have a large number of gcode files already within octoprint. Most of which would be a great pain to recreate and reupload …
Would it be possible to have a button or maybe for the system to just rescan a file automatically if there is no layer detail within your plugin for the file .. Would make it a great deal more usable and would remove the informative yet not very useful error message!

@CmdrCody51
Copy link

Hi there,
Just started using your plugin but as with others I have a large number of gcode files already within octoprint. Most of which would be a great pain to recreate and reupload …
Would it be possible to have a button or maybe for the system to just rescan a file automatically if there is no layer detail within your plugin for the file .. Would make it a great deal more usable and would remove the informative yet not very useful error message!

I wrote a little script to do this. I put it up on GitHub https://github.com/CmdrCody51/3D-Scripts One option is to strip the M117 messages that DisplayLayerProgress puts in so it should reprocess the file with out getting messed up. But if there are no layer metadata in the file - then DLP still won't be able to parse it correctly. It uses the watched folder from OctoPrint to automate the loading. I do not know if it works with OctoPi. You'll probably have to chmod +x Reload.sh to get it to run.

@nigeljh99
Copy link
Author

Thank you, I have run the script but still a little confused as to how it does what it needs to do ..
My understanding is ;
It strips out DLP stuff from original gcode and puts that file into the watched folder whereby it is reimported into octoprint and DLP then processes it again properly ..
Is that right ?

@CmdrCody51
Copy link

Thank you, I have run the script but still a little confused as to how it does what it needs to do ..
My understanding is ;
It strips out DLP stuff from original gcode and puts that file into the watched folder whereby it is reimported into octoprint and DLP then processes it again properly ..
Is that right ?

That's the theory. Problem being if DLP couldn't process it because of no layer markers - it will still not be able to process it.
And I'm having the dickens of a time to get it to handle spaces and special characters (I use those a lot).
You can compare the two files if you want. I noticed the DLP now does CR-LF...
I am also not sure how or when OctoPrint handles the metadata from deleted files.
Always learning....
Brett

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants