Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

128 layout options. #407

Open
wants to merge 33 commits into
base: beta
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
53b14ef
128x64 updates
xxxDrewedxxx Apr 13, 2023
d0c1984
Perfect DOS VGA 437 added
xxxDrewedxxx Apr 13, 2023
e5e05aa
128x64 updates
xxxDrewedxxx Apr 13, 2023
761a31e
128x64 updates
xxxDrewedxxx Apr 13, 2023
3eb5c0d
128x64 updates
xxxDrewedxxx Apr 14, 2023
5deedf8
128x64 updates
xxxDrewedxxx Apr 14, 2023
af42e84
Delete config.json
riffnshred Apr 18, 2023
dd4e6e8
Update config.json.sample
xxxDrewedxxx Apr 18, 2023
1888d4d
More 128 layout
xxxDrewedxxx Apr 20, 2023
5c3f185
More 128 updates
xxxDrewedxxx Apr 25, 2023
1346ed6
More 128 updates
xxxDrewedxxx Apr 25, 2023
8c3b73c
Bullseye Updates
xxxDrewedxxx May 9, 2023
131d27a
Bullseye Updates
xxxDrewedxxx May 9, 2023
3698001
Update config.json
xxxDrewedxxx May 9, 2023
ee01ce4
Update config.json.sample
xxxDrewedxxx May 9, 2023
24e8e0b
Delete config.json
xxxDrewedxxx May 9, 2023
5971b9d
Fix missing game data -Copied fix from PR #412
riffnshred Jul 4, 2023
d73aaf6
version bump to 1.6.11
riffnshred Jul 4, 2023
9e9ed6f
fixed indentation in team.py
riffnshred Jul 4, 2023
5149367
seasoncountdown now will use the next season info from the NHL api (#…
falkyre Jul 31, 2023
edf3268
Update README.md
riffnshred Jul 31, 2023
fe1db62
Update VERSION
riffnshred Aug 2, 2023
2a8eb1e
alert updates and bulldog
xxxDrewedxxx Aug 20, 2023
3c080f8
updates
xxxDrewedxxx Aug 20, 2023
ecffbf5
Update README.md
riffnshred Sep 21, 2023
1cda3ec
Update README.md
riffnshred Sep 21, 2023
d3a7f4e
Update README.md
riffnshred Oct 11, 2023
01667c6
Update README.md
riffnshred Oct 11, 2023
c0928b4
Update README.md
riffnshred Oct 11, 2023
bd353b1
Update README.md
riffnshred Nov 10, 2023
da3d9fe
Elepolt api fix - version bump to 1.7.0 (#431)
riffnshred Nov 23, 2023
3336361
Update README.md
riffnshred Nov 29, 2023
2259a09
Merge branch 'riffnshred:master' into master
xxxDrewedxxx Dec 15, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 42 additions & 40 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,53 @@
#
name: Redocly OpenAPI

on:
# Runs on pushes targeting the default branch
push:
# branches: [ beta ]
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

name: Create Tagged Release
branches: ["master"]

jobs:
build:
name: Create Release
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
fetch-depth: 0
- name: Set current version variable
node-version: '20.x'
- run: npm i -g @redocly/cli@latest
- run: redocly build-docs swagger/nhl.json --output=docs/index.html
- name: Fix permissions
run: |
VER=$(cat VERSION)
echo "VERSION=$VER" >> $GITHUB_ENV
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Bump version
run: |
echo "${{ steps.get_version.outputs.VERSION }}" > VERSION
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
force: "true"
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@main
chmod -c -R +rX "_site/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
commitMode: "true"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Upload entire repository
path: 'docs/'

- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: ${{ steps.get_version.outputs.VERSION }}
body: ${{ steps.github_release.outputs.changelog }}
# Deploy job
deploy:
# Add a dependency to the build job
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

51 changes: 51 additions & 0 deletions .github/workflows_riffnshred/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
on:
push:
# branches: [ beta ]
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

name: Create Tagged Release

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set current version variable
run: |
VER=$(cat VERSION)
echo "VERSION=$VER" >> $GITHUB_ENV
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Bump version
run: |
echo "${{ steps.get_version.outputs.VERSION }}" > VERSION
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
force: "true"
- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@main
with:
commitMode: "true"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: ${{ steps.get_version.outputs.VERSION }}
body: ${{ steps.github_release.outputs.changelog }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,5 @@ src/renderer/boarddev

# Custom_logos to overwrite the standard one
config/custom_logos.json

nhl-api-client/
37 changes: 18 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# NHL-LED-scoreboard
# NHL-LED-scoreboard (THIS PROJECT IS INDEFINITLY ON HOLD)

![scoreboard demo](assets/images/scoreboard.jpg)

Expand All @@ -9,15 +9,26 @@
[![Create Release - Image](https://github.com/falkyre/nhl-led-scoreboard-img/actions/workflows/main.yml/badge.svg)](https://github.com/falkyre/nhl-led-scoreboard-img/actions/workflows/main.yml)
[![GitHub release (latest by date)](https://badgen.net/github/release/falkyre/nhl-led-scoreboard-img?label=Version)](https://github.com/falkyre/nhl-led-scoreboard-img/releases/latest)

## IMPORTANT (PLEASE READ)
[![discord button](assets/images/discord_button.png)](https://discord.gg/CWa5CzK)
# IMPORTANT (PLEASE READ)

### CURRENT KNOWN ISSUES (Pre-season 2022)
At the moment, the NHL API is quite unstable and the scoreboard is confused and keep crashing. Do not adjust your set, it will get back to normal around when the season is about to start.
## (2023-11-09)
old stats api is officially dead. please read below on the current state of the project. only thing that change is that the plan is that Ill start from scratch for the next version. No time frame on anything for now for reasons stated below

### RASPBERRY PI ZERO NO MORE SUPPORTED (EDIT: [use a Pi Zero 2 instead](https://github.com/riffnshred/nhl-led-scoreboard/discussions/335))
From now on, this library won't support the Raspberry Pi Zero or Zero W. This is because the project has become too complex to work properly on it. For those who are already using that model, It should still work with the latest version, but I won't give any support for it. I don't guarantee it will work from this point on.
## (2023-10-11) Indefinitly on Hold. More changes and complications. Limited free time. Future uncertain (Don't build this for a friend).
Over the last few weeks, we discovered that the NHL API has changed to a new one and the previous version is now unreliable (even tho it came back to life after being out for a few days). More so, a lot of packages, plugins and more recently, the OS we use had a major update and the software stack we use to make this project work changed a lot. This means that the current documentation of this project is now partially deprecated. If you have enough know-how, you can make the project work. Due to unforeseen events in my life, I no longer have the same amount of free time to dedicate to this project, keep it up to date and make it easy to use.

The models we support are all the Raspberry pi 3 versions and the Pi 4.
The current situation is, that if you have a working scoreboard, it should be fine while the previous NHL API is operational. If your scoreboard is not working at the moment, you may try the image version of the scoreboard offered by Falkyre. He's currently working on fixing a few things related to software changes and OS changes, but I believe he will have it up and running in the coming days. Again, this uses the previous version of the NHL API and thus, its fate is the same.

What I'm focusing on with the little time I find is fixing the code of this project to use the new NHL API. This will take a bit of time.


## Compatible Raspberry pi OS
For v1.6.x and lower, use Raspberry Pi OS Lite (Legacy). The newer version of Raspberry pi OS (Bullseye) is not supported at the moment.

### Supported Raspberry Pi models

The models we support are the Raspberry Pi Zero 2W, all the Raspberry pi 3 and the Pi 4 models.

If you are looking to replace your raspberry pi Zero, I personally recommend the Raspberry pi 3A+. If you use the RGB Bonnet along with that, make sure to isolate the bottom of it with a few layers of Kapton tape or a layer of electrical tape.

Expand Down Expand Up @@ -59,18 +70,6 @@ This project is new and is in constant evolution. Please read the documentation
**NEW on MARCH 2 2020***
The Discord Channel still exist, But We now use the new [Discussions](https://github.com/riffnshred/nhl-led-scoreboard/discussions) section. If you need help, are looking for resources, show off your setup or want to keep up with what's going on with the project, this is where it's all about.

Want to help me turn coffee into features? Or just want to contribute

for my work?



<a href="https://www.buymeacoffee.com/MgDa5sr" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/black_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>





## Requirements

Since version V1.0.0 you need python 3.3 and up.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.6.10
1.7.0
Binary file added assets/fonts/07558_CenturyGothic.ttf
Binary file not shown.
Binary file added assets/fonts/07723_Cgothicb0.ttf
Binary file not shown.
Binary file added assets/fonts/09809_COURIER.ttf
Binary file not shown.
Binary file added assets/fonts/Perfect DOS VGA 437.ttf
Binary file not shown.
Binary file added assets/fonts/runescape_uf.ttf
Binary file not shown.
Binary file modified assets/loading/loading.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 36 additions & 30 deletions config/.default/config.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,42 @@
"live_mode": true,
"preferences": {
"time_format": "12h",
"end_of_day": "8:00",
"end_of_day": "0:01",
"location": "",
"live_game_refresh_rate": 10,
"teams": [
"Canadiens"
"Wild"
],
"sog_display_frequency": 4,
"goal_animations": {
"pref_team_only": true
"pref_team_only": false
}
},

"states":{
"off_day": [
"team_summary",
"clock"
"wxalert",
"clock",
"weather
],
"scheduled": [
"team_summary",
"scoreticker",
"clock"
"wxalert",
"clock",
"weather
],
"intermission": [
"scoreticker",
"team_summary"
"team_summary",
"wxalert",
"clock",
"weather
],
"post_game": [
"team_summary",
"scoreticker",
"clock"
"team_summary",
"wxalert",
"clock",
"weather
]
},

Expand All @@ -48,40 +54,40 @@
},
"standings": {
"preferred_standings_only": true,
"standing_type": "division",
"divisions": "atlantic",
"conference": "eastern"
"standing_type": "conference",
"divisions": "central",
"conference": "western"
},
"clock": {
"duration": 15,
"duration": 5,
"hide_indicator": false,
"preferred_team_colors": true,
"clock_rgb": "",
"date_rgb": "",
"flash_seconds": true
"clock_rgb": "200,16,46",
"date_rgb": "241,190,72",
"flash_seconds": false
},
"weather": {
"enabled": false,
"enabled": true,
"view": "full",
"units": "metric",
"duration": 60,
"data_feed": "EC",
"units": "imperial",
"duration": 15,
"data_feed": "OWM",
"owm_apikey": "",
"update_freq": 5,
"show_on_clock": true,
"forecast_enabled": false,
"forecast_enabled": true,
"forecast_days": 3,
"forecast_update": 1
},
"wxalert": {
"alert_feed": "EC",
"alert_feed": "NWS",
"update_freq": 5,
"show_alerts": false,
"nws_show_expire": false,
"show_alerts": true,
"nws_show_expire": true,
"alert_title": true,
"scroll_alert": true,
"alert_duration": 5,
"show_on_clock": true
"show_on_clock": false
}
},
"sbio": {
Expand All @@ -96,10 +102,10 @@
"delay": 30
},
"dimmer": {
"enabled": false,
"enabled": true,
"source": "software",
"daytime": "",
"nighttime": "",
"daytime": "07:00",
"nighttime": "22:00",
"offset": 0,
"frequency": 5,
"light_level_lux": 400,
Expand Down
Empty file removed config/.default/firstrun
Empty file.
12 changes: 6 additions & 6 deletions config/colors/layout.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@
"forecast_lo": [0,0,255]
},
"wx_curr_wind": {
"wind": [255,255,0],
"gust": [173,255,47],
"wind": [200,16,46],
"gust": [241,190,72],
"pressure": [218,165,32],
"visibility": [218,165,32]
"visibility": [200,16,46]
},
"wx_curr_precip": {
"precipchance": [0,191,255],
"humidity": [0,255,255],
"humidity": [200,16,46],
"preciptype_na": [0,206,235],
"pressure": [218,165,32],
"dewpoint": [24,252,0]
"pressure": [200,16,46],
"dewpoint": [241,190,72]
},
"wx_alert": {
"watch_us": [255,165,0],
Expand Down
Loading