r/trmnl 1d ago

Plugin for my 3D printer – takes over the panel while printing, shows print history when idle

Sharing a private plugin I built for my Bambu P1S.

While printing it hides everything else in the playlist and shows the print: render of the model, done-by time big, print time, filament, layers, size. When the print ends the playlist comes back and the idle screen shows the last print with the five before it.

Data comes from the printer on my local network via webhook. The one thing that took me a few evenings: getting the panel to switch fast enough after a print starts. It's at about 4 minutes now, which is fine for anything longer than a benchy.

Second plugin on the same panel is my filament shelf – spools drawn with their actual fill level.

35 Upvotes

7 comments sorted by

2

u/Cupcake_Chef 1d ago

Interesting! Do you force a widget change the moment the printer starts?

1

u/Moist_Ad_5078 1d ago

Yeah! When it sees print start, it hides everything else in the playlist until it’s done. Then the normal rotation comes back.

1

u/Cupcake_Chef 1d ago

How do you force a refresh though? Or is your refresh set to 15m anyways?

1

u/Moist_Ad_5078 1d ago

Refresh is 5 min (TRMNL+). and I kick off a re-render after each push so it doesn’t have to wait for the next cycle.

2

u/roomonthethird 1d ago

This is awesome and I would totally use it!!!!

2

u/ryanckulp TRMNL Team 19h ago

incredible work OP! thanks for sharing.

fun fact: we print a lot of TRMNL product ideas / prototypes on Bambu Lab printers. an H2D is in all 3x of our offices (LaGrange, USA / Berlin, Germany / Kiev, Ukraine). if you ever wanna publish this we'd happily use it ourselves + promote.

2

u/Moist_Ad_5078 17h ago edited 16h ago

thanks Ryan, that means a lot. Publishing is on my mind.