How abgoyal/airtel_gpon_usage_monitor works
Core Components
• Nokia G-2425G-A Router (FTTH Modem)
• Monitoring Script (Node.js)
• Smart Plug (External Device)
• Storage/Logging System
Data Flow Architecture
a) Input Layer:
• WebUI interface with a note about the 32-bit counter limitation
• Smart Plug connection to the router (showing periodic reboot capability)
b) Processing Layer:
• Node.js Script Components:
• Authentication Module (using node-jsencrypt)
• Web Scraping Module
• Counter Overflow Detection Logic
• Data Processing/Correction Module
c) Output Layer:
• Logging System
• Usage Statistics Output
Use these specific visual elements:
Component Representations
• Use rectangles for main components (Router, Script, Smart Plug)
Error Handling
• How the system handles router reboots
• Counter overflow detection
• Data correction mechanisms
Timing Aspects
• 15-second polling cycle
• Nightly reboot schedule
• Potential overflow windows
Security Layer
• Custom authentication process
• Encryption mechanism for router communication
[Router & Smart Plug] (Top)
• ↓
[Authentication & Scraping Layer]
• ↓
[Processing & Overflow Detection]
• ↓
[Statistics Output] (Bottom)
Keep these specific aspects in mind:
• Critical path of data collection
• Error handling mechanisms
• Where data corrections occur
• Potential failure points
• Periodic nature of operations