From 2512ab384cece925ccda105474faed1589711edb Mon Sep 17 00:00:00 2001 From: pawptart Date: Thu, 28 Apr 2022 23:37:21 -0400 Subject: [PATCH 1/2] Add issue template and version information --- ISSUE_TEMPLATE.md | 35 +++++++++++++++++++++++++++++++++++ README.md | 9 ++++++++- main.py | 5 +---- version.py | 6 ++++++ 4 files changed, 50 insertions(+), 5 deletions(-) create mode 100644 ISSUE_TEMPLATE.md create mode 100644 version.py diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md new file mode 100644 index 00000000..159dff7f --- /dev/null +++ b/ISSUE_TEMPLATE.md @@ -0,0 +1,35 @@ + + +## This issue is a + +- [ ] Bug Report +- [ ] Feature Request + + + +## Hardware Configuration + +- Raspberry Pi Revision (4B+/3B+/Zero/etc.): +- Operating System: +- Matrix size: +- Display adapter (HAT/Bonnet/etc.): + - Additional information: +- Power source(s): + + + +## Software Configuration + + + +- MLB LED Scoreboard Version: +- Commands/arguments used to start the scoreboard: + +## Expected behavior + + +## Actual behavior + + +## Additional Information + diff --git a/README.md b/README.md index 69fd4c43..ef18d8ec 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# mlb-led-scoreboard [![Join Slack](https://img.shields.io/badge/slack-join-blue.svg)](https://mlb-led-scoreboard.herokuapp.com/) +# mlb-led-scoreboard +![Current Version](https://img.shields.io/github/v/release/MLB-LED-Scoreboard/MLB-LED-Scoreboard) [![Join Slack](https://img.shields.io/badge/slack-join-blue.svg)](https://mlb-led-scoreboard.herokuapp.com/) --------------- @@ -104,6 +105,12 @@ It will also install the following python libraries that are required for certai That should be it! Your latest version should now be working with whatever new fangled features were just added. +#### Version Information + +You can check the version information for your installation of mlb-led-scoreboard by running `python3 version.py`. + +The latest version of the software is available [here](https://github.com/MLB-LED-Scoreboard/mlb-led-scoreboard/releases). + #### Time Zones Make sure your Raspberry Pi's timezone is configured to your local time zone. They'll often have London time on them by default. You can change the timezone of your raspberry pi by running `sudo raspi-config`. diff --git a/main.py b/main.py index 51adcc4f..58d372b5 100755 --- a/main.py +++ b/main.py @@ -16,6 +16,7 @@ from data.config import Config from renderers.main import MainRenderer from utils import args, led_matrix_options +from version import SCRIPT_NAME, SCRIPT_VERSION try: from rgbmatrix import RGBMatrix, __version__ @@ -27,10 +28,6 @@ emulated = True -SCRIPT_NAME = "MLB LED Scoreboard" -SCRIPT_VERSION = "5.0.4" - - def main(matrix, config_base): # Read scoreboard options from config.json if it exists diff --git a/version.py b/version.py new file mode 100644 index 00000000..e040bcf2 --- /dev/null +++ b/version.py @@ -0,0 +1,6 @@ +SCRIPT_NAME = "MLB LED Scoreboard" +SCRIPT_VERSION = "5.0.4" + + +if __name__ == "__main__": + print(f"{SCRIPT_NAME} v{SCRIPT_VERSION}") \ No newline at end of file From bd82303bbe32097668d3690c242b905468de2420 Mon Sep 17 00:00:00 2001 From: pawptart Date: Thu, 28 Apr 2022 23:39:04 -0400 Subject: [PATCH 2/2] Fix newline --- version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.py b/version.py index e040bcf2..1322e7b0 100644 --- a/version.py +++ b/version.py @@ -3,4 +3,4 @@ if __name__ == "__main__": - print(f"{SCRIPT_NAME} v{SCRIPT_VERSION}") \ No newline at end of file + print(f"{SCRIPT_NAME} v{SCRIPT_VERSION}")