Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST]🦄allow to add picture in notification #525

Closed
luc-github opened this issue Nov 14, 2020 · 7 comments
Closed

[FEATURE REQUEST]🦄allow to add picture in notification #525

luc-github opened this issue Nov 14, 2020 · 7 comments

Comments

@luc-github
Copy link
Owner

ability to attach picture or document to notification
email
telegram
line
pushover

one usage would be to enclose a camera capture per user feedback TBC

it is definitly not a priority task so no time frame defined

@liqijian101
Copy link

hi luc,do you have time to add this feature now? I tried to add it, but I failed. This is a very useful feature.

@liqijian101
Copy link

//Send message
camera_fb_t * fb = NULL;
size_t _jpg_buf_len = 0;
uint8_t * _jpg_buf = NULL;
fb = esp_camera_fb_get();
_jpg_buf_len = fb->len;
_jpg_buf = fb->buf;
Notificationclient.printf("From:ESP3D<%s>\r\n",_settings.c_str());
Notificationclient.printf("To: <%s>\r\n",_settings.c_str());
Notificationclient.printf("Subject: %s\r\n\r\n",title);
//Notificationclient.println(message);
Notificationclient.println("Content-Type:image/jpg;name=ESP3D.jpg\r\n");
Notificationclient.println("Conten-Transfer-Encoding:base64\r\n\r\n");
Notificationclient.print(base64::encode((const char *)_jpg_buf));
esp_camera_fb_return(fb);
fb = NULL;
_jpg_buf = NULL;
log_esp3d("Send final dot");
//Send Final dot
Notificationclient.print(".\r\n");

@luc-github
Copy link
Owner Author

No sorry, it is still in (huge) todo list

@liqijian101
Copy link

liqijian101 commented Apr 13, 2023

HI Luc, I have modified the notification. c file and now I can send images via email. As long as I send the notification, the images will be sent. Can you make this feature more perfect?

@luc-github
Copy link
Owner Author

I am sorry I have no bandwidth for this currently, more over I am almost neve r at home, also this feature is not limited to email but all notifications did you managed it ?

@luc-github luc-github changed the title [FEATURE REQUEST]allow to add picture in notification [FEATURE REQUEST]🦄allow to add picture in notification Mar 6, 2024
@luc-github
Copy link
Owner Author

I close issue due to out of scope of ESP3D

Copy link

github-actions bot commented Nov 1, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants