TeleSec-Cam
TeleSec-Cam is a security camera system powered by a Python script that utilizes a webcam to monitor a space for motion. When motion is detected, alerts are sent to specified users via a Telegram bot. Users can also interact with the bot to receive live captures on demand.
Check out the Medium article on this Project!
- Motion detection using a webcam.
- Real-time alerts sent to Telegram.
- Live capture on demand via Telegram bot commands.
- User management to control who can receive alerts and request captures.
-
Clone the Repository:
git clone https://github.com/your-username/TeleSec-Cam.git cd TeleSec-Cam
-
Install Dependencies:
pip install -r requirements.txt
-
Configuration: Create a
config.py
file with your Telegram bot token and admin user ID:BOT_TOKEN = "your-telegram-bot-token" TELEGRAM_USER_ID = your-telegram-user-id # Replace with your numeric Telegram user ID
You can use the
config_template.py
file and rename it toconfig.py
-
Run the Application:
python main.py
- Run the
main.py
script to start both the Telegram bot and the security cam. - Interact with the Telegram bot to receive motion alerts, request live captures, and manage users.
If you'd like to contribute, please fork the repository and make changes as you'd like. Pull requests are warmly welcome.
MIT