Page 1 of 1

Pi takes images stores them and emails all of them every day

Posted: Mon Dec 30, 2019 10:16 pm
by Computerfreund
Hi guys.

I can't program, but what I am trying to do is a Pi which takes an image every hour and stores them. Then everyday midnight the Pi should send the files attached to an email, with the exact time as the name. I don't know what I'm going to need, I also don't know how long it would take to write the code, so maybe someone of you could do it :)


Greetings from Germany,
Computerfreund

Re: Pi takes images stores them and emails all of them every day

Posted: Tue Dec 31, 2019 10:17 am
by pcmanbob
Hi.

No one is going to write your code for for free , we will help if you make the effort and run in to problems.

doing what you want is not that difficult.

first you need to install a mail program to use to send your email, along with some other packages to allow you to send the attachments,

I use.

msmtp - simple send only email
mail utils and mpack to send mail/attachments

zip - to create a zip file of all the images you wish to send .

cron - used to schedule the sending of the mail.


As a starting point look at this thread that shows you how to set up msmtp to use a gmail account.

https://www.raspberrypi.org/forums/view ... 8&t=244147