Commit Graph

14 Commits

Author SHA1 Message Date
3902740a25 Add WebSocket support for switch status updates
- Define `LoadSwStatus` protobuf message for switch state data (`main` and `usb`).
- Introduce `updateSwitchStatusUI` to synchronize UI with WebSocket switch status payloads.
- Update backend logic to manage and broadcast switch status changes dynamically.

Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-09-08 18:05:50 +09:00
c2a5116cd2 Adjust VIN, MAIN, and USB current limits in code and UI (VIN: 8.0, MAIN: 7.5, USB: 3.5). 2025-09-08 18:05:49 +09:00
c6f852d634 Disable log download feature
To be added in the future

Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-09-04 15:42:13 +09:00
7b8ba3e12b Add current limit configuration for VIN, MAIN, and USB
- Integrated current limit settings in `nconfig`.
- Enabled API support for managing current limits.
- Added UI components for configuring current limits.
- Implemented backend logic for handling validations and updates.

Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-09-04 15:42:13 +09:00
630d3c4f58 Update: Separate uptime UI updates and enhance logging for WebSocket messages
- Add `updateUptimeUI` function for dedicated uptime handling.
- Modify WebSocket message handling to update uptime separately from sensor data.
- Adjust logging to provide better clarity for unknown payload types.
- Fix formatting inconsistency in uptime display (`1d` -> `1days`).

Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-09-03 15:21:01 +09:00
feb16beb0f Refactor: Simplify chart initialization and add dynamic Y-axis scaling logic
- Consolidate chart setup into `initializeSingleChart` for reusability.
- Introduce `scaleConfig` for step-wise Y-axis scaling.
- Enhance scaling logic to dynamically adjust `max` and `stepSize` based on data.

Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-09-03 14:05:53 +09:00
ab04ff8413 Update: websocket optimization
- Use protobuf
 - Eliminate unnecessary optimization logic
 - UART, sensor, status data transmitted as pb data

Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-09-02 14:50:48 +09:00
f0ca03f8cb Refactor: Apply consistent formatting and improve code style across all modules
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-09-01 12:32:23 +09:00
f5312dab17 Fix: Update WebSocket server address to include port
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-09-01 12:32:23 +09:00
6b87c7b0c4 Fix: Make event listener setup idempotent and modularize connection logic
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-09-01 12:32:23 +09:00
2dc5798b0a Apply modifications to mass-produced boards
- 3 channel power sensor ina3221
- io expander pca9557
- Some gpio moves
- ...

Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-09-01 11:56:49 +09:00
e2b4b96870 Fix scale
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-08-27 11:00:59 +09:00
6d14c65401 fix typo
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-08-27 10:59:57 +09:00
2383894664 init commit
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
2025-08-27 10:59:57 +09:00