octoprint-prusaslicerthumbnails's People
Forkers
tideline3d zinc-os lightmaster ssendev makerspace-gt giloser darbis iviar lachlanbell notexpectedyet fivesixzero andreasbrett lineuve neosoro msmthng thomastoka lifeisafractal golumpa x40-communityoctoprint-prusaslicerthumbnails's Issues
Missing image button
Thumbnails not available for PrusaSlicer 2.3.0-beta1
I started using the 2.3.0 beta version of PrusaSlicer and lost my nice thumbnails.
PrusaSlicer 2.3 Alpha 2 Plugin dont works
Hi Thanks for your hard work,i love your Plugin,in the new PrusaSlicer 2.3 Alpha 2 your Plugin dont works,can you please make a new workaround for thumbnails = 16x16,220x124 because in PrusaSlicer 2.3 the Octoprinter Profil is a Pysical Printer Profil and there is no line with thumbnails ? Thanks
Adjust Configuration Instructions to be More Detailed
Select Show Configuration Folder from the help menu a directory should open that is on your machine. In that folder there is a sub-folder named printers. Each of the ini files in that folder are the equivalent of your Printer list you see in PrusaSlicer in the top right of the application. Open the printer setting you want to modify in a text editor like Notepad or Notepad++ (all depends on your operating system) and look for the text "thumbnails = " and add the resolutions after the equal sign. So for example make it so it looks like "thumbnails = 16x16,220,124" (without the quotes). Once you've made the change restart PrusaSlicer and slice up a file and upload to OctoPrint.
thumbnail= -> thumbnails =
The instructions for other printers (including my MK3s) indicate I should adjust an entry called thumbnail. This entry was not there in my configuration file, there is a entry thumbnails however.
Adjusting that as indicated worked just fine :)
Thumbnails not working for subdirs
Had an existing subdir in OctoPrint file structure hosting some old files and when I navigate into this directory none of the line items (separate gcode files) have the icon for the thumbnail. But works GREAT in main directory.
Thumbnails gone after moving from subfolder
Greedy regex
For me current regex is too greedy.
When slicer generates small and big thumbnail in octoprint I see only the small one(first instead of last).
After a little of debugging I saw that len(matches) returns 1. Problem is that current regex match from start of first thumbnail to the end of second one.
Changing
regex = r"(?:^; thumbnail begin \d+x\d+ \d+)(?:\n|\r\n?)((?:.+(?:\n|\r\n?))+)(?:^; thumbnail end)"
to
regex = r"(?:^; thumbnail begin \d+x\d+ \d+)(?:\n|\r\n?)((?:.+(?:\n|\r\n?))+?)(?:^; thumbnail end)"
Fixes problem for me and shouldn't break anything.
Thumbnails Broken With File Moves
Strangley, whilst I can still upload via Prusa Slicer, the thumbnails are no longer showing in Octoprint UI...
2020-04-22 13:47:10,745 - tornado.access - WARNING - 404 GET /plugin/prusaslicerthumbnails/thumbnail/Overglasses_Frame_V3b2_(2no)_0.3mm_PETG_MK3S_1h44m.png?20200422134115 (::ffff:192.168.0.133) 12.28ms
2020-04-22 13:47:18,155 - tornado.access - WARNING - 404 GET /plugin/prusaslicerthumbnails/thumbnail/Overglasses_Frame_V3b2_(2no)_0.3mm_PETG_MK3S_1h44m.png?20200422134115 (::ffff:192.168.0.133) 3.78ms
2020-04-22 13:49:19,922 - octoprint.plugins.prusaslicerthumbnails - INFO - File Added: Overglasses_Frame_V5B_0.3mm_PETG_MK3S_58m.gcode
2020-04-22 13:49:26,914 - tornado.access - WARNING - 404 GET /plugin/prusaslicerthumbnails/thumbnail/Overglasses_Frame_V3b2_(2no)_0.3mm_PETG_MK3S_1h44m.png?20200422134115 (::ffff:192.168.0.133) 7.17ms
I move the files from root to a different directory. Thumbnail was fine at first, but then I restarted the server and now I don't see the thumbnail, just a placeholder.
Edit: I did restart Prusa Slicer, so that's not the issue. :)
Originally posted by @ruralaccent in #3 (comment)
Thumbnail gone on octoprint instances with a shared upload folder
No Thumbnail in State panel
exception parsing thumbnails
I stopped seeing thumbnails at some point, and I see this in OctoPrint's log on a freshly-uploaded file:
2020-05-22 16:21:31,130 - octoprint.filemanager.analysis - INFO - Starting analysis of local:2020-05-22_NinjaFlex_3D_Benchy_0.2mm_FLEX_MK3S_2h27m.gcode
2020-05-22 16:21:31,131 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /opt/octoprint-venv/bin/python -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /run/octoprint/uploads/2020-05-22_NinjaFlex_3D_Benchy_0.2mm_FLEX_MK3S_2h27m.gcode
2020-05-22 16:21:31,175 - octoprint.plugin - ERROR - Error while calling plugin prusaslicerthumbnails
Traceback (most recent call last):
File "/opt/octoprint-venv/lib/python3.8/site-packages/OctoPrint-1.4.0-py3.8.egg/octoprint/plugin/__init__.py", line 224, in call_plugin
result = getattr(plugin, method)(*args, **kwargs)
File "/opt/octoprint-venv/lib/python3.8/site-packages/octoprint_prusaslicerthumbnails/__init__.py", line 92, in on_event
self._extract_thumbnail(gcode_filename, thumbnail_filename)
File "/opt/octoprint-venv/lib/python3.8/site-packages/octoprint_prusaslicerthumbnails/__init__.py", line 62, in _extract_thumbnail
gcode = octoprint.util.comm.gcode_command_for_cmd(line)
File "/opt/octoprint-venv/lib/python3.8/site-packages/OctoPrint-1.4.0-py3.8.egg/octoprint/util/comm.py", line 4739, in gcode_command_for_cmd
gcode, _ = gcode_and_subcode_for_cmd(cmd)
File "/opt/octoprint-venv/lib/python3.8/site-packages/OctoPrint-1.4.0-py3.8.egg/octoprint/util/comm.py", line 4747, in gcode_and_subcode_for_cmd
match = regex_command.search(cmd)
TypeError: cannot use a string pattern on a bytes-like object
2020-05-22_NinjaFlex_3D_Benchy_0.2mm_FLEX_MK3S_2h27m.gcode.gz
[Feature Request] Add Print button and details to window when clicking on thumbnail in File panel
First thanks for the plugin, it is a huge help keeping track of items in the queue.
I have inline thumbnails enabled and when I mouse over the image, the entire file "cell" including details and action buttons highlights implying some sort of global action, but a click only brings up an enlarged version of the image itself. It would be extremely convenient if this window included action buttons (posibly a large print button) and all of the extended file details as part of a purpose made screen. A small extension would be arrow buttons (and or Up/down keyboard shortcuts) to scroll through all files while in this popout window with the larger image size to clearly see differences in files.
With inline thumbnails displayed, only one file fits in the Files pane at a time and then only with careful alignment and the extended details hidden, breaking everything out to a larger window makes reading this easier. An option (probably a separate feature request) to extend the height of the Files panel would also be a useful adaptaiton to better show off the thumbnails.
No image button to toggle thumbnail preview
Thumbnail feature not working
Hi. I'm having an issue with the Thumbnail feature not working correctly in Octoprint. This may well be a mistake on my part.
Steps taken:
1.) Go to Help > Show Configuration Folder
2.) Go to vendor folder and open PrusaResearch.ini
3.) Add in a thumbnails line..exact code including last line of thumbnails is:
[printer_model:MK3S]
name = Original Prusa i3 MK3S
variants = 0.4; 0.25; 0.6
technology = FFF
family = MK3
bed_model = mk3_bed.stl
bed_texture = mk3.svg
default_materials = Generic PLA; Generic ABS; Generic PETG; Prusament PLA; Prusament PETG; Prusament ASA; Prusament PC Blend
thumbnails = 16x16,220x124
4.) In PrusaSlicer..import a model...Slice model...press 'send to printer'
5.) Model appears in Octoprint..but no thumbnail icon appears.
Thanks for any clues on what I'm doing wrong...(unless this is a bug..but seems unlikely given others have no issuess)
Thumbnail Alignment Options
Would it be possible for alignment options to be a dropdown menu or radio buttons etc.? At the moment you have to type in what you want.
Fixed options will negate issues with folk who don't understand html/css commands...and anyone who doesn't use US English spelling for 'centre'!
No immediate hurry, but just a suggestion to avoid confusion/error.
Many thanks.
Plugin with Themeifiy
Hello,
Sorry I don't understand what I must to do in Themeify with this line:
div.row-fluid.inline_prusa_thumbnail > img
Can you explain me?
PrusaSlicer Crashing when loading edited profile
Unfortunately, when I create a copy of the profile (for the MK3S) and add the thumbnail line to it, Prusaslicer crashes when I try to load the new printer profile. I'm using PS 2.1.1 64bit and edited the ini file with notepad++. I've uploaded the resulting ini file in case anyone wants to take a look and provide any suggestions.
No button available - maybe due to Canvas Plugin
I'm running OctoPrint 1.4.0 (@ OctoPi 0.16.0).
Installing PrusaSlicer Thumbnails 0.1.0 doesn't show up the button for displaying the thumbnail:
As additional info: I'm running the Canvas Plugin 2.3.3 since I have the Palette2. This plugin also modified the UI, by adding additional information to the file list.
Best regards,
Bastian
Image not update if file is re-uploaded
Messing around with changing the order of the thumbnails in the gcode and notice that it appears once you have a thumbnail for an object, a new one isn't created when the same filename is re-uploaded.
Other than that seems to be working as expected.
I can't put my hands on the Mini at the moment as it's remote, but my recollection is that the 16x16 thumbnail is used in the object list on the display, and the larger thumbnail is used when viewing or printing the object. I'm not sure if they parse that out, or if they just take the first thumbnail and use it for the object list. Changing the order in the ini does of course change the order in the gcode, but might not work on the Mini, I'll have to test that when I can physically get to the Mini.
As I'm updating my plugins in OctoPrint I'm noticing your name on a majority of the plugins I use, is there some place I can drop you a tip? Same username on Thingiverse, I could use that?
Access Thumbnail via API?
First, I'm not even sure if, as part of the OctoPrint plugin system, you can even expose something via the REST API to begin with... that being said.
It would be awesome if there were a REST endpoint where I could fetch the thumbnail image of the current print.
Or maybe offer it up as an endpoint with a secure token on the end, like:
http://192.168.0.2/api/plugins/thumbnails/currentjob.jpg?token=abcd1234abcd1234....
I was hoping that it would be available in the GET /api/job
call but no dice there.
Is this possible, and if so, could this be added in a future update?
Incorrect url for multiinstance config
Hi there,
I'm running octoprint in 2 instances on one RPi.
http://192.168.73.245/P2
http://192.168.73.245/P1
defined in haproxy config
haproxy.zip
But this plugin generates image url
http://192.168.73.245/plugin/prusaslicerthumbnails/thumbnail/Shape-Box_0.6n_0.1mm_PETG.png?20200422110821
As you can see, the part which defines which Octoprint instance is called (/P1 or /P2) is missing in your image url.
Please, can you repair it?
WARNING: UPGRADE TO 0.0.5 PREVIOUS WORKING IMAGES ARE BROKEN
There's a chance that previously uploaded gcode with successfully extracted images will not display the button or inline thumbnail after upgrading to 0.0.5. This is a result of the compatibility feature with UltimakerFormatPackage and was required to allow both plugins to work together. Simply re-uploading your gcode files should resolve the problem.
PrusaSlicer 2.2.0-alpha4 does not start after modifiyng printer settings
I use this version of PrusaSlicer (in the title) and it denies to start after i add the thumbnail sizes in the printer configuration.
Is this a problem with the slicer version?
Which version is safe?
[Feature Request] Add option to remove thumbnail from GCODE
With MK3 printers the thumbnail included in the gcode when uploaded to SD card causes a delay when you start the print as it processes through the comments. See prusa3d/PrusaSlicer#4127
2.3.0 Alpha - any idea where to add thumbnails = 16x16,220x124 ??
trying out the latest alpha version 2.3.0 but not able to get the thumbnails working.
Any idea where to add the settings? Tried already all printer inis without success :-(
thumbnails = 16x16,220x124
Enhancement Request - Scan for thumbnails via API
It would be nice to be able to trigger a scan via API from an external program/script.
I often copy gcode files between printers via script and have to go to settings and rescan after each.
Add thumbnail to State area
"Gcode editor plugin" wont display
am using the gcode editor plugin which inserts an icon next to the "open" and "print" icons below the gcode file in the file manager. The thumbnail will not display because of this. Once disabled the thumbnail displays fine. Inline, and with button.
Running Octoprint in dual setup...
Hi! I'm running multiple instances of Octoprint on the same system to be able to control two printers from the same RPi. I followed this guide and all works well. However, for some reason I only see the thumbnail pictures on one of the instances (the one I uploaded the gcode to), So if I upload to my "MK2.5", I only see the thumb there, and a "broken" thumb in the "MK3" instance. I'm using the "same" upload directory on both instances (located on another server). Even though I do a "Scan files", the thumbnail does not show in the "other" instance... Here is a picture example...
I don't know if this is fixable. Maybe if the "thumbnail-storage-directory" could be set manually in a configuration option?
The first instance uses : ~/.octoprint/data/prusaslicerthumbnails/
and the second uses: ~/.octoprint2/data/prusaslicerthumbnails/
And that's ok, but the thumbs only get's "created" on upload... ?
State Thumbnail Not Updated
The thumbnail displayed in the State panel does not update if a gcode file of the same name is uploaded. The new gcode will be printed if the State panel's print button is pressed, but the State panel thumbnail will remain out of date.
Steps to reproduce:
- Upload a gcode file
- Start a print
- Cancel the print
- Upload a different gcode file under the same name
- Notice the difference between the thumbnails in the State panel and the Files panel.
An example is shown here, where a model was cut, the new STL sliced, and the resulting gcode uploaded under the same name:
Can't upload gcode with thumbnails.
Hi,
thanks for this great plugin.
I am using
PrusaSlicer Version 2.2.0+w64 and
Octoprint Version 1.4.0
I created a new Printer Profile in PrusaSlicer, that the thumbnails =
section appears.
Then I sliced a stl file and uploaded it to Octoprint. It is working fine through PrusaSlicer and drag&drop on the webUI.
Then i added thumbnails = 16x16,220x124
and from that moment on, the upload to Octoprint fails with the following error:
Konnte die Datei nicht hochladen. Bitte stelle sicher, dass es sich um eine lesbare valide Datei mit einer dieser Erweiterungen ist: .g, .gco, .gcode
If I change the thumbnails = 16x16,220x124
back to thumbnails =
the upload is working again.
So, I don't think this is an issue of your plugin, but maybe Octoprint or my configuation.
Any help is appreciated.
Thanks,
Andi
No thumbnail rendered, memory error in octoprint.log
I uploaded big (128MB) .gcode file, and no picture is shown in Octoprint.
In octoprint.log i found:
_2020-05-09 05:28:09,509 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /home/pi/oprint/bin/python2 -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/pi/.octoprint/uploads/skull_0.6n_0.15mm_PETG.gcode
2020-05-09 05:28:12,068 - octoprint.plugin - ERROR - Error while calling plugin prusaslicerthumbnails
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/plugin/init.py", line 224, in call_plugin
result = getattr(plugin, method)(*args, **kwargs)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_prusaslicerthumbnails/init.py", line 80, in on_event
self._extract_thumbnail(gcode_filename, thumbnail_filename)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_prusaslicerthumbnails/init.py", line 59, in extract_thumbnail
test_str = test_str.replace(octoprint.util.to_native_str('\r\n'),octoprint.util.to_native_str('\n'))
MemoryError
Current free:
# free
total used free shared buff/cache available
Mem: 997372 225356 576128 8392 195888 703684
Swap: 102396 67072 35324
Zipped whole gcode is too big to be attached (34MB).
I made only thumbnail fragment
thumbnail-only-skull_0.6n_0.15mm_PETG.gcode.zip
Change color of Thumbnail
100% CPU and Lock with the version 0.0.4
Hi with the last version 0.0.4 if I send a job to Octoprint all lock. And the Octoprint take 100CPU.
Disable the plugin or use the previus version (0.0.3) all work great.
No specific log found.
You can download an example of the gcode from url Gcode File. Link valid until 1/5/2020
Most recent update removed thumbnails
After the most recent update my thumbnails are intermittently working.
Multiple instances don't show thumbnail
Im having the same issue. After updating to 0.1.1 - newly sliced gcodes dont show a thumbnail.
The gcode file still contains "; thumbnail begin 16x16 832".
Now to the strange part:
Im running multiple instances of OP on one Pi. On the first printer (Prusa) it doesnt show the thumbnail, but on the second printer (Anycubic) it does. I sliced them with different printer profiles (both have thumbs enabled).
If i upload the "Anycubic gcode" to the Prusa - the thumb is showing.
Maybe this helps finding the issue.
Originally posted by @Lanovar in #34 (comment)
Image preview not available...
So I installed the plugin manually (not available through the plugin manager), everything went fine, I have the configuration options in the settings.
I also modified my printer configuration file as described in the settings and export a GCODE with prusaslicer. But no image icon is showing up in the list... I tried enabling the preview option but that does not change a thing either.
Not getting a Thumbnail button in the file list
The plugin seems to be loaded in my OctoPrint 1.4.0 instance The plugin configuration page does show up in the OctoPrint settings.
However, I don't get the new button showing up in the file list as expected.
I have a GCode file with the thumbnail embedded in the file list, but I would think the button would show up regardless of what was in the file.
0.0.3 problem with The Spaghetti Detective plugin
All was working with 0.0.2 but with the 0.0.3 update no more webcam streaming.
With 0.0.3 stopped, my webcam streaming is back.
I have the Spaguetti Detective plugin
Thumbnail State not showing, only thumbnail inline in files
I'm using two octoprint instances, one for a Prusa Mini and one for an MK3S, the Mini works fine and displays the thumbnail in the State and in the Files inline, the MK3S only shows the thumbnail inline in the Files and not the State.
I've made the modification to the printer ini in Slic3r PE, have the newest version of Slicer, newest version of Octoprint with Python3, newest version of the Thumbnail Plugin and have rebooted the OctoPi and flagged and reflagged the setting, the gcode has the thumbnail in it and it is showing up in the file but I can not get it to show in the Printer State.
Any ideas?
Newly uploaded gcode files missing show thumbnail button
After installing the latest version, the show thumbnail button doesn't appear after uploading a new gcode file. If one hits the scan files button, the button subsequently appears.
wrong link in octoprint
when i click on the hompage button where i can download your plugin it leads to this page
Preview icon is not available when choosing 'Start printing after upload' in PrusaSlicer
Tiny bug I think:
The preview icon is not available when choosing 'Start printing after upload' in PrusaSlicer.
It only shows up when you do not print it immediately, or when the print is finished.
For the rest, ๐๐ป๐ช๐ป
Great job.
Octoprint 1.5.0 update and now PrusaSlicerThumbnails no longer show thumbnails in "State"
Updated two separate Octoprint Pi machines, a MK3s and a Prusa Mini to Octoprint 1.5.0
After the update both machines no longer show thumbnails in State, but does show thumbnails in Files.
I disabled all my installed plugins for my Prusa Mini to see if any of them were interfering with your plug-in but still no thumbnails in the State window.
no button no change 0.4 to 1.0
Touch UI Interface Icons
After trying to manipulate the different view options i am unable to get the files to print from my touch UI instance. Only the website works. which is very inconvenient, and breaks my workflow.
This is a very important feature and it renders the use of touch ui semi useless as a standalone controller.
Images below reflect inline and stateless views. Paul de Vries (BillyBlaze) Might have to alter Touch UI to work with this plugin.
Bed Visualizer Not Reading Reported Data
Hello! I have an ender 3 pro with a bltouch sensor installed, the firmware im using is the one provided by creality from the youtube channel, I am trying to use the bed visualizer but am getting some weird results,
I have simple settings
G28
@BEDLEVELVISUALIZER
G29 T
and I get back this in the terminal
Recv: Bilinear Leveling Grid:
Recv: 0 1 2
Recv: 0 -1.775 -0.943 -0.120
Recv: 1 +0.253 +0.968 +1.210
Recv: 2 +2.195 +2.872 +3.142
for some reason the four corners arent getting saved to the bed visualizer the current mesh data is
-100 NaN -0.943 NaN
0 0.253 0.968 1.210
100 NaN 2.872 NaN
-100 0 100
I will attach the log, from doing a quick look the issue seems to be here.
2020-11-09 22:18:28,097 - octoprint.util.comm - ERROR - Error while processing hook bedlevelvisualizer:
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/util/comm.py", line 2952, in _readline
ret = hook(self, ret)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_bedlevelvisualizer/__init__.py", line 327, in process_gcode
self.mesh[~circle_mask] = None
ValueError: operands could not be broadcast together with shapes (3,2) (2,3)
2020-11-09 22:18:28,113 - octoprint.util.comm - INFO - Telling the printer to set the busy interval to our "communicationBusy" timeout - 1s = 2s
2020-11-09 22:18:28,130 - octoprint.util.comm - ERROR - Error while processing hook bedlevelvisualizer:
Traceback (most recent call last):
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint/util/comm.py", line 2952, in _readline
ret = hook(self, ret)
File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_bedlevelvisualizer/__init__.py", line 327, in process_gcode
self.mesh[~circle_mask] = None
ValueError: operands could not be broadcast together with shapes (3,2) (2,3)
Image of current print disappears if you reload or open octoprint in a new browser window
I noticed that the thumbnail of the current print was disappearing after a while, and I realized that it was either because I was reloading the page, or because I was looking from another browser.
State thumbnail visibility
If the user choose to have the thumbnail in "State" panel while printing and the gcode is located in a folder, the thumbnail disappears when user navigate out of that folder or to another folder
in this example I'm printing a file from "Speaker_Box" folder and when I'm viewing the root folder there is no thumbnail:
but if I navigate to the mentioned folder it appears:
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.