mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-05-09 08:25:54 +02:00
[GH-ISSUE #679] [Feature]: Notification template for first layer finished #449
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
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-maziggy-1#449
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 @shadowjig on GitHub (Mar 12, 2026).
Original GitHub issue: https://github.com/maziggy/bambuddy/issues/679
Originally assigned to: @maziggy on GitHub.
Problem or Use Case
Please add a notification template for when the first layer is finished printing. Add a picture to the notification. This would allow me to check the print if I have to walk away to attend to something else.
Proposed Solution
New notification template
Alternatives Considered
No response
Feature Category
Print Archiving
Priority
Nice to have
Mockups or Examples
No response
Contribution
Checklist
@maziggy commented on GitHub (Mar 13, 2026):
Available in dev branch and next release.
If you find Bambuddy useful, please consider giving it a ⭐ on GitHub — it helps others discover the project!
@Arn0uDz commented on GitHub (Mar 16, 2026):
This does not work for me with webhook to Home Assistant. Where is the picture coming from?
This is the notification:
{printer}: {filename}
Layer 1/{total_layers} done
@maziggy commented on GitHub (Mar 16, 2026):
Good catch — the webhook provider wasn't passing image data through. Fixed on dev branch and available with the next release or daily build. Please let me know if it works for you now.
To clarify how snapshots work: the image isn't a template variable like {filename} or {printer}. It's raw JPEG bytes captured from the camera and attached alongside the notification as binary data. Providers that have native image/file upload APIs (Telegram, Pushover, ntfy, Discord) already attach it automatically — no template changes
needed.
Webhooks were the exception — since webhooks send JSON, there was no binary attachment mechanism. Fixed now: when a snapshot is available, the webhook payload includes a base64-encoded image field:
{
"title": "First Layer Complete",
"message": "Workshop X1C: benchy.3mf\nLayer 1/200 done",
"image": "/9j/4AAQSkZJRg...",
"timestamp": "2024-01-15T14:30:00Z",
"source": "Bambuddy"
}
Home Assistant — the built-in HA provider uses the persistent_notification/create API, which only supports title + message text. There's no way to attach an image to a persistent notification in HA. To get images via HA, use the webhook provider instead and point it at an HA automation webhook trigger — from there you can decode the base64 image and forward it to notify.mobile_app_* or any other service that supports image attachments.
If you find Bambuddy useful, please consider giving it a ⭐ on GitHub — it helps others discover the project!
@Arn0uDz commented on GitHub (Mar 16, 2026):
Good explanation. Thanks for the quick fix. I will wait for the next release.
Maybe @shadowjig can test it.
@shadowjig commented on GitHub (Mar 17, 2026):
I just pulled ghcr.io/maziggy/bambuddy:0.2.3b1-daily.20260316 and ran a print. I got the 1st layer notification (and pic) without issue via ntfy. I don't webhooks or HA so can't test those.
@maziggy commented on GitHub (Mar 17, 2026):
If you find Bambuddy useful, please consider giving it a ⭐ on GitHub — it helps others discover the project!