Giter VIP home page Giter VIP logo

battery-tracker's Introduction

battery-tracker

Python script for battery data tracking at competitions.

Installation

  1. Install Python 3.10 or higher
  2. Install pip
  3. Install dependencies with pip install -r requirements.txt

Usage

  1. Run python3 battery_tracker.py
  2. 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
  3. 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 battery n (which is defined in the config.json file) and will wrap around to battery 0 after battery n
  4. Insert the battery terminal into the Battery Beak and read the values
  5. The program will prompt you to enter the values you read off of the Battery Beak
  6. You can now replace the battery with the next battery and repeat steps 2-5 for each match

Configuration

The config.json file contains the following fields:

  • competition_code: The competition code for the competition
  • year: The year of the competition
  • number_of_batteries: The number of batteries that will be in circulation at the competition

License

This project is licensed under the MIT License - see the LICENSE file for details.

battery-tracker's People

Contributors

anivanchen avatar

Stargazers

Guilherme Samuel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.