Skip to main content

reeln-cli plugin that bridges game init to OBS scoreboard text files

Project description

reeln-plugin-streamn-scoreboard

A reeln-cli plugin that bridges game initialization to the streamn-scoreboard OBS plugin.

When reeln game init runs, this plugin automatically writes initial game state to the scoreboard's 17 text output files — setting team names, clock time, scores, shots, fouls, period, sport, and clearing penalties.

Install

reeln plugin install streamn-scoreboard

Or for development:

git clone https://github.com/StreamnDad/reeln-plugin-streamn-scoreboard
cd reeln-plugin-streamn-scoreboard
make dev-install

Configuration

Add the scoreboard plugin settings to your reeln-cli config:

{
  "plugins": {
    "settings": {
      "streamn-scoreboard": {
        "output_directory": "/path/to/scoreboard/output"
      }
    }
  }
}

Options

Key Required Description
output_directory Yes Path to the scoreboard text file output directory

Output Files

File Content at game init
clock.txt Formatted period length (e.g., 20:00)
period.txt 1
home_name.txt Home team name
away_name.txt Away team name
home_score.txt 0
away_score.txt 0
home_shots.txt 0
away_shots.txt 0
home_fouls.txt 0
away_fouls.txt 0
home_fouls2.txt 0
away_fouls2.txt 0
home_penalty_numbers.txt (empty)
home_penalty_times.txt (empty)
away_penalty_numbers.txt (empty)
away_penalty_times.txt (empty)
sport.txt Sport name (e.g., hockey)

Usage

Once installed and configured, the plugin activates automatically. Run:

reeln game init Eagles Hawks --sport hockey --level bantam

The plugin writes initial scoreboard state to the configured output directory. The OBS scoreboard's 100ms write loop takes over once the game is running.

Clock Resolution

The clock value is resolved with the following priority:

  1. game_info.period_length — set via --period-length CLI flag or interactive prompt
  2. home_profile.period_length — from the team profile when --level is used
  3. Sport-based default — fallback from the table below

Supported Sports

Sport Default Clock Notes
hockey 20:00 20 min periods, count down
basketball 12:00 12 min quarters
soccer 45:00 45 min halves
football 30:00 30 min halves
lacrosse 12:00 12 min quarters
rugby 40:00 40 min halves
baseball 0:00 No clock
generic 0:00 No default duration

Development

make dev-install    # editable install with dev deps
make test           # pytest with 100% coverage
make lint           # ruff check
make format         # ruff format
make check          # lint + type check + test

License

AGPL-3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reeln_plugin_streamn_scoreboard-0.3.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file reeln_plugin_streamn_scoreboard-0.3.0.tar.gz.

File metadata

  • Download URL: reeln_plugin_streamn_scoreboard-0.3.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for reeln_plugin_streamn_scoreboard-0.3.0.tar.gz
Algorithm Hash digest
SHA256 2cf219b72a5c3ac9ef00d9719fe620e864f05781f1c2a59ad66f57ffc71bf8a8
MD5 ff00c0f3247b06ee2a21a77d4e79ccf9
BLAKE2b-256 4f2992d847ad0c1c8b73fb792f03edbaefb75776640752f8d363d9cdf4bcc147

See more details on using hashes here.

File details

Details for the file reeln_plugin_streamn_scoreboard-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: reeln_plugin_streamn_scoreboard-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for reeln_plugin_streamn_scoreboard-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 592d818208d1058e685e07fa2d4a8e7f7bd30d46284fb56b8b7d4c66c424306c
MD5 390de98dfc85d74cc42bc020d732cd71
BLAKE2b-256 a470a95290109179e5a1f6f381712342a224d448bf4c557ed2866fc9ee7a6509

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page