NilsRo / OctoPrint-SlicerEstimator

GNU Affero General Public License v3.0
5 stars 1 forks source link

No print time estimation from slicer available. Please upload GCODE file again. #50

Closed MarshMalloW0007 closed 2 years ago

MarshMalloW0007 commented 2 years ago

_Simplify3D

With Simplify3D no changes has to be applied to Simplify3D. The overall print time is read out of a comment in the GCODE. For a correct estimation OctoPrints percentage done is used as there is only the overall print time available._

At the end of my gcode file : ; ; Build Summary ; Build time: 22 hours 11 minutes ; Filament length: 33476.6 mm (33.48 m) ; Plastic volume: 80520.55 mm^3 (80.52 cc) ; Plastic weight: 100.65 g (0.22 lb) ; Material cost: 3.02

NilsRo commented 2 years ago

Can you upload a gcode file that I can reproduce it. I am on vacation and will check it when I am back.

MarshMalloW0007 commented 2 years ago

TT-S3D-SupportCasqueAudioE_Arceau-1P-PPLAPlus_A13_04_10s_215.zip I use a Git Repository with my Octoprint, not upload.

Good vacation.

NilsRo commented 2 years ago

@MarshMalloW0007 : You can activate dev mode in the settings and update to the newest dev version. I implement a fix for that.

BTW. The remaining time in your uploaded example it different from your first post. There was a bug in the regex that "1 minute" was not recognized but 22 hours 11 minutes should work fine. So please test both. - It could be also the case that your Github plugin does not use the official API for file management so the scan of the GCODE would not be done. This would then be the case for all plugins related on this and a bug in that plugin. But let us see how your tests are going...

MarshMalloW0007 commented 2 years ago

Hello NilsRo,

I'm sorry, I posted another file with the same problem.

I will try the dev version.

NilsRo commented 2 years ago

Ok, then perhaps we have a second problem. But let us see if the uploaded file will work fine now.

MarshMalloW0007 commented 2 years ago

Hello NilsRo, The same thing....

NilsRo commented 2 years ago

Ok, then let us go the next steps:

ModischFabrications commented 1 year ago

I get the same error, seems like it's not resolved?

NilsRo commented 1 year ago

I get the same error, seems like it's not resolved?

  • Uploaded via PrusaSlicer v2.5.0
  • OctoPrint 1.8.6
  • Slicer Estimator (1.5.7)

Hi.

Could you create a new issue and upload your GCODE file. Its not technically a real error its simply that the estimation could not be read out e.g. if it is not added by the slicer or perhaps the format changed. With the GCODE file I can check it and adapt the detection if neccessary. PRusa Slicer is supported so we have to see what caused this.

Also this happens if you start a print that was uploaded to OctoPrint before the plugin was installed as the parsing is done during the upload as the GCODE file is adapted.

Cheers, Nils

MarshMalloW0007 commented 1 year ago

Hello Nils, Hello Robin,

Sorry for the late reply.

I took the time to install OctoPrint on another Rapsberry : OctoPrint 1.8.6 Python 3.9.2 OctoPi 1.0.0 Slicer Estimator 1.5.7

Everything works. Look at the screenshots.

As I had some problems with my production Raspberry/OctoPrint, I reinstalled the Raspberry: OctoPrint 1.8.6 Python 3.7.3 OctoPi 0.18.0. I reinstalled a backup of my installation. The version of Slicer Estimator is 1.5.7 The other problems are gone, but still the same error with Slicer Estimator. It is also impossible to do "Refresh Metadata".

I tested with the same file.

Dev - Capture d’écran 2022-12-10 111303 Dev - Capture d’écran 2022-12-10 111408 Dev - Capture d’écran 2022-12-10 111524 Prod - Capture d’écran 2022-12-10 114126 TT-S3D-Pumpkin_Lid_150-1P-P13_04_10.zip

NilsRo commented 1 year ago

@MarshMalloW0007 : The file you uploaded does not contains any metadata tags readable by slicer estimator. It have to looks like described here https://github.com/NilsRo/OctoPrint-SlicerEstimator#metadata This has to be done in the slicers configuration, perhaps you dropped it if you also reinstalled S3D?

If it would be helpful I can add an option to get the slicers common metadata but it is not 100% stable as the slicers do not use a readable format, it is added like a comment. So something could be going wrong as I decided to avoid this at first.

You can see that here that the comma is not a good separator but it could work mostly. image

NilsRo commented 1 year ago

Forget it: I still implemented it. Haha. Will have a look...

MarshMalloW0007 commented 1 year ago

Like this :

;Slicer info:material_brand;Sunlu ;Slicer info:material_name;Yellow/133051 ;Slicer info:temperatureSetpointTemperatures;200,195,55,50

at the bottom file => same result.

TT-S3D-Pumpkin_Lid_150-1P-P13_04_10.01.zip

It's work in my dev OctoPrint. I think it's a conflict with another plugin.

NilsRo commented 1 year ago

The standard comments are still parsed so the special comments are necessary only if you like to add additional infos. I found a bug which is perhaps related but I am not sure. It breaks the JS GUI if you are logged in during upload sometimes...timing issue...I fixed it in the actual development branch. But to work around it you have to refresh the browser.

Give it a try, you can change to dev version in the plugin settings.

If that does not fix the issue please enable the debug log for Slicer Estimator that we can see some additional info in the logs and add the log but please open a new issue. You can open it in from the settings and it will add your installed plugins automatically.

This issue was opened because of the remaining print time that was sometimes not detected.

MarshMalloW0007 commented 1 year ago

I found how to make the plug-in work, but not with the way I work.

If I upload the file with the browser, it works, I have access to the metadata, the Refresh MetaData button.

If I upload the file in SSH or via my GIT, it doesn't work.

NilsRo commented 1 year ago

@MarshMalloW0007 Then you are not using the official API with that workflow. There is a upload folder where the files has to be placed that it will be scanned by OctoPrint. That is a system immanent design by OctoPrint.

MarshMalloW0007 commented 1 year ago

My files are uploaded in ssh/git in the folder defined in the OctoPrint configuration.

However, I don't know if OctoPrint imposes to upload only via the browser.

Prod - Capture d’écran 2022-12-11 142807 Prod - Capture d’écran 2022-12-11 142439

NilsRo commented 1 year ago

https://community.octoprint.org/t/how-to-add-files-directly-to-upload-directory/19704

Its not allowed to upload to upload folder it has to be managed by OctoPrint. You have to use the watched folder.

MarshMalloW0007 commented 1 year ago

Thank you, I'm reading this and looking at what I need to change in my flow.

ModischFabrications commented 1 year ago

Minor addition to my error: "Printer Settings > Supports remaining times" was unchecked, this might have been the error.

MarshMalloW0007 commented 1 year ago

Hello Nils,

Everything works, thanks for your help.

Before, I was using the OctoPrint-GitFiles plug-in and I didn't care about the watched folder.... Then, when the plug-in became obsolete (python <3), I managed the pull manually and completely forgot about the need for the watched folder.

The problem was not where it was...