OllisGit / OctoPrint-DisplayLayerProgress

OctoPrint-Plugin
GNU Affero General Public License v3.0
123 stars 24 forks source link

GCode Viewer Layer Information #235

Open j-n7 opened 2 years ago

j-n7 commented 2 years ago

Hello there, would it be possible to use the existing layer information from octoprint? Like many others, I have already uploaded a lot of gcode files to octoprint, and I honestly don't want to upload them again. I know octoprint shows the current layer in the gcode viewer, so shouldn't there be a way to use that information instead of modifying the gcode?

Thank you so much for the great plugin! It's really a pleasure to use it, especially now that I can finally use the LCD of my Ender 3 v2 for such information.

Cheers Jani

stale[bot] commented 2 years ago

This issue has been automatically marked for closing, because it has not had activity in 30 days. It will be closed if no further activity occurs in 10 days.

OllisGit commented 2 years ago

Hi @JaniDJ,

the DLP-plugin started with OP Version 1.3. and in this version the gcode viewer was a JavaScript based solution, so it only runs in the browser. If you close the browser you can't provide the data to other plugins e.g. mobile-apps. Also there was/is no "API" for grabing such information, maybe in the future releases of OP there will be an "developer-interface" to collect such informations directly from OP. That was the reason why I decide to wrote a custom parser on the server side.

CmdrCody51 commented 2 years ago

Specifically for j-n7 (and others) I have a script to reload all your files for you. Reload.sh.zip This is kind of dangerous as you RPi will be quite busy reprocessing all your files 8-) Read it before using it - I run it from my .octoprint directory.