A Python script that pulls data from the JBD BMS commonly used for LiFePO4 batteries. The script borrows the data extraction and processing from this repo but has been modified to add the data to a postgres database instead of sending it over MQTT. In my case I'm running my MQTT broker on the same Raspberry Pi so the MQTT is unecessary.
Clone the repo:
git clone https://github.com/michaelpappas/JBD_BMS_BTLE.git
cd JBD_BMS_BTLETo run the script you will need to create a CRONjon.
Example CRONjob
* * * * * sudo python3 [path_to_directory]/JBD_BMS_BTLE/jbdBMS_db.py -i 0 -n ["bms bluetooth name"(in quotes)]
# this script will run every minute forevermore info about setting up CRONjobs can be found here.
\ # project directory
|--models.py # script to create battery table in db and row configuration
|--jbdBMS_db.py # main BTLE connection and processing script
- Improve stability
- Finish readme