Photo Booth

Hardware Components:

1 Raspberry pi 3B

1 noIR Cam

1 Push Button


Script

#PHOTO BOOTH DEMO
#when the button connected to pin 23 is pressed, the image is sent via email
#--------------------------------------SMTP SETTINGs
mail_server smtp.gmail.com
mail_port 587
mail_user your_email@gmail.com
mail_pass your_password
mail_set
#-------------------------------------------------
make_sub photo
sub photo mail_noIRcam_send your_email@libero.it
#-------------------------------------------------
IOT_object button1 in 23 15 pull_up
IOT_check button1 in equal 1 CALL photo
end_script
Powered by Sgneep.com