add battery charge to systems table

This commit is contained in:
henrygd
2025-12-08 18:20:51 -05:00
parent 570e1cbf40
commit 8d41a797d3
9 changed files with 152 additions and 45 deletions

View File

@@ -148,6 +148,7 @@ type Info struct {
ConnectionType ConnectionType `json:"ct,omitempty" cbor:"20,keyasint,omitempty,omitzero"`
ExtraFsPct map[string]float64 `json:"efs,omitempty" cbor:"21,keyasint,omitempty"`
Services []uint16 `json:"sv,omitempty" cbor:"22,keyasint,omitempty"` // [totalServices, numFailedServices]
Battery [2]uint8 `json:"bat,omitzero" cbor:"23,keyasint,omitzero"` // [percent, charge state]
}
// Final data structure to return to the hub