How kirill-talk/luxpower-data-visualizer works
Luxpower Data Visualizer is a web dashboard for monitoring Luxpower hybrid-inverter telemetry. Users authenticate with Luxpower Cloud (or use configured credentials), then view live operating status, power flow, KPIs, 24-hour charts, and searchable/exportable telemetry history. The React app presents desktop and mobile views; an Express gateway exposes telemetry routes and uses a Luxpower client to retrieve cloud data. Source excerpts establish the server-to-client calls and UI module references; the browser-to-gateway request wiring is not shown, so that connection is marked unverified.
Main entry points: App.jsx Dashboard App · i18n.js Translations · AuthModal.jsx Cloud Login · MobileKpiGrid.jsx Mobile KPIs
Components 17
Dashboard UI
- Dashboard App
client/src/App.jsx - Cloud Login
client/src/components/AuthModal.jsx
Telemetry Views
- Desktop Power Flow
client/src/components/PowerFlowDiagram.jsx - Mobile Power Flow
client/src/components/mobile/MobilePowerFlowDiagram.jsx - Mobile KPIs
client/src/components/mobile/MobileKpiGrid.jsx - Mobile Status
client/src/components/mobile/MobileStatusBar.jsx - Recent Telemetry
client/src/components/mobile/MobileRecentLog.jsx - Power Chart
client/src/components/PowerFlowChart.jsx - Battery Chart
client/src/components/BatteryChart.jsx - Grid and Temperature
client/src/components/GridVoltageTempChart.jsx - Telemetry Table
client/src/components/DataTable.jsx
Gateway and Cloud
- Telemetry API
server.js - Luxpower Client
src/api/luxpower.js
Shared Presentation Logic
- Energy Calculations
client/src/utils/energyMath.js - Translations
client/src/utils/i18n.js
Other components
- Operator
- Luxpower Cloud
Connections 20
- Operator → Dashboard App: uses
README.md - Dashboard App → Cloud Login: renders
client/src/App.jsx - Dashboard App → Desktop Power Flow: renders
client/src/App.jsx - Dashboard App → Mobile Power Flow: renders
client/src/App.jsx - Dashboard App → Mobile KPIs: renders
client/src/App.jsx - Dashboard App → Mobile Status: renders
client/src/App.jsx - Dashboard App → Recent Telemetry: renders
client/src/App.jsx - Dashboard App → Power Chart: renders
client/src/App.jsx - Dashboard App → Battery Chart: renders
client/src/App.jsx - Dashboard App → Grid and Temperature: renders
client/src/App.jsx - Dashboard App → Telemetry Table: renders
client/src/App.jsx - Dashboard App → Energy Calculations: uses
client/src/App.jsx - Dashboard App → Translations: uses
client/src/App.jsx - Mobile KPIs → Energy Calculations: formats durations
client/src/components/mobile/MobileKpiGrid.jsx - Cloud Login → Translations: uses
client/src/components/AuthModal.jsx - Recent Telemetry → Translations: uses
client/src/components/mobile/MobileRecentLog.jsx - Mobile Status → Translations: uses
client/src/components/mobile/MobileStatusBar.jsx - Dashboard App → Telemetry API: requests telemetry
- Telemetry API → Luxpower Client: calls
server.js - Luxpower Client → Luxpower Cloud: requests data
src/api/luxpower.js