Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 1.33 KB

README.md

File metadata and controls

36 lines (23 loc) · 1.33 KB

Battery data parser

This software parses battery data from txt files and uploads them to a MySQL database. The software also provides an analisys of data by showing calculated values, summary data, and plots.

Data description: data.md

Requirements

Install Python 3.x

Install tkinter (starting with Python 3.7, the binary installers available at python.org come with tkinter pre-installed)

pip3 install mysql-connector-python

pip3 install matplotlib

Quick start

Insert the connection parameters to use your MySQL database in db.config. Use db.config.example as a template.

Run

python3 batterydatamanager.py

Build executable

Use pyinnstaller:

pip3 install pyinstaller

Pyinstaller has problems with current matplotlib version, so:

pip3 install matplotlib==3.2.2

Windows

Install Visual C++ Redistributable for Visual Studio 2015

python -m PyInstaller batterydatamanager.py --onefile --windowed --clean --add-data db.config;.

MacOS

python3 -m PyInstaller batterydatamanager.py --onefile --windowed --clean --add-data db.config:. --add-binary='/System/Library/Frameworks/Tk.framework/Tk':'tk' --add-binary='/System/Library/Frameworks/Tcl.framework/Tcl':'tcl'