ESP3D icon indicating copy to clipboard operation
ESP3D copied to clipboard

[FEATURE REQUEST]🦄allow to add picture in notification

Open luc-github opened this issue 5 years ago • 5 comments
trafficstars

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

luc-github avatar Nov 14 '20 08:11 luc-github

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 avatar Apr 11 '23 12:04 liqijian101

//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");

liqijian101 avatar Apr 11 '23 12:04 liqijian101

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

luc-github avatar Apr 11 '23 13:04 luc-github

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?

liqijian101 avatar Apr 13 '23 13:04 liqijian101

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 avatar Apr 13 '23 14:04 luc-github