Your shopping cart is empty!
Send Photo of Burglar To IoT Telegram Bot Using Raspberry Pi
- Idris Zainal Abidin
- 16 Jul 2020
- 1173
Introduction
Continue from the previous tutorial regarding Telegram and Raspberry Pi, this time I would like to share on how we can add a camera to capture a photo and send it to the Telegram. Then, by adding a magnetic contact switch sensor, we can make the process to become auto capture. When developing this tutorial, I'm thinking of burglar alert application. Maybe you can use it for other application too. Please read through following tutorial first:
Video
This video shows how to send photo to Telegram using Raspberry Pi.
Hardware Preparation
This is the list of items used in the video.
- Raspberry Pi 4 Model B (2GB)
- Raspberry Pi 4 Model B (4GB)
- Raspberry Pi 4 Model B (8GB)
- 16GB Micro SD Card
- Raspberry Pi Camera (5MP)
- Raspberry Pi Camera (8MP)
- Maker pHAT
- MC-38 Magnetic Contact Switch Sensor
Sample Program
This is python 3 sample program to capture a photo and send it to the Telegram. Please insert your Telegram Bot token at line 44.
Thank You
References:
Thanks for reading this tutorial. If you have any technical inquiries, please post at Cytron Technical Forum.
"Please be reminded, this tutorial is prepared for you to try and learn.
You are encouraged to improve the code for a better application."