You are not logged in.

#1 2016-08-10 02:18:03

jcarletto27
Member
Registered: 2016-08-10
Posts: 17

Quick Trick to get Text Notifications for completed prints!

Install these

sudo apt-get install ssmtp mailutils mutt

and make sure you have your raspi cam installed.

update /etc/ssmtp/ssmtp.conf to the following replacing the AuthUser with your email address you want to use and the AuthPass with its password

root=postmaster
mailhub=smtp.gmail.com:587
AuthUser=[USERNAME@GMAIL.COM]
AuthPass=[PASSWORD]
useSTARTTLS=YES

# The full hostname
hostname=rasbperrypi

turn on access for less secure apps here ( I suggest creating a burner account for this! )
https://www.google.com/settings/security/lesssecureapps

create a folder to store the photo in, I used:

mkdir "/home/pi/camera" 

now for the good part place this code in your Execute - End of Print section.

raspistill -n -w 1296 -h 972 --timeout 700 --awb sun -o "/home/pi/camera/out.jpg"; sudo chmod 664 "/home/pi/camera/out.jpg"; echo "Your print has finished" | sudo mutt -a "/home/pi/camera/out.jpg" -- 1234567890@vzwpix.com; sudo rm -r "/home/pi/camera/out.jpg" 

make sure the part is in view, adjust the timeout to give you more time to move the part.
number 1234567890@vzwpix.com only works for Verizon, if your using another provider you can try this site
http://www.slipstick.com/outlook/send-s … ar-phones/

alternatively, you can just as easily replace the ##@vzwpix.com with any email address.

Offline

Board footer

Powered by FluxBB