mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 05:35:30 +02:00
[GH-ISSUE #1166] [Bug]: Printer card always show thumbnail from first plate when printing due to missing gcode file path in MQTT gcode_file #842
Labels
No labels
A1
automated
automated
bug
bug
Closed due to inactivity
contrib
dependencies
dependencies
duplicate
enhancement
feedback
hold
invalid
Notes
P1S
pull-request
security
security
ThumbsUp
user-report
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/bambuddy#842
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @smandon on GitHub (Apr 29, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/1166
Originally assigned to: @maziggy on GitHub.
Component
Bambuddy
Bug Description
I often print from multi-plates files where each plate was sent separately to archives, but the 3mf sent by bambu studio includes thumbnails for all plates. When I print such a file from archives, the printer card always shows the embedded image from the first plate as thumbnail, while the thumbnail displayed in archives is correct.
From what I found, in
api/routes/printers.pytheget_printer_coverfunction gets the value of gcode_file from the printer via MQTT and uses a regex match to determine the plate number and defaults to plate number 1 if it isn't found.However I can see in my logs that gcode_file contains only the name of the 3mf file, not the path to the gcode file inside the archive, that's why it defaults to the first plate. Maybe it's specific to some printers and/or firmware versions.
From what I found analysing some 3mf files, there could be multiple ways to determine the correct plate number/and or thumbnail file from the content of the 3mf file itself:
_rels/.relsfile which gives the right thumbnail file pathMetadata/_rels/model_settings.config.relsfile which give the gcode file pathMetadata/model_settings.configto find the name of the gcode file and the corresponding thumbnail since thegcode_filekey is present only for the correct plate.My guess is that 4 is the quickest and simplest to implement, particularly if you want to avoid parsing xml.
In case multiple gcode files are found, the same logic of falling back to the first plate as default would be fine.
Expected Behavior
It should display the thumbnail for the plate that is being printed
Steps to Reproduce
Printer Model
P1S
Bambuddy Version
v0.2.4b1 daily
SpoolBuddy Version
No response
Printer Firmware Version
01.10.00.00
Installation Method
Docker
Operating System
Linux (Other)
Relevant Logs / Support Package
bambuddy-support-20260429-133647.zip
Screenshots
No response
Additional Context
No response
Checklist
@maziggy commented on GitHub (Apr 29, 2026):
Available/Fixed in branch dev and available with the next release or daily build. Please let me know if it works for you.
BTW:
I strongly suggest to change to Docker network mode host - as per documentation.
If you find Bambuddy useful, please consider giving it a ⭐ on GitHub — it helps others discover the project!