This is telegram bot for posting jpg images from webcam with motion detection to telegram
hosts - inventory for ansible deploy-to-ftp-serve.yaml - playbook for ansible, tested on Arch linux scripts/webcarestart - "OCam M3" webcam restart script keys/ - folder with ssh keys for cctv user, have to created configs/vsftpd.conf - vsftpd daemon configs telegram-bot/watchdog-ftp.py - telegram bot telegram-bot/watchdog-ftp.service - unit file for systemd automagic/ - flow examples for Automagic Automation on Android
- Generate ssh keys in keys folder by
ssh-keygen -f cctv_key
command - Create host record in /etc/hosts for ftp-server
- Create new bot as described in https://core.telegram.org/bots#6-botfather
- Add chat id and token to telegram-bot/watchdog-ftp.py
(
TOKEN=
andCHAT_ID
variables)