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 [email protected]
mail_pass your_password
mail_set
#-------------------------------------------------
make_sub photo
sub photo mail_noIRcam_send [email protected]
#-------------------------------------------------
IOT_object button1 in 23 15 pull_up
IOT_check button1 in equal 1 CALL photo
end_script
Powered by Sgneep.com