Skip to content

Instantly share code, notes, and snippets.

@aurimasniekis
Created June 7, 2018 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aurimasniekis/640ab5ab0ce0460aefdff967a8428587 to your computer and use it in GitHub Desktop.
Save aurimasniekis/640ab5ab0ce0460aefdff967a8428587 to your computer and use it in GitHub Desktop.
BMS data record
{
"state": "charging|discharging|off",
"voltage": 50.40,
"currents": {
"esc": {
"current": 0,
"energy": {
"charged": 0,
"discharged": 0
}
},
"lowPower": {
"current": 100,
"energy": {
"charged": 100,
"discharged": 34500
}
}
},
"balancers": [
{
"id": 1,
"last_reset": 1528403424,
"voltage": 50.40,
"current": 25,
"energy": {
"charged": 10,
"discharged": 34500
},
"cells": [
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.25,
"state": "balancing"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
}
],
"temperature": [
23.50,
21.50,
21.50,
21.50,
21.50,
21.50
]
},
{
"id": 2,
"last_reset": 1528403424,
"voltage": 50.40,
"current": 25,
"energy": {
"charged": 10,
"discharged": 34500
},
"cells": [
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.25,
"state": "balancing"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
}
],
"temperature": [
23.50,
21.50,
21.50,
21.50,
21.50,
21.50
]
},
{
"id": 3,
"last_reset": 1528403424,
"voltage": 50.40,
"current": 25,
"energy": {
"charged": 10,
"discharged": 34500
},
"cells": [
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.25,
"state": "balancing"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
}
],
"temperature": [
23.50,
21.50,
21.50,
21.50,
21.50,
21.50
]
},
{
"id": 4,
"last_reset": 1528403424,
"voltage": 50.40,
"current": 25,
"energy": {
"charged": 10,
"discharged": 34500
},
"cells": [
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.25,
"state": "balancing"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
}
],
"temperature": [
23.50,
21.50,
21.50,
21.50,
21.50,
21.50
]
},
{
"id": 5,
"last_reset": 1528403424,
"voltage": 50.40,
"current": 25,
"energy": {
"charged": 10,
"discharged": 34500
},
"cells": [
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.25,
"state": "balancing"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
}
],
"temperature": [
23.50,
21.50,
21.50,
21.50,
21.50,
21.50
]
},
{
"id": 6,
"last_reset": 1528403424,
"voltage": 50.40,
"current": 25,
"energy": {
"charged": 10,
"discharged": 34500
},
"cells": [
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.25,
"state": "balancing"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
}
],
"temperature": [
23.50,
21.50,
21.50,
21.50,
21.50,
21.50
]
},
{
"id": 7,
"last_reset": 1528403424,
"voltage": 50.40,
"current": 25,
"energy": {
"charged": 10,
"discharged": 34500
},
"cells": [
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.25,
"state": "balancing"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
}
],
"temperature": [
23.50,
21.50,
21.50,
21.50,
21.50,
21.50
]
},
{
"id": 8,
"last_reset": 1528403424,
"voltage": 50.40,
"current": 25,
"energy": {
"charged": 10,
"discharged": 34500
},
"cells": [
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.25,
"state": "balancing"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
}
],
"temperature": [
23.50,
21.50,
21.50,
21.50,
21.50,
21.50
]
},
{
"id": 9,
"last_reset": 1528403424,
"voltage": 50.40,
"current": 25,
"energy": {
"charged": 10,
"discharged": 34500
},
"cells": [
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.25,
"state": "balancing"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
}
],
"temperature": [
23.50,
21.50,
21.50,
21.50,
21.50,
21.50
]
},
{
"id": 10,
"last_reset": 1528403424,
"voltage": 50.40,
"current": 25,
"energy": {
"charged": 10,
"discharged": 34500
},
"cells": [
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.25,
"state": "balancing"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
}
],
"temperature": [
23.50,
21.50,
21.50,
21.50,
21.50,
21.50
]
},
{
"id": 11,
"last_reset": 1528403424,
"voltage": 50.40,
"current": 25,
"energy": {
"charged": 10,
"discharged": 34500
},
"cells": [
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.25,
"state": "balancing"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
}
],
"temperature": [
23.50,
21.50,
21.50,
21.50,
21.50,
21.50
]
},
{
"id": 12,
"last_reset": 1528403424,
"voltage": 50.40,
"current": 25,
"energy": {
"charged": 10,
"discharged": 34500
},
"cells": [
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.25,
"state": "balancing"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
}
],
"temperature": [
23.50,
21.50,
21.50,
21.50,
21.50,
21.50
]
},
{
"id": 13,
"last_reset": 1528403424,
"voltage": 50.40,
"current": 25,
"energy": {
"charged": 10,
"discharged": 34500
},
"cells": [
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.25,
"state": "balancing"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
}
],
"temperature": [
23.50,
21.50,
21.50,
21.50,
21.50,
21.50
]
},
{
"id": 14,
"last_reset": 1528403424,
"voltage": 50.40,
"current": 25,
"energy": {
"charged": 10,
"discharged": 34500
},
"cells": [
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.25,
"state": "balancing"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
}
],
"temperature": [
23.50,
21.50,
21.50,
21.50,
21.50,
21.50
]
},
{
"id": 15,
"last_reset": 1528403424,
"voltage": 50.40,
"current": 25,
"energy": {
"charged": 10,
"discharged": 34500
},
"cells": [
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.25,
"state": "balancing"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
},
{
"voltage": 4.20,
"state": "normal"
}
],
"temperature": [
23.50,
21.50,
21.50,
21.50,
21.50,
21.50
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment