Python script for battery data tracking at competitions.
- Install Python 3.10 or higher
- Install pip
- Install dependencies with
pip install -r requirements.txt
- Run
python3 battery_tracker.py
- The program will prompt you to enter the match number
- If you enter a match number that has already been scanned into the system, the program will prompt you to enter a new match number
- The program will prompt you to scan the battery QR code
- If you scan a battery that is not the expected battery, the program will prompt you to get the correct battery
- Expected battery is determined by the number of batteries and which batteries have already been scanned into the system
- Expected batteries are in order from battery
0
to batteryn
(which is defined in the config.json file) and will wrap around to battery0
after batteryn
- Insert the battery terminal into the Battery Beak and read the values
- The program will prompt you to enter the values you read off of the Battery Beak
- You can now replace the battery with the next battery and repeat steps 2-5 for each match
The config.json
file contains the following fields:
competition_code
: The competition code for the competitionyear
: The year of the competitionnumber_of_batteries
: The number of batteries that will be in circulation at the competition
This project is licensed under the MIT License - see the LICENSE file for details.