j7126 / OctoPrint-Dashboard

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

[Bug]: Extruded Filament not being reflected unless dashboard refreshed. #343

Open Gozania opened 2 years ago

Gozania commented 2 years ago

The problem

  1. As title suggests, filament not being reflected (is being counted) during a print. The only way to see the current extruded filament is to either A) Refresh ocotoprint window. B) Go fullscreen in dashboard (faster than refreshing octoprint instance) C) Go from fullscreen to normal sized dashboard window. It appears anytime the dashboard is refreshed it will show the current amount of filament extruded. Perhaps have this widget "refresh" every 5 seconds or upon every layer completion?

Version of OctoPrint

1.8.0

Platform

Raspbery Pi 4 8GB

Operating system running OctoPrint

Octopi

Dashboard version

1.19.8

Python version

3

Printer model & used firmware incl. version

Ender 3V2 : Jeyers V2.0.2h

Browser and version of browser, operating system running browser

Firefox 100.0.2 (64 Bit)

Logs and other files needed for analysis

File uploads & additional information

octoprint-systeminfo-20220522204952.zip

Before screen refresh after printing for a while

Before full screen

After going to fullscreen shortly after first screenshot taken

After fullscreen
j7126 commented 2 years ago

This looks similar to issue #336 which already has a fix ready for the next release.

You can try it out by installing the version from development branch using this url https://github.com/j7126/OctoPrint-Dashboard/archive/development.zip

Please let me know does this solve the problem?

Gozania commented 2 years ago

This looks similar to issue #336 which already has a fix ready for the next release.

You can try it out by installing the version from development branch using this url https://github.com/j7126/OctoPrint-Dashboard/archive/development.zip

Please let me know does this solve the problem?

Did not solve the problem for me. Only thing I noticed is the countdown timer has become laggy. However extruded filament distance still remains the same after almost an hour of time elapsed.

Start of monitoring

Screenshot 2022-05-28 005850

End of monitoring

Screenshot 2022-05-28 015648

As you can see the extruded filament is the same...

Gozania commented 2 years ago

For whatever reason it works now...

Gozania commented 2 years ago

Had to reopen this issue... It appears it worked correctly after a full shutdown of the pi (power included). The extruded amount will update and function as it should for the first print after reboot, however every subsequent print the extruded amount stays the same regardless of time elapsed during print.

Having just discovered this, I will attempt to repeat the same result by shutting down the pi fully and starting a print after reboot. Will post findings here.

ochm commented 1 year ago

Yes, the amount of filament is not updated until page refresh (F5). Trying in Chrome, Firefox ESR, both in latest versions.

j7126 commented 1 year ago

Hi @Gozania @ochm I have added a new fix to the development branch.

Please reinstall from the development branch and let me know if it is working. https://github.com/j7126/OctoPrint-Dashboard/archive/development.zip (Please note this branch may be unstable)

Gozania commented 1 year ago

Hi @Gozania @ochm I have added a new fix to the development branch.

Please reinstall from the development branch and let me know if it is working. https://github.com/j7126/OctoPrint-Dashboard/archive/development.zip (Please note this branch may be unstable)

Looking good so far.... Will report after I start my next print.

Gozania commented 1 year ago

Looks to be working properly now.

Gozania commented 1 year ago

I spoke too soon... The extruded filament has been fixed, it now displays in real time and dont need to refresh between prints. However I have been doing some 2 color prints and the time until filament change is not working... Have done several prints & none of them displayed the time.

j7126 commented 1 year ago

I spoke too soon... The extruded filament has been fixed, it now displays in real time and dont need to refresh between prints. However I have been doing some 2 color prints and the time until filament change is not working... Have done several prints & none of them displayed the time.

@Gozania Please send the gcode file

Gozania commented 1 year ago

Here is the Gcode of one of the prints I did. Others were same stl, just different layers at color change. This is the latest that did not reflect a filament change time. Octopus_spiral_sup_v64h35m$1.20266_22.2798g_7.47005m_210C_PLA.zip