How cherukuriyasaswini/trinethram works
Ghat-Guard is an offline-first municipal crowd-safety terminal. Operators use the Telugu console to view telemetry and submit actions; edge nodes classify local sensor readings, enforce gate interlocks, and encode or decode LoRa telemetry. The Flask backend also accepts video for analysis and exposes telemetry and audit endpoints. Separate modules provide haze-aware vision fusion, crowd-flow and shockwave models, emergency Palm-Smash controls, and append-only audit storage. The excerpts show the backend’s own audit trail, but not how the browser console connects to backend endpoints or how the separate models are integrated at runtime.
Main entry points: backend_server.py Flask command backend · yali_telugu_console.html Telugu console · edge_hardware_node.py Edge state machine · telemetry_worker.js Telemetry parser
Components 15
Edge telemetry
- Edge state machine
core_firmware/edge_hardware_node.py - LoRa packet codec
communications/lora_mesh.py
Command and analysis
- Telugu console
ui_frontend/yali_telugu_console.html - Telemetry parser
ui_frontend/telemetry_worker.js - Flask command backend
backend_server.py - Video analysis
backend_server.py
Safety models
- Haze vision fusion
vision_fusion/puja_haze_fusion.py - Granular flow model
physics_engine/granular_flow.py - Shockwave model
physics_engine/shockwave_propagation.py - Palm-Smash controls
emergency_subsystem/palm_smash_override.py
Audit records
- Backend audit trail
backend_server.py - Compliance register
audit_logs/compliance_register.py - SQLite audit store
audit_logs/audit_logs/ghat_compliance.db
Other components
- Operator
- Video operator
Connections 10
- Operator → Telugu console: uses
README.md - Video operator → Flask command backend: uploads video
backend_server.py - Flask command backend → Video analysis: routes analysis
backend_server.py - Operator → Flask command backend: submits actions
backend_server.py - Telugu console → Telemetry parser: parses telemetry
- Edge state machine → LoRa packet codec: encodes packets
core_firmware/edge_hardware_node.py - Edge state machine → LoRa packet codec: decodes packets
core_firmware/edge_hardware_node.py - Telemetry parser → Telugu console: returns telemetry
ui_frontend/telemetry_worker.js - Flask command backend → Backend audit trail: logs actions
backend_server.py - Compliance register → SQLite audit store: reads and writes
audit_logs/compliance_register.py