Closed jmtd closed 1 year ago
Side-note: I guess this would be the job for a different plugin, but it would be cool if Octoprint could show the thumbnail on my Prusa Mini when it's printing.
Unfortunately, that's not possible. For it to show on the Mini the entire file has to be accessible on the SD card of the printer and not sent line at a time. I think Prusa is detecting the file being sent line at a time and shows that logo, and probably does for any host software that is connected to it sending gcode.
As for your description of the problem, I think I need more details. It's not designed to show up if inline thumbnails is not enabled. Are you saying the picture doesn't show when you click the image button to open the pop-up view?
Unfortunately, that's not possible. For it to show on the Mini the entire file has to be accessible on the SD card of the printer and not sent line at a time. I think Prusa is detecting the file being sent line at a time and shows that logo, and probably does for any host software that is connected to it sending gcode.
Thanks yes, I read a bit more about it. It seems the Octoprint logo is baked into the Prusa Mini firmware.
As for your description of the problem, I think I need more details. It's not designed to show up if inline thumbnails is not enabled. Are you saying the picture doesn't show when you click the image button to open the pop-up view?
The image button is not showing up. Inline thumbnails seem to work as expected, but the image button is not visible (whether inline thumbnails are on or off)
Thanks!
Probably a plugin conflict then that is not allowing the button to show when inline thumbnails is disabled. I think GCODE Editor was one of them that has caused this in the past. With inline thumbnail enabled you can click on the image to open the pop-up view.
Probably a plugin conflict then that is not allowing the button to show when inline thumbnails is disabled.
This is the only plugin I have activated. I have had "Prusa Mini ETA Plugin (0.1.4)" activated in the past but disabled it to test this.
With inline thumbnail enabled you can click on the image to open the pop-up view.
Yep that works.
I'm curious how to go about debugging this. Does the plugin log anything somewhere?
For the UI elements in the file list the only chance of debugging would be if there are errors thrown in the browser's developer tools (F12) on page load.
Thanks. I'll poke around in there. I haven't done front-end work in 20 years so I have some catching up to do. First look, I can see why the icon is not appearing,
<div class="btn btn-mini" data-bind="click: function() { if ($root.loginState.isUser()) {
$root.prusaslicerthumbnails_open_thumbnail($data) } else { return; } }, visible: ($data.thumbnail_src ==
'prusaslicerthumbnails' &&
$root.settingsViewModel.settings.plugins.prusaslicerthumbnails.inline_thumbnail() == false)" title="Show
Thumbnail" style="display: none;"><i class="fa fa-image"></i></div>
(I've added some artificial newlines into the above for legibility on GH)
If I edit away the display: none;
then there they are! So now I try to figure out why they've got display: none
set in the first place (or, what process is not working to unset it.)
visible: ($data.thumbnail_src ==
'prusaslicerthumbnails' && $root.settingsViewModel.settings.plugins.prusaslicerthumbnails.inline_thumbnail() == false
This is what is setting that visibility. Meaning if this plugin was the one that extracted the file and online thumbnails are not enabled then show the button.
This issue has been automatically marked as stale because it has not had activity in 14 days. It will be closed if no further activity occurs in 7 days
Thanks for this plugin!
I've found with Octoprint 1.8.2, the following weird results
However, if I select "use inline thumbnails", I see inline thumbnails for all my gcode files, even though they are listed in the above error.
Side-note: I guess this would be the job for a different plugin, but it would be cool if Octoprint could show the thumbnail on my Prusa Mini when it's printing. At the moment it sents an Octoprint icon so it is possible to show something there. But obviously that'd be a Prusa Mini-specific feature, and this is not a Prusa Mini-specific plugin.