A webcam security monitoring system with Telegram notifications
Project description
Webcam Security
A Python package for webcam security monitoring with Telegram notifications. This package provides motion detection capabilities with configurable monitoring hours and automatic video recording.
Features
- 🎥 Real-time motion detection using webcam
- 📱 Telegram notifications with snapshots and device identification
- ⏰ Configurable monitoring hours (default: 10 PM - 6 AM)
- 🔧 Telegram bot commands for remote configuration
- 🚨 Force monitoring on/off via Telegram
- 🎬 Automatic video recording on motion detection
- 🎵 Audio recording with video (combined MP4 format)
- 🧹 Automatic cleanup of old recordings
- 🖥️ Live preview with monitoring status
- 🚀 Easy-to-use CLI interface
- 🔄 Self-update mechanism
- ⚡ UV-powered for faster builds and dependency management
Telegram Bot Commands
Once the monitoring is running, you can control it remotely via Telegram commands:
Status & Control
/start- Welcome message and command list/status- Show current configuration and monitoring status/help- Show detailed help and command reference/force_on- Force monitoring ON (ignores time schedule)/force_off- Force monitoring OFF (returns to normal schedule)
Configuration
/set_hours <start> <end>- Set monitoring hours (24h format)- Example:
/set_hours 22 6(10 PM to 6 AM) - Example:
/set_hours 0 24(24/7 monitoring)
- Example:
System
/update- Check for software updates
Usage
Quick Start
-
Initialize configuration:
webcam-security init --bot-token "YOUR_BOT_TOKEN" --chat-id "YOUR_CHAT_ID" --device-id "MyCamera"
-
Start monitoring:
webcam-security start -
Control remotely via Telegram:
- Send
/startto your bot for command list - Use
/force_onto enable monitoring immediately - Use
/set_hours 22 6to set monitoring hours
- Send
Device Identification
All media sent to Telegram includes a device identifier:
- If you specify
--device-idduring init, that name will be used - Otherwise, the system hostname will be used automatically
- This helps identify which camera sent the alert when you have multiple systems
Available Commands
webcam-security init- Initialize configurationwebcam-security start- Start monitoringwebcam-security status- Show current configurationwebcam-security clean- Manually clean old recordingswebcam-security update- Check for and install updates
Installation
Using pip (traditional)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file webcam_security-0.3.2.tar.gz.
File metadata
- Download URL: webcam_security-0.3.2.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f8bf3a9206b1661964e7e3d6316b7bab9baf81f600ba80f2e2d4fb5839d83cb
|
|
| MD5 |
f32eac71169125345c430e6f22034be0
|
|
| BLAKE2b-256 |
f026d6c7ee72a49526b5a7cb6ffa65a0d7f509458bcf426b0400862d670d78c5
|
File details
Details for the file webcam_security-0.3.2-py3-none-any.whl.
File metadata
- Download URL: webcam_security-0.3.2-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2aa720350f876d494bced6454df2feafbcba76059f4ea86a88707ccf3077fa24
|
|
| MD5 |
f548f16231d5e7bd1bf50872abfecd91
|
|
| BLAKE2b-256 |
fb51eda7f9ea8b37e70b82804edb90a70cebd7f26b6796bd401690aa41564f06
|