Python interface for scoreboard consoles manufactured by Daktronics and Colorado Time Systems
Project description
ScoreBox Consoles
Python interface for scoreboard consoles manufactured by Daktronics and Colorado Time Systems
Supported Consoles
- Daktronics All Sport 5000
- :basketball: Basketball
- :football: Football
- :volleyball: Volleyball
- :water_polo: Water Polo
- Colorado Time Systems System 6
- :water_polo: Water Polo
Installation
pip install scorebox-consoles
Usage
from consoles.sports import Basketball
if __name__ == '__main__':
basketball = Basketball('COM1')
game_state = basketball.export()
Call to sport class must be protected by a if __name__ == '__main__'
because the serial connection is read in a seperate process
Connecting a Console
Consoles are connected with via a Serial to USB cable.
Daktronics All Sport 5000 - Connect to the port labeled I/O Port (J6) with a DB25 to DB9 Serial connector
Colorado Time Systems System 6 - Tap into the 1/4" Scoreboard Out plug and connect the tip to pin 2 of a Serial DB9 connector and the shoe to pin 5.
API
Sport classes take a serial port string as an argument and expose an export
method that returns the current game state.
:basketball: Basketball
Key | Type | Description |
---|---|---|
{home/visitor}_score |
int | Team Score |
{home/visitor}_timeouts |
int | Team Timeouts Remaining |
{home/visitor}_fouls |
int | Team Fouls |
{home/visitor}_possesion |
bool | Team Possesion Status |
{home/visitor}_bonus |
bool | Team Bonus (1-on-1) Status |
{home/visitor}_double_bonus |
bool | Team Double Bonus (2 shots) Status |
clock |
str | Main Clock Time (excludes timeout time), Tenths shown under 1 minute if configured in console settings |
shot |
str | Shot Clock Time, Tenths shown under 5 seconds if configured in console settings |
period |
str | Game Period |
:football: Football
Key | Type | Description |
---|---|---|
{home/visitor}_score |
int | Team Score |
{home/visitor}_timeouts |
int | Team Timeouts Remaining |
{home/visitor}_possesion |
bool | Team Possesion Status |
clock |
str | Main Clock Time |
play |
str | Play Clock Time |
quarter |
str | Game Quarter |
down |
str | Down Number (include ordination [ex. 1ST ]) |
to_go |
int | Yards For First Down |
ball_on |
int | Ball Location on the Field (does not include side of field) |
flag |
bool | Flag Status (only updated on console button push) |
:volleyball: Volleyball
Key | Type | Description |
---|---|---|
{home/visitor}_score |
int | Team Score in Current Game |
{home/visitor}_sets |
int | Team Sets Won |
current_set |
int | Game Set |
:water_polo: Water Polo
Key | Type | Description |
---|---|---|
{home/visitor}_score |
int | Team Score |
clock |
str | Main Clock Time |
shot |
str | Shot Clock Time |
period |
str | Game Period |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for scorebox_consoles-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f451fd15287739b705f08a04126ba4ece3388e275a9cf59c28f13d3ce0e6752 |
|
MD5 | fde23e86018b5d3e9596071aa83a9a0b |
|
BLAKE2b-256 | 6e6ff3d89a702824b0b4a10990ca5a7375879d757fc08500697afd72b5ff9ef4 |