Close-Circuit Telegram Vision revolutionizes location tracking with its open-source design and Telegram API integration. Offering precise tracking within 50-100 meters, users can monitor others in real-time for logistics or safety, redefining how we navigate our surroundings
- Installation
git clone https://github.com/IvanGlinkin/CCTV.git
cd CCTV
pip install -r requirements.txt
- Registering Telegram creds
visit https://my.telegram.org/auth web-site
input your phone number
input the confirmation/login code
follow "API development tools" link
register the application
get App's api_id, api_hash, title and name
- Settings
Upon first launch script will createconfig.yaml
file and request all needed settings.
This settings can be manually changed later:
api_config:
api_hash: ***
api_id: 00000000
phone: "+123456789000"
location:
lat: 51.51404
lon: -0.15063
meters: 1200
misc:
speed_kmh: 50
timesleep: 30
- Launch
python3 start.py
- Read the data by opening ./reports-html/_combined_data.html
██████╗██╗ ██████╗ ███████╗███████╗ ██████╗██╗██████╗ ██████╗██╗ ██╗██╗████████╗
██╔════╝██║ ██╔═══██╗██╔════╝██╔════╝ ██╔════╝██║██╔══██╗██╔════╝██║ ██║██║╚══██╔══╝
██║ ██║ ██║ ██║███████╗█████╗█████╗██║ ██║██████╔╝██║ ██║ ██║██║ ██║
██║ ██║ ██║ ██║╚════██║██╔══╝╚════╝██║ ██║██╔══██╗██║ ██║ ██║██║ ██║
╚██████╗███████╗╚██████╔╝███████║███████╗ ╚██████╗██║██║ ██║╚██████╗╚██████╔╝██║ ██║
╚═════╝╚══════╝ ╚═════╝ ╚══════╝╚══════╝ ╚═════╝╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝
████████╗███████╗██╗ ███████╗ ██████╗ ██████╗ █████╗ ███╗ ███╗ ██╗ ██╗██╗███████╗██╗ ██████╗ ███╗ ██╗
╚══██╔══╝██╔════╝██║ ██╔════╝██╔════╝ ██╔══██╗██╔══██╗████╗ ████║ ██║ ██║██║██╔════╝██║██╔═══██╗████╗ ██║
██║ █████╗ ██║ █████╗ ██║ ███╗██████╔╝███████║██╔████╔██║ ██║ ██║██║███████╗██║██║ ██║██╔██╗ ██║
██║ ██╔══╝ ██║ ██╔══╝ ██║ ██║██╔══██╗██╔══██║██║╚██╔╝██║ ╚██╗ ██╔╝██║╚════██║██║██║ ██║██║╚██╗██║
██║ ███████╗███████╗███████╗╚██████╔╝██║ ██║██║ ██║██║ ╚═╝ ██║ ╚████╔╝ ██║███████║██║╚██████╔╝██║ ╚████║
╚═╝ ╚══════╝╚══════╝╚══════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═══╝ ╚═╝╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═══╝
usage: start.py [-h] [-lat LATITUDE] [-long LONGITUDE] [-m METERS] [-t TIMESLEEP] [-s SPEED_KMH] [-tn TELEGRAM_NAME] [-ti TELEGRAM_API_ID]
[-th TELEGRAM_API_HASH]
Custom settings for script launch
optional arguments:
-h, --help show this help message and exit
-lat LATITUDE, --latitude LATITUDE
Latitude setting
-long LONGITUDE, --longitude LONGITUDE
Longitude setting
-m METERS, --meters METERS
Meters setting
-t TIMESLEEP, --timesleep TIMESLEEP
Timesleep setting
-s SPEED_KMH, --speed_kmh SPEED_KMH
Speed setting
-tn TELEGRAM_NAME, --telegram_name TELEGRAM_NAME
Telegram session name
-ti TELEGRAM_API_ID, --telegram_api_id TELEGRAM_API_ID
Telegram API ID
-th TELEGRAM_API_HASH, --telegram_api_hash TELEGRAM_API_HASH
Telegram API hash