From 393afb7c8dd6ba9ad376ea5c89c5b95ff036ff12 Mon Sep 17 00:00:00 2001 From: Brian Ward Date: Mon, 7 Oct 2024 11:44:24 -0400 Subject: [PATCH 1/4] Fix offday calculation --- data/schedule.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/data/schedule.py b/data/schedule.py index 194e0f45..45c2cfff 100644 --- a/data/schedule.py +++ b/data/schedule.py @@ -82,10 +82,7 @@ def is_offday_for_preferred_team(self): return True def is_offday(self): - if self.config.standings_no_games: - return not len(self.__all_games) # care about all MLB - else: # only care if we can't rotate a game - return not len(self._games) + return not len(self.__all_games) # care about all MLB def games_live(self): return any(status.is_fresh(g["status"]) or (status.is_live(g["status"])) for g in self._games) From 05d7965fa8d0ab39b3cba747b4896a5f093be7e9 Mon Sep 17 00:00:00 2001 From: Tyler Porter Date: Mon, 4 Nov 2024 11:56:24 -0500 Subject: [PATCH 2/4] Athletics leave Oakland --- data/teams.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/teams.py b/data/teams.py index 8dde88de..3f81a9d4 100644 --- a/data/teams.py +++ b/data/teams.py @@ -6,7 +6,7 @@ # TEAM_ABBR_LN = {t['name']:t['abbreviation'] for t in teams} TEAM_FULL = { - "Athletics": "Oakland Athletics", + "Athletics": "Athletics", "Pirates": "Pittsburgh Pirates", "Padres": "San Diego Padres", "Mariners": "Seattle Mariners", @@ -39,7 +39,7 @@ } TEAM_ABBR_LN = { - "Oakland Athletics": "OAK", + "Athletics": "ATH", "Pittsburgh Pirates": "PIT", "San Diego Padres": "SD", "Seattle Mariners": "SEA", From 04339a9b0d3d1a710274a7fcbde5ab033ad5d81d Mon Sep 17 00:00:00 2001 From: Tyler Porter Date: Sun, 3 Nov 2024 21:22:21 -0500 Subject: [PATCH 3/4] Allow selection of driver version and set 14ab2ff as current default Make the driver version a cmd line flag instead of config Update README driver text Actually do the checkout --- README.md | 27 +++++++++++++++------------ install.sh | 55 +++++++++++++++++++++++++++++++----------------------- 2 files changed, 47 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index 94b8f16a..26a8a7a4 100755 --- a/README.md +++ b/README.md @@ -135,26 +135,29 @@ It will also install the following python libraries that are required for certai * [MLB-StatsAPI](https://pypi.org/project/MLB-StatsAPI/): The main library that fetches and parses all of the actual MLB data being displayed * [RGBMatrixEmulator](https://github.com/ty-porter/RGBMatrixEmulator): The emulation library for the matrix display. Useful for running on MacOS or Linux, or for development. -#### Installation on Non-Raspberry Pi Hardware +#### Customizing the Installation -The installation script is designed for physical hardware. When attempting to install it on other platforms, you should not use `sudo` to install the dependencies. In addition, you can pass the `--emulator-only` argument to skip installation steps that aren't required. +Additional flags are available for customizing your install: ``` -sh install.sh --emulator-only -``` +-a, --skip-all Skip all dependencies and config installation (equivalent to -c -p -m). +-c, --skip-config Skip updating JSON configuration files. +-m, --skip-matrix Skip building matrix driver dependency. Video display will default to emulator mode. +-p, --skip-python Skip Python 3 installation. Requires manual Python 3 setup if not already installed. -Additional flags are available for customizing your install: +-v, --no-venv Do not create a virtual environment for the dependencies. +-e, --emulator-only Do not install dependencies under sudo. Skips building matrix dependencies (equivalent to -m) +-d, --driver Specify a branch name or commit SHA for the rpi-rgb-led-matrix library. (Optional. Defaults may change.) +-h, --help Display this help message ``` --p, --skip-python Skips Python 3 installation. You will need to install it via your platform's appropriate package manager. --m, --skip-matrix Skips RPI-specific matrix driver installation and build. --c, --skip-config Skips default config overwrite without prompting. --a, --skip-all Performs all above skips. ---no-venv Do not create a virtual environment for the dependencies. ---emulator-only Do not install dependencies under sudo. Skips building matrix dependencies. +#### Installation on Non-Raspberry Pi Hardware + +The installation script is designed for physical hardware. When attempting to install it on other platforms, you should not use `sudo` to install the dependencies. In addition, you can pass the `--emulator-only` argument to skip installation steps that aren't required. --h, --help Displays help +``` +sh install.sh --emulator-only ``` #### Updating diff --git a/install.sh b/install.sh index b9563b98..d442221b 100755 --- a/install.sh +++ b/install.sh @@ -1,58 +1,65 @@ #!/bin/bash +SKIP_PYTHON=false +SKIP_CONFIG=false +SKIP_MATRIX=false +NO_SUDO=false +SKIP_VENV=false +DRIVER_SHA=14ab2ff + usage() { cat < Date: Mon, 4 Nov 2024 12:01:13 -0500 Subject: [PATCH 4/4] Bump version --- version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.py b/version.py index 3f68b6da..36d9a3a7 100644 --- a/version.py +++ b/version.py @@ -1,5 +1,5 @@ SCRIPT_NAME = "MLB LED Scoreboard" -SCRIPT_VERSION = "8.0.2" +SCRIPT_VERSION = "8.1.0" if __name__ == "__main__":