chatrat12 / layerdisplay Goto Github PK
View Code? Open in Web Editor NEWPlugin for Octoprint that displays what layer a print job is on.
Plugin for Octoprint that displays what layer a print job is on.
Been doing some printing lately, noticed that it was not accurately tracking the current layer. Going to start investigating soon.
Could you update that please?
Thank you for the job!
After updating to the newest octoprint the layer is not showing any longer on ender 3
The number of layers and the current layer are wrong.
For example:
In "Gcode viewer", I can see:
In the Sidebar, I can see:
I use OctoPrint Version 1.3.9, LayerDisplay (0.3.0), printer Creality CR-10 .
What is the problem ?
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
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
Please add Python 3 Compatibility as outlined here.
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
Please add Python 3 Compatibility as outlined here.
Please add Python 3 Compatibility as outlined here.
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
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 ?
Please add Python 3 Compatibility as outlined here.
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:
See also OllisGit/OctoPrint-DisplayLayerProgress#99 from another plugin, also contains steps to solve.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.