j7126 / OctoPrint-Dashboard

A dashboard for Octoprint
GNU Affero General Public License v3.0
288 stars 39 forks source link

[Bug]: Layer not displayed #390

Closed TMTYD closed 8 months ago

TMTYD commented 1 year ago

The problem

The layers are not displayed in the dashboard, it says 0/0 layers

Version of OctoPrint

1.92

Platform

Raspberry Pi 4

Operating system running OctoPrint

Debian Bullseye

Dashboard version

1.19.10

Python version

3.9.2

Printer model & used firmware incl. version

Anycubic Kobra Go FW: 1.3.4

Browser and version of browser, operating system running browser

Firefox, Win 10

Logs and other files needed for analysis

File uploads & additional information

octoprint-systeminfo-20230803004933.zip layers

antonyburden commented 8 months ago

I have the same issue, everything on latest releases - was this ever addressed?

j7126 commented 8 months ago

I have the same issue, everything on latest releases - was this ever addressed?

@antonyburden this is probably due to a layer analysis issue, which can be caused by a number of factors. Can you let me know which slicer you are using, and also upload an effected GCODE file?

antonyburden commented 8 months ago

Thanks for getting back to me -

I've attached a sample - Using PrusaSlicer 2.7.2

Joint_0.20mm_220C_PLA.zip

j7126 commented 8 months ago

Thanks for getting back to me -

I've attached a sample - Using PrusaSlicer 2.7.2

Joint_0.20mm_220C_PLA.zip

@antonyburden

It looks like your prusaslicer configuration has been changed from the default. Specifically printer settings -> expert -> before layer change g-code By default it has this:

;BEFORE_LAYER_CHANGE
G92 E0
;{layer_z}

whereas in your config it is empty.

The dashboard uses the ;BEFORE_LAYER_CHANGE to detect the layer change, so you at least need that line in there for the dashboard layer detection to work.

antonyburden commented 8 months ago

Thanks, all working now

j7126 commented 8 months ago

uuh, looks like I somehow missed the original poster of this issue. @TMTYD if you are still having the issue, i will look at it if you upload a gcode file.