| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A real-time radio monitoring and streaming system that captures, processes, and broadcasts DMR radio transmissions through a web interface.
This project provides a complete solution for monitoring digital radio communications. It captures DMR radio transmissions in real-time using SDR hardware, provides a browser-based dashboard for monitoring live audio and viewing transcriptions, sends alerts via GroupMe or Discord when specific words are detected, identifies speakers by mapping radio IDs to known users, and keeps all connected clients synchronized with instant WebSocket notifications.
Install system dependencies (dsd-fme and RTL-SDR drivers)
Set up the virtual environment:
source setup.shInstall Python dependencies:
pip install -r requirements.txtCreate and configure your config.yaml:
cp config.yaml.example config.yamlThen edit config.yaml with your settings (see Configuration section below)
To enable auto restart. Run the following command:
echo "ubuntu ALL=(ALL) NOPASSWD: /sbin/reboot" | sudo tee etc/sudoers.d/radiobot-rebootAll configuration is managed through the config.yaml file. Copy config.yaml.example to config.yaml and customize it for your setup.
The configuration file is organized into the following sections:
Required: Core application settings
application:
# Password for accessing the web interface
password: "your_secure_password_here"Required: RTL-SDR radio receiver configuration
radio:
# Center frequency to tune the RTL-SDR receiver (in MHz)
frequency: 461.375
# RF gain setting (in dB)
gain: -7
# Optional: RTL-SDR device index (default: 0)
device_index: 0Required: External service credentials
apis:
# Deepgram API key for audio transcription
deepgram_api_key: "your_deepgram_api_key_here"
# Optional: terms Deepgram should listen for
deepgram_keyterms:
- "Smith Hall"
- "noise complaint"Optional: Map radio unit IDs to friendly names
units:
1: "Dispatch"
1001: "Unit 1: John Doe"
1002: "Unit 2: Jane Smith"
2001: "Cruiser 1"Optional: Configure real-time alerts when keywords are detected
notifications:
groupme:
enabled: true
bot_id: "your_groupme_bot_id_here"notifications:
discord:
enabled: false
webhook_url: "https://discord.com/api/webhooks/your_webhook_url"Configure which words/phrases trigger notifications:
notifications:
wordlists:
# Standard wordlist: triggers alert on FIRST occurrence
standard:
words:
- "Main Street"
- "Second Street"
# Strict wordlist: requires MULTIPLE occurrences
strict:
min_occurrences: 2
words:
- "example"Standard Wordlist:
Strict Wordlist:
application:
password: "mySecurePassword123"
radio:
frequency: 461.375
gain: -7
apis:
deepgram_api_key: "abc123def456..."
units:
1: "Dispatch"
notifications:
groupme:
enabled: false
discord:
enabled: false
wordlists:
standard:
words: []
strict:
min_occurrences: 2
words: []application:
password: "mySecurePassword123"
radio:
frequency: 461.375
gain: 12
device_index: 0
sample_rate: 32
apis:
deepgram_api_key: "abc123def456..."
units:
1: "Dispatch"
8301: "Unit 1: Officer Smith"
8302: "Unit 2: Officer Jones"
8401: "Campus Security"
notifications:
groupme:
enabled: true
bot_id: "a1b2c3d4e5f6g7h8i9j0"
discord:
enabled: true
webhook_url: "https://discord.com/api/webhooks/123/abc..."
wordlists:
standard:
words:
- "123 Main Street"
- "Smith Hall"
- "noise complaint"
- "disturbance"
strict:
min_occurrences: 3
words:
- "party"
- "gathering"
- "loud"Start the server:
python server.pyAccess the web interface at http://localhost:4000
Continuously backs up all recordings and a daily gzipped snapshot of transcripts.db to S3. The device never holds AWS credentials — it holds a shared secret and asks a small Lambda for presigned, size-bound upload URLs. The Lambda enforces a daily upload quota (count and bytes) in DynamoDB, so a leaked secret can at worst upload up to the quota until you rotate it; it can never read, list, or delete anything. Backup failures never affect radio capture: uploads run in a background thread and are retried on the next scan.
brew install opentofu # or terraform
cd infra
tofu init
tofu applyThis creates: a private versioned S3 bucket with lifecycle rules, a DynamoDB quota table, the Lambda with a public Function URL, and a random device secret. Optional variables (see infra/variables.tf): quota limits and budget_alert_email for a monthly cost alert.
Add to config.yaml using the apply outputs:
backup:
enabled: true
endpoint_url: "<tofu output backup_endpoint_url>"
secret: "<tofu output -raw device_secret>"On first start with backup enabled, all existing recordings in files/ are backfilled; after that, new recordings upload within one scan interval (default 60s). Upload state is tracked in the backup_uploads table in transcripts.db.
From any machine with AWS admin credentials:
aws s3 sync s3://radiobot-backup-<account-id>/radiobot/recordings/ files/
aws s3 cp s3://radiobot-backup-<account-id>/radiobot/db/transcripts.db.gz - | gunzip > transcripts.dbcd infra
tofu apply -replace=random_password.device_secretThen update backup.secret in config.yaml on the device.
| Back | FazBrowse Home | New Git URL |