- Raspberry pi – mini computer
- Streaming camera or Raspberry pi camera
- Servo motor – to control the lock
- LED Lights – to show the lock condition (open/close)
- Software(Language):
- Python
- Telepot, Motion
- by using monitor, keyboard and mouse. you can download noobs from raspberrypi.org for free and install as usual
- by using ssh with ip and wifi.
To work with the Pi Camera you need a special version of Motion that supports MMAL cameras. The easiest way to install this is by downloading and installing a deb file as follows:
I followed the instructions provided in this great tutorial by Bouvet. With some changes described below.
First get the deb file with the following command (if this doesn’t work then have a look for the correct release file on the Motion project GitHub)
wget https://github.com/Motion-Project/motion/releases/download/release-4.1.1/pi_stretch_motion_4.1.1-1_armhf.deb
mkdir ~/motion && cp /etc/motion/motion.conf ~/motion/
motion -c ~/motion/motion.conf
change codes on motion.conf // i uploaded motion.conf already changed you look for this also
with this configuration, you should see the live streaming from this URL: http://192.168.1.27:8081
Receiving the motion detection by emails is fine, but it can be done via Telegram and the awesome API telepot. Actually, you can even send commands to your pi using your phone using those telegram bots.
here is great tutorial for this
pip install telepot
after installing telepot . Now if the both listen_bot.py and motion -c ~/motion/motion.conf are running, the system should work.
ere, the following is working, but I am sure this is the right way to do, so use we care.
add the file listen.service in the folder /etc/systemd/system and type thsese codes.