Wow thats something to work towards,If compiled with MQTT support (needs paho mqqt library), jbdtool outputs mqtt data. You can specify the info on the comand line with the -m option, for example:
Code:jbdtool -m host:clientid:topic[:user[ass]] jbdtool -t ip:pack_01 -m localhost:pack_01:/Battery/pack_01
(pack_01 is the dns name of my wifi module #1)
In another window, I can subscribe to /Battery/# to see the JSON output:
# mosquitto_sub -h localhost -t '/Battery/#'
{"Voltage":53.330001831054688,"Current":0,"DesignCapacity":100,"RemainingCapacity":64.339996337890625,"PercentCapacity":64,"CycleCount":0,"Probes":2,"Temps":[17,15.300000000000001],"Strings":14,"Cells":[3.79,3.7850000000000001,3.7919999999999998,3.7909999999999999,3.819,3.8290000000000002,3.831,3.8300000000000001,3.8250000000000002,3.8130000000000002,3.8239999999999998,3.8039999999999998,3.794,3.7999999999999998],"CellTotal":53.326999664306641,"CellMin":3.7850000858306885,"CellMax":3.8310000896453857,"CellDiff":0.046000003814697266,"CellAvg":3.8090713024139404,"DeviceName":"15350019-SP15S008C-P14S-100A","ManufactureDate":"20210116","Version":2.5,"FET":"Charge,Discharge"}
I have a node-red server running on the same host which injects the info into an influx DB. It should look something like this:
View attachment 23789
Reads from /Battery topic, converts JSON to javascript obect, then flattens the Cells array into cell01,02,03,04 as seperate fields, does the same for temps, then removes arrays for the remainder of the data.
From there, its easy to make a dash for it in Grafana. Something like this maybe (could use some work):
View attachment 23790
After that you could get fancy and maybe do some linking if you have multiple packs so you can click on each pack to get the info
NOTE: I just updated the github repo ... it wasnt setting the name field in the JSON output with the mqtt clientid.
EDIT: no way to remove those stupid emojis ... they are colon p
I have alot of questions but i will try an keep it short,
I am currently running the static version for pi that you put together, do i need to switch to the github repo?