How To Use Real-Time Gate Surveillance With Notification Alert Via Telegram
How To Use Real-Time Gate Surveillance With Notification Alert Via Telegram
Requirement:-
STEP 1: Create bot in Telegram using BotFather and save the token given.
STEP 3: To get your Telegram’s chat_id, send message to the Bot in telegram first then open
terminal in Raspberry Pi and type “python” to use python shell and type in the following:
>>> pprint(response)
With this, it will return info about your Telegram’s. Save the chat_id id.
STEP 4: Edit Telegram_Motion.py again and change the chat_id to your Telegram’s chat_id.
Notes: Make sure the Python script is place inside “/home/pi/Desktop/fyp” or otherwise, edit in
with your preferred path. Examine the script make sure all path is correct.
STEP 6: Run Telegram_Motion.py using Python shell.
STEP 7: Open telegram and search for @TripleA_Bot to use the bot. Or you can use your own
bot.
STEP 8: From the bot, reply “/snap” to snap photo and reply “/alarm” to turn on the alarm.