Coder Social home page Coder Social logo

layerdisplay's People

Contributors

aerickson avatar chatrat12 avatar foosel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

layerdisplay's Issues

The number of layers is wrong

The number of layers and the current layer are wrong.

For example:
In "Gcode viewer", I can see:

  • Layer count: 118 printed
  • Layer number: 12

In the Sidebar, I can see:

  • Layer: 1 / 59

I use OctoPrint Version 1.3.9, LayerDisplay (0.3.0), printer Creality CR-10 .

What is the problem ?

Adds 2 extra layers

Slicing with Simplify3D and Layerdisplay shows 2 more layers than Simplify3D.

For example: Simplify3D says there is 89 layers and Layerdisplay shows 91 layers.
Also Layerdisplay shows layer 3 is being printed while in real layer 1 is being printed.

I am using OctoPrint 1.3.9 running on OctoPi 0.15.1 (latest release)

Gcode is included in the zip file
6xSmall_Scoop4Max.zip

Plugin does not appear in list of available via Plugin Manager.

I was excited to see this plugin via the news, but could not find it via the plug in manager.
I had to load it via the URL manually. Here is the list of plugins while searching for "Layer" or similarly "LayerDisplay" .

I am on a minty fresh install of OctoPrint 1.3.9rc3 running on OctoPi 0.15.1.

image

possibility to save every layer as a picture

I found this plugin while looking for a way to convert gcode from every layer to a jpg picture. Since this plugin displays the current layer. I have a quesiton is it possible to save every layer in a .jpg picture?

Thanks

List index out of range in gcode analysis

I received this error when loading a gcode file, sliced with slic3r

2018-07-18 13:02:57,267 - octoprint.plugin - ERROR - Error while calling plugin layerdisplay
Traceback (most recent call last):
  File "/home/octoprint/src/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.3.9rc3-py2.7.egg/octoprint/plugin/__init__.py", line 225, in call_plugin
    result = getattr(plugin, method)(*args, **kwargs)
  File "/home/octoprint/src/OctoPrint/venv/lib/python2.7/site-packages/layerdisplay/__init__.py", line 20, in on_event
    self.print_job = PrintJob(payload)
  File "/home/octoprint/src/OctoPrint/venv/lib/python2.7/site-packages/layerdisplay/PrintJob.py", line 17, in __init__
    self.layer_change_info = self._get_layer_info(file_selected_payload['file'])
  File "/home/octoprint/src/OctoPrint/venv/lib/python2.7/site-packages/layerdisplay/PrintJob.py", line 53, in _get_layer_info
    return GCodeAnalyzer.get_print_job_layer_information(gcode, fileSize)
  File "/home/octoprint/src/OctoPrint/venv/lib/python2.7/site-packages/layerdisplay/GCodeAnalyzer.py", line 22, in get_print_job_layer_information
    gCode = line_components[0]
IndexError: list index out of range

And the gcode: 20m_sphere.zip

Layer change is not updating at every layer

When i print i see the layer indicator is not updating every layer
have been watching a print now and i noticed the it updated at 115, 118, 122 so it seams random how many layers between change,

Cura 4.6.1
Marlin 2.0.5.3
Ender 3 with SKR Mini E3 V1.2

Layer use data['progress']['completion'] instead of recompute from "filepos"

Hi,

I'm currently writing a plugin that changes the "completion" in data progress to a "completion" based on time.
https://github.com/celogeek/OctoPrint-ProgressBasedOnTime/blob/master/octoprint_ProgressBasedOnTime/__init__.py

The completion here = Print Time / (Print Time + Time Left)

I have added "file_completion" to keep track of the previous value here.

It would be safer if possible to recompute the file progression based on the "filepos" information and the size of the file you may have kept somewhere.

Or is it possible to use the "file_completion" if it exists instead of completion ?

Plugin uses deprecated field `file` from FileSelected event payload that's going to be removed in 1.4.0

2019-12-12 11:49:50,627 - octoprint.plugin - ERROR - Error while calling plugin layerdisplay
Traceback (most recent call last):
  File "C:\Devel\OctoPrint\OctoPrint\src\octoprint\plugin\__init__.py", line 224, in call_plugin
    result = getattr(plugin, method)(*args, **kwargs)
  File "C:\Devel\OctoPrint\devenv\lib\site-packages\layerdisplay\__init__.py", line 21, in on_event
    self.print_job = PrintJob(payload)
  File "C:\Devel\OctoPrint\devenv\lib\site-packages\layerdisplay\PrintJob.py", line 19, in __init__
    self.file_path = file_selected_payload['file']
KeyError: 'file'

Compare to the docs:

image

See also OllisGit/OctoPrint-DisplayLayerProgress#99 from another plugin, also contains steps to solve.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.