Battery Logger with Barcode scanning for home and competition use!

These are amazing changes! Thanks for posting such a useful project here for everyone to use!

1 Like

You mean Energy used by the robot. Please be accurate with your terms, because you’ve just linked to a docs site and told teams to log the wrong value.

1 Like

Very interesting :thinking:
I tried running the code on my Orange Pi 5 and got the same result
I am trying to fix it right now
Edit: Fixed at the latest version.

You are correct.
Updated the post to be correct.

Another helpful update:

Download and Upload you data:


Located in Settings

If you click the “Download All Data” it will save all of your data (Current batteries and their status, logs, settings). This is especially useful if updating the version of the program and if changing the device that runs the program!

Hi our team found another issue. When you scan a battery in, sometime a window pops up where it doesn’t recognize the batteries after the one you scanned. For example, we scanned battery 8, and then the program said that battery 9 wasn’t found, and asked if we would like to add it. Then the window also popped up for the batteries after it.

1 Like

:grimacing:

(I understand you are up against barcode limitations, but dropping the year to a 2 digit code may be the better call, something that has famously never had an issue, this gives you an extra bit to play with as well as a flag for something else.

You also probably do not need support for 10k batteries per team)

1 Like

Do you have “battery 9” registered?
Have you ever showed / scanned a barcode with “battery 9” code?
Do you use the camera feed or the manual input?
Can you use the “Download Data” feature and DM me the .zip file?

aditya0shah made a PR to change the barcode length from 13 chars to 8. YEAR-NUMB
(remove team number + remove 1 char from the battery number)

I will accept the PR now.
Therefore:

The battery code has been reduced from 13 characters to 8 characters. Please use EAN-8 barcode generators.

1 Like

Yes we have logged battery 9 up to 11, and I will be able to post the zip file here soon. Thank you so much for making such a useful tool!

1 Like





It looks like the window that pops up is the Advanced logging for Charging.
You can disable it in the settings if you don’t want to log the Charging.

Yes but it is popping up for batteries that we didn’t change the status of. We changed a battery, and then the advanced logging for batteries that we didn’t touch popped up.

Ok, can you please open this and send the json? http://127.0.0.1:5000/api/status_changes

1 Like