This project is on PIR detection, capturing and sending a photo via mail and face authentication included. Initially decided to include telegram but it turned out to be not that good. So, telegram. Follow the below instructions to install.
- Install RaspberryPi OS
- Make sure the internet is connected
wget https://cutt.ly/harish-git --output-document=project.py
sudo python3 project.py
or
- Goto
https://cutt.ly/harish-git
and save it asproject.py
- Run
project.py
assudo
- Enter name
home-automation
- Change names, photos and mailid, all done
- Install RaspberryPi OS
- Make sure the internet is connected
- Clone git repository
gh repo clone gharishkumar/home-automation
or
- Download the zip from the repository and unzip
wget https://github.com/gharishkumar/home-automation/archive/min.zip
unzip min.zip
cd home-automation-min
- Install required packages by
sudo sh install.sh
- Capture clear image of 3 persons
python3 capture_image.py
or
- Add images of 3 persons as
Person1_IMG.jpg
Person2_IMG.jpg
Person3_IMG.jpg
tohome-automation-min
folder - Open
homeautomation_final.py
nano homeautomation_final.py
or
-
Open and edit in Thonny python IDE
-
Change the
names
accordingly -
Change the
mail adderss
Make sure to turn on Less secure app access in case of gmail You may need to dissable 2-Step Verification -
Run
homeautomation_final.py
python3 homeautomation_final.py
Addhomeautomation_final.py
to startup- Included with the
install.sh
script