A helper to install motion detection into your raspberry PI and send detected motions via telegram bot.
- monitoring houses
- monitoring babies
- watching birds
- monitoring pets
- monitoring harmful insects
- employees
- (...)
- internet connection
- git
- curl
- motion
- usb webcam connected to your rasp
- personal telegram bot (api token) learn
- your telegram id (id destination that the messages will be sent)
git clone https://github.com/dodopontocom/telegram-bot-motion-rasp.git && cd telegram-bot-motion-rasp
echo "export TELEGRAM_TOKEN=<YOUR TELEGRAM BOT TOKEN>" >> .definitions.sh
echo "export NOTIFICATION_ID=<YOUR UNIQ TELEGRAM ID>" >> .definitions.sh
bash ./motion.sh
a good think to do is adding the script to a crontab job to run the verification any time you desire
crontab -e
add the following line (ex.: run it every 12 minutes)
*/12 * * * * /home/pi/telegram-bot-motion-rasp/motion.sh
- run it as default (pi) user
- this version works better in Debian based distribution