-
Notifications
You must be signed in to change notification settings - Fork 33
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
Model height wrong #253
Comments
I am confused. Please write: What is the height that is displayed by OctoPrint? What is the height that you expected? In the bug report you wrote that the expected behavior was "8.". |
I see that PTG reports the "height" as "maxZ" minus "minZ", which is indeed 9.8mm. Is it better to report 10mm? I suppose so because that min height of 0.2mm is just the thickness of the layer. I guess that for height I could just always report maxZ? I'm also not accounting for nozzle thickness, I guess technically we should also be reporting X and Y to be enlarged by the thickness of the nozzle. Ah well, no big deal. |
The right value´s are the ones from pictures in 8. 23.28x23.28x10. With PTG enabled it shows 23.28x23.28x9.8. X and Y is correct but Z is wrong. I am here for testing ;) |
Here's where things went wrong: OctoPrint/OctoPrint@4c4570e Maybe the heights reported by PTG and OctoPrint's built-in analyzer used to match before this change. I can make the same change. |
Yes, that's it. This is the reason why i referenced this issue there. I opened both issues. As OP is fixed now you have to match your code 😁. |
This fixes #253 This is related to OctoPrint/OctoPrint@4c4570e
If you'd like to look at the PR, be my guest. If you want to download it, install this at a plugin: https://github.com/eyal0/OctoPrint-PrintTimeGenius/archive/refs/heads/bedZ.zip You will need to re-analyze files for it to take effect. |
I will test tomorrow due to an ongoing print. |
Tested and confirm it is working. Thanks a lot |
Describe the bug
If PrintTimeGenius is activated the height is wrong in web Ui and .metadata.json. If i deactivate PrintTimeGenius .metadata.json and Web Ui has the right data.
To Reproduce
Steps to reproduce the behavior:
Delete .octoprint/uploads/.metadata.json
Activate PrintTimeGenius
Upload Gcode
Result:


Delete .octoprint/uploads/.metadata.json and Gcode
Deactivate PrintTimeGenius
Upload same Gcode
Result:


Expected behavior
8.
OctoPrint Version:
1.6.1
PrintTimeGenius Version (if you know):
2.2.7
Nut.gcode.txt
plugin_PrintTimeGenius_engine.log
The text was updated successfully, but these errors were encountered: