How sabari-k07/telds works
TELDS detects and investigates transformer and feeder energy discrepancies. Engineers and operators review dashboard analytics, upload meter readings, investigate alerts, inspect segment-level localisation, and export reports; the simulator can provide live telemetry. The graph preserves the documented hardware-to-analytics capabilities, but the sampled simulator excerpt does not show its HTTP implementation, and several backend routes and report services were not inspected, so those links are documented or left unverified rather than asserted as source calls.
Main entry points: App.tsx TELDS interface · router.py REST routes · api.ts API client · analytics.py Analytics endpoints
Components 32
Operator application
- TELDS interface
frontend/src/App.tsx - Login state
frontend/src/context/AuthContext.tsx - API client
frontend/src/services/api.ts - Loss dashboard
frontend/src/components/dashboard/KPICards.tsx - Peak analysis
frontend/src/components/dashboard/PeakHourAnalysis.tsx - Transformer ranking
frontend/src/components/dashboard/TransformerLossRanking.tsx - Reading upload
frontend/src/components/upload/CSVUploader.tsx - Alert tracking
frontend/src/components/alerts/AlertTracker.tsx - Segment localisation
frontend/src/components/segments/SegmentLocalisationView.tsx - Reports view
frontend/src/components/reports/ReportsView.tsx
API and access
- REST routes
backend/app/api/v1/router.py - Authentication
backend/app/api/v1/auth.py - Analytics endpoints
backend/app/api/v1/analytics.py - Segment endpoints
backend/app/api/v1/segments.py - Reading endpoints
backend/app/api/v1/readings.py - Report endpoints
backend/app/api/v1/reports.py - Telemetry endpoint
backend/app/api/v1/telemetry.py - Token security
backend/app/core/security.py - System settings
backend/app/core/config.py - FastAPI service
backend/app/main.py
Energy analysis
- CSV processing
backend/app/services/csv_processor.py - Loss calculation
backend/app/services/energy_calculator.py - Segment analysis
backend/app/services/segment_localiser.py - Report generation
backend/app/services/report_generator.py
Domain state
- Database session
backend/app/db/session.py - Energy records
backend/app/models/reading.py - Grid assets
backend/app/models/transformer.py - Alert records
backend/app/models/alert.py - Feeder segments
backend/app/models/segment.py - User accounts
backend/app/models/user.py
Other components
- Utility user
- Virtual ESP32
hardware/virtual_esp32_simulator.py
Connections 46
- Utility user → TELDS interface: uses
- TELDS interface → Login state: provides auth
frontend/src/App.tsx - TELDS interface → Loss dashboard: renders
frontend/src/App.tsx - TELDS interface → Peak analysis: renders
frontend/src/App.tsx - TELDS interface → Transformer ranking: renders
frontend/src/App.tsx - TELDS interface → Reading upload: renders
frontend/src/App.tsx - TELDS interface → Alert tracking: renders
frontend/src/App.tsx - TELDS interface → Reports view: renders
frontend/src/App.tsx - TELDS interface → Segment localisation: renders
frontend/src/App.tsx - Login state → API client: logs in via
frontend/src/context/AuthContext.tsx - Reading upload → API client: uploads through
frontend/src/services/api.ts - Alert tracking → API client: updates through
frontend/src/components/alerts/AlertTracker.tsx - Segment localisation → API client: requests scenarios
frontend/src/components/segments/SegmentLocalisationView.tsx - Reports view → API client: requests reports
frontend/src/components/reports/ReportsView.tsx - API client → REST routes: calls HTTP API
frontend/src/services/api.ts - FastAPI service → REST routes: mounts
backend/app/main.py - REST routes → Authentication: registers
backend/app/api/v1/router.py - REST routes → Analytics endpoints: registers
backend/app/api/v1/router.py - REST routes → Segment endpoints: registers
backend/app/api/v1/router.py - REST routes → Reading endpoints: registers
backend/app/api/v1/router.py - REST routes → Report endpoints: registers
backend/app/api/v1/router.py - REST routes → Telemetry endpoint: registers
backend/app/api/v1/router.py - Authentication → Token security: verifies credentials
backend/app/api/v1/auth.py - Authentication → User accounts: reads and writes
backend/app/api/v1/auth.py - Authentication → Database session: uses session
backend/app/api/v1/auth.py - FastAPI service → Database session: creates tables
backend/app/main.py - Database session → System settings: loads database URL
backend/app/db/session.py - Token security → System settings: uses token settings
backend/app/core/security.py - Analytics endpoints → Database session: queries records
backend/app/api/v1/analytics.py - Analytics endpoints → Energy records: reads
backend/app/api/v1/analytics.py - Analytics endpoints → Grid assets: reads
backend/app/api/v1/analytics.py - Analytics endpoints → Alert records: reads
backend/app/api/v1/analytics.py - Reading endpoints → CSV processing: processes uploads
- CSV processing → Loss calculation: calculates losses
backend/app/services/csv_processor.py - CSV processing → Energy records: writes readings
backend/app/services/csv_processor.py - CSV processing → Grid assets: uses transformer data
backend/app/services/csv_processor.py - CSV processing → Alert records: uses alerts
backend/app/services/csv_processor.py - Loss calculation → System settings: uses thresholds
backend/app/services/energy_calculator.py - Loss calculation → Alert records: creates alerts
backend/app/services/energy_calculator.py - Segment endpoints → Segment analysis: localises
backend/app/api/v1/segments.py - Segment endpoints → Database session: uses session
backend/app/api/v1/segments.py - Segment analysis → Feeder segments: analyses topology
- Report endpoints → Report generation: generates reports
- Virtual ESP32 → Telemetry endpoint: streams HTTP telemetry
- Telemetry endpoint → Energy records: records measurements
- Report endpoints → Energy records: reads analyses