adds home battery query
This commit is contained in:
1 parent
b60b32830f
commit
bff812605f
2 files changed
+427
No files matched your search
@@ -65,6 +65,22 @@ Probes `10.100.1.1:9000,18000`, sends `0x19/0x1D/0x1E`, prints
|
||||
`currentBatterySoc → soc → avg(socArray)`. Must run where the Wi-Fi adapter
|
||||
is on the device AP — see [Battery PoC](docs/BATTERY_POC.md).
|
||||
|
||||
## Battery report (pretty terminal output)
|
||||
|
||||
`scripts/agate_battery.sh` bakes in the device (serial + LAN address),
|
||||
queries the aGate's local socket and renders the state of charge, health,
|
||||
cell voltages/temperatures and the live power flow as a colourised report:
|
||||
|
||||
```bash
|
||||
./scripts/agate_battery.sh # baked-in device
|
||||
./scripts/agate_battery.sh --sn <SN> --ip <IP>
|
||||
./scripts/agate_battery.sh --json # raw device replies
|
||||
./scripts/agate_battery.sh --no-color # plain text
|
||||
```
|
||||
|
||||
Env overrides: `AGATE_SN`, `AGATE_IP`, `AGATE_PORT`, `AGATE_TIMEOUT`,
|
||||
`NO_COLOR`. Colour is auto-disabled when stdout is not a TTY.
|
||||
|
||||
## Local connect (device hotspot)
|
||||
|
||||
The aGate runs its own SoftAP (gateway `10.100.1.1`); joining it is what
|
||||
|
||||
Reference in new issue
Block a user