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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

luc-github opened this issue Nov 14, 2020 · 5 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants