RaspberryPiIntercom
CSE3009 IoT Project - Smart Intercom 18BCE0858, 19BCE2450, 19BEC0557
Parts Used
- Push button
- Raspberry Pi Camera
Setting Up
Motion (For Camera)
- In terminal, run
sudo apt install autoconf automake build-essential pkgconf libtool git libzip-dev libjpeg-dev gettext libmicrohttpd-dev libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev default-libmysqlclient-dev libpq-dev libsqlite3-dev libwebp-dev motion
- Change
/etc/motion/motion.conf
to appropriate settings. - In
/etc/default/motion
, changestart_motion_daemon
to yes. - Enable the camera with
sudo raspi-config
(Found in Interfacing) then typesudo modprobe bcm2835-v4l2
. - Type
sudo service motion start
thensudo motion
- Go to a browser and type the url
rasp_ip_addr:port
- Voila!
Android App
Built with Android Studio 4.1.3. Just open the project folder using Android Studio and run it.
PushBullet (For Push Notifications)
Get your access token and device name from https://www.pushbullet.com/ and replace them in app.py.
Flask Server (For API)
- Run
python3 -m pip install -r requirements.txt
to install all dependencies (Use a virtual environment so that you don't mess up your normal python) - Run
flask run --host=0.0.0.0
and that should start up the flask server in your private network. - Go to
rasp_ip_addr:port/unlock
to trigger the servo.