{"id":37195501,"url":"https://github.com/robocup-ssl/ssl-match-stats","last_synced_at":"2026-01-14T22:43:58.995Z","repository":{"id":42626743,"uuid":"218126686","full_name":"RoboCup-SSL/ssl-match-stats","owner":"RoboCup-SSL","description":"Tool for generating match statistics out of SSL log files","archived":false,"fork":false,"pushed_at":"2025-12-02T10:11:45.000Z","size":700,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-12-03T20:51:33.483Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RoboCup-SSL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-10-28T19:16:49.000Z","updated_at":"2025-12-02T10:11:48.000Z","dependencies_parsed_at":"2022-09-10T20:21:40.913Z","dependency_job_id":"0aadbd11-24f2-4e5e-992a-e023baede8b4","html_url":"https://github.com/RoboCup-SSL/ssl-match-stats","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/RoboCup-SSL/ssl-match-stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboCup-SSL%2Fssl-match-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboCup-SSL%2Fssl-match-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboCup-SSL%2Fssl-match-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboCup-SSL%2Fssl-match-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RoboCup-SSL","download_url":"https://codeload.github.com/RoboCup-SSL/ssl-match-stats/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoboCup-SSL%2Fssl-match-stats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28436755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T22:43:58.274Z","updated_at":"2026-01-14T22:43:58.978Z","avatar_url":"https://github.com/RoboCup-SSL.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CircleCI](https://circleci.com/gh/RoboCup-SSL/ssl-match-stats/tree/master.svg?style=svg)](https://circleci.com/gh/RoboCup-SSL/ssl-match-stats/tree/master)\n\n# ssl-match-stats\n\nA tool that generates statistics from [official SSL log files](https://ssl.robocup.org/game-logs/).\n\n## Requirements\n\nYou need to install following dependencies:\n\n* Go\n\n## Usage\n\n### Build\n\n```shell\n# Build the binaries and install them in $GOPATH/bin\nmake install\n```\n\n### Generate Statistics\n\nThe `ssl-match-stats` command will generate the statistics into an intermediate data structure `*.{json|bin}`\nfrom which they can be exported. This must be done per tournament and division.\n\nThe command takes a list of log files as input:\n\n```\nmkdir -p stats\nssl-match-stats -parallel 16 -targetDir stats *.log.gz\n```\n\n### Import Statistics into a Database\n\nThe generated statistics can be exported into a PostgreSQL database.\nThis makes it easier to query and analyze the data.\n\nThe command requires some parameters:\n\n* tournament: A unique name for the tournament of the log files, for example 'RoboCup2019'\n* division: The division of the log files, one of: 'DivA', 'DivB', 'none'\n* sqlDbSource: A connection string to the target database\n\n```shell\nssl-match-stats-db \\\n  -parallel=16 \\\n  -sqlDbSource=\"postgres://ssl_match_stats:ssl_match_stats@localhost:5432/ssl_match_stats?sslmode=disable\" \\\n  -tournament=Test \\\n  -division=DivA \\\n  stats/*.bin\n```\n\n### Local Setup\n\nUse the provided compose setup to run the database and metabase locally.\n\n```shell\ndocker compose up -d\n```\n\nThe database connection string\nis: `postgres://ssl_match_stats:ssl_match_stats@localhost:5432/ssl_match_stats?sslmode=disable`\n\n### Remote Setup\n\nThe host the statistics one a server, following the below instructions.\n\nSee [Setup for Match Stats DB](./setup/matchStatsDb/README.md) for instructions on setting up the PostgreSQL database.\n\nSee [Setup for Metabase](./setup/metabase/README.md) for instructions on setting up Metabase, an open-source BI\nsoftware.\n\n### Manual data correction\n\nIf you want to evaluate the start time offset between scheduled match start time and actual start time,\nyou need to add the scheduled time into `matches.start_time_planned` manually.\n\n### Protobuf\n\nTo generate the sources from the `.proto` files, run `make proto`.\n\n## Implementation Details\n\nThis tool reads log files one by one with the `ssl-match-stats` command and creates a protobuf file based\non [ssl_match_stats.proto](./proto/ssl_match_stats.proto).\nThis structure contains a `MatchStats` object per match (log file), which contains:\n\n* Some meta data like name, duration, etc.\n* A list of all game phases (which map roughly to referee commands)\n* `TeamStats` for each team\n\nThe incentive is that the `MatchStats` structure contains an improved representation of the referee messages\nfor further processing. The match is split into game phases, where a new game phase is started for each new command\n(except the goal commands). Each game phase has metadata, entry and exit states and game events attached to it.\n`TeamStats` contain aggregated final counters and timers.\n\nWith this improved representation, the data can be exported for further analysis.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobocup-ssl%2Fssl-match-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobocup-ssl%2Fssl-match-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobocup-ssl%2Fssl-match-stats/lists"}