Replies: 4 comments 4 replies
-
Thats wierd because the command is correct |
Beta Was this translation helpful? Give feedback.
-
both of those 'worked' though the results for voltages etc look wrong, can you try |
Beta Was this translation helpful? Give feedback.
-
The file isn't stored by default. So you'll need to put it somewhere (or
use one of the outputters the send it)
To run in every minute I'd suggest using cron and redirect the command
output.
On the other hand it is likely that you want the json somewhere? Where/what
is going to consume the data?
…On Wed, 13 Jul 2022, 8:30 pm LuSochr, ***@***.***> wrote:
Yes, I was also under the impression that it worked this time. But I
wasn't able to locate the JSON file anywhere in the raspberry pi folders.
Do you know where it is being stored?
This command you gave me works like a charm:
***@***.***:~ $ jkbms -p C8:47:8C:F7:F5:36 -c getCellData -P JK02
Command: getCellData - BLE Cell Data inquiry
------------------------------------------------------------
Parameter Value Unit
header 55aaeb90
record_type 02
record_counter 123
voltage_cell01 3.348 V
voltage_cell02 3.349 V
voltage_cell03 3.333 V
voltage_cell04 3.349 V
voltage_cell05 3.349 V
voltage_cell06 3.348 V
voltage_cell07 3.348 V
voltage_cell08 3.348 V
voltage_cell09 3.346 V
voltage_cell10 3.345 V
voltage_cell11 3.343 V
voltage_cell12 3.348 V
voltage_cell13 3.348 V
voltage_cell14 3.349 V
voltage_cell15 3.349 V
voltage_cell16 3.341 V
voltage_cell17 0.0 V
voltage_cell18 0.0 V
voltage_cell19 0.0 V
voltage_cell20 0.0 V
voltage_cell21 0.0 V
voltage_cell22 0.0 V
voltage_cell23 0.0 V
voltage_cell24 0.0 V
average_cell_voltage 3.346 V
delta_cell_voltage 0.016 V
current_balancer 0.513
resistance_cell01 0.057 Ohm
resistance_cell02 0.058 Ohm
resistance_cell03 0.058 Ohm
resistance_cell04 0.059 Ohm
resistance_cell05 0.058 Ohm
resistance_cell06 0.058 Ohm
resistance_cell07 0.057 Ohm
resistance_cell08 0.057 Ohm
resistance_cell09 0.057 Ohm
resistance_cell10 0.057 Ohm
resistance_cell11 0.057 Ohm
resistance_cell12 0.058 Ohm
resistance_cell13 0.057 Ohm
resistance_cell14 0.057 Ohm
resistance_cell15 0.057 Ohm
resistance_cell16 0.058 Ohm
resistance_cell17 0.0 Ohm
resistance_cell18 0.0 Ohm
resistance_cell19 0.0 Ohm
resistance_cell20 0.0 Ohm
resistance_cell21 0.0 Ohm
resistance_cell22 0.0 Ohm
resistance_cell23 0.0 Ohm
resistance_cell24 0.0 Ohm
battery_voltage 53.537 V
battery_power 366944 W
balance_current 6.854 A
battery_t1 17.7 °C
battery_t2 17.6 °C
mos_temp 20.8 °C
percent_remain 78 %
capacity_remain 94.003 Ah
nominal_capacity 120.0 Ah
cycle_count 16
cycle_capacity 2001.242 Ah
time 67D0H42M8S
current_charge 8.707
current_discharge 0.0
No even the voltage levels seems right.
Thank you SO MUCH for your help. Now only thing is that I need to find the
JSON file:-)
—
Reply to this email directly, view it on GitHub
<#232 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJVKNSVS67B5T52QAUFDW3VTZ5BVANCNFSM53HM6I3Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I did some research about MQTT (as I wasn't familiar with it before) and I was able to send data from jkbms to input node in node-red via MQTT without using JSON at all:-) Thank you a milion times jblance. You saved my world!!!!:-) If there is anything I could do to support your work, just let me know!!! Thanks!!!! |
Beta Was this translation helpful? Give feedback.
-
Hi to all,
I discovered this project and I knew that it could be it for my home setup. But I am pretty new to Linux stuff so I am not able to get this working as I would like to. So I would be more than happy if you could help me. I will describe my situation:
I have two 16s batteries (120aH lifepo each). Both have JKBMS installed. I have raspberry Pi 3 installed and I would like to use the bluetooth to read basic info from the batteries and save the output to JSON file lets say each 1 minute or so. The reason why I want to save this into json is that I would like to use this further in my Node-Red dashboard (already working with my charge controller). Basically I would only want to add some BMS info into my existing dashboard - I thought json as a source would be easiest).
I installed everything according your DOCS and now I am able to launch
jkbms -p <first battery MAC address> -c getCellData/getInfo
and information about battery is displayed, so connection seems to work.But problem is that I have no clue how to force this program to store this into JSON. I tried this:
jkbms -p C8:47:8C:F7:F5:36 -c getCellData -o json
But no luck:
And even if it worked I don't know how to achieve that the json file would update periodically and between both batteries.
If anyone could point me in the right direction I would be extrahappy!
Thanks anyone for any help:-)
Beta Was this translation helpful? Give feedback.
All reactions