1
0
Fork 0
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

Closed
opened 2026-05-07 00:10:18 +02:00 by BreizhHardware · 6 comments

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

  • I would be willing to help implement this feature

Checklist

  • I have searched existing issues to ensure this feature hasn't already been requested
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 - [ ] I would be willing to help implement this feature ### Checklist - [x] I have searched existing issues to ensure this feature hasn't already been requested
BreizhHardware 2026-05-07 00:10:18 +02:00
Author
Owner

@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!

<!-- gh-comment-id:4053946645 --> @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](https://github.com/bambuman/bambuddy) — it helps others discover the project!
Author
Owner

@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

<!-- gh-comment-id:4067815981 --> @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
Author
Owner

@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!

<!-- gh-comment-id:4067929572 --> @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](https://github.com/bambuman/bambuddy) — it helps others discover the project!
Author
Owner

@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.

<!-- gh-comment-id:4069876036 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:4071730301 --> @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.
Author
Owner

@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!

<!-- gh-comment-id:4074358165 --> @maziggy commented on GitHub (Mar 17, 2026): ----- If you find Bambuddy useful, please consider giving it a ⭐ on [GitHub](https://github.com/bambuman/bambuddy) — it helps others discover the project!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bambuddy-maziggy-1#449
No description provided.