eyal0 / OctoPrint-PrintTimeGenius

Use a gcode pre-analysis to provide better print time estimation
190 stars 32 forks source link

wrong time/ layer calculation - 3% mistake #177

Open diyquad opened 4 years ago

diyquad commented 4 years ago

Hi, With last version of the plugin (under windows), i have a calculation problem on all print, always same problem. Printing % always goes to 103%. PrintTimeGenius seams to stop calculation few layer too soon. here are some printscreen from 2 differents prints (but same results on all prints, always 3% off)

Otherwise print calculation is pretty good, just it stop 3% to soon, so depending on the printing time it can be a lot of minutes missing

I checked the log, and didn't see any problem, all files are calculated with the "gold star" in the settings

Thanks for help Capture d’écran (26) Capture d’écran (27)

eyal0 commented 4 years ago

Weird. PTG doesn't actually report the progress percentage, only the print time remaining. It's up to Octoprint to use that number to figure out the percentage done.

Maybe PTG is reporting a negative print time remaining and that is the problem?

I wonder if this is related to the recent change that I made to save print histories in a new file now.

Are you able to confirm that this is only happening with PTG? Does it happen consistently? If you could reproduce the problem, can you turn on debug logging for PTG and then do another print that gets to 103%?