Initial Commit

This commit is contained in:
2026-02-13 12:22:06 -05:00
parent 43fdccf67b
commit 8fec41e3e6
612 changed files with 1313484 additions and 2 deletions

View File

@@ -0,0 +1,233 @@
{
"web_display_autostart": true,
"schedule": {
"enabled": false,
"start_time": "07:00",
"end_time": "23:00"
},
"timezone": "America/Toronto",
"location": {
"city": "Ottawa",
"state": "Ontario",
"country": "CA"
},
"color_map" :{
"red": [255, 0, 0],
"green": [0, 255, 0],
"blue": [0, 0, 255],
"yellow": [255, 255, 0],
"cyan": [0, 255, 255],
"magenta": [255, 0, 255],
"white": [255, 255, 255],
"orange": [255, 165, 0],
"purple": [128, 0, 128]
},
"display": {
"hardware": {
"rows": 32,
"cols": 64,
"chain_length": 2,
"parallel": 1,
"brightness": 90,
"hardware_mapping": "adafruit-hat-pwm",
"scan_mode": 0,
"pwm_bits": 9,
"pwm_dither_bits": 1,
"pwm_lsb_nanoseconds": 130,
"disable_hardware_pulsing": false,
"inverse_colors": false,
"show_refresh_rate": false,
"limit_refresh_rate_hz": 100
},
"runtime": {
"gpio_slowdown": 4
},
"display_durations": {
"clock": 15,
"leaderboard": 300,
"eojhl_live": 15,
"eojhl_recent": 15,
"eojhl_upcoming": 15
},
"use_short_date_format": true
},
"clock": {
"enabled": false,
"format": "%I:%M %p",
"update_interval": 1
},
"transitions": {
"enabled": true,
"fade_duration": 0.4,
"fade_steps": 6,
"cut_duration": 0.2,
"easing": true
},
"league_order": {
"eojhl": 1,
"cchl": 2
},
"leaderboard": {
"enabled": true,
"enabled_sports": {
"eojhl": {
"enabled": true,
"top_teams": 10,
"season": 2025,
"level": 1,
"sort": "winpercent:desc,gamesbehind:asc"
}
},
"logo_intro_hold": 0,
"logo_hold": 3,
"logo_spacing": 20,
"conference_spacing": 60,
"show_record": false,
"update_interval": 3600,
"scroll_speed": 1,
"scroll_delay": 0.01,
"loop": false,
"request_timeout": 30,
"dynamic_duration": true,
"min_duration": 30,
"max_display_time": 600
},
"eojhl_scoreboard": {
"enabled": true,
"live_priority": true,
"live_game_duration": 20,
"test_mode": false,
"update_interval_seconds": 3600,
"live_update_interval": 30,
"recent_update_interval": 3600,
"upcoming_update_interval": 3600,
"recent_games_to_show": 1,
"upcoming_games_to_show": 3,
"show_favorite_teams_only": true,
"show_all_live": true,
"show_shots_on_goal": true,
"favorite_teams": [
"RCH"
],
"logo_dir": "assets/sports/eojhl_logos",
"show_records": true,
"display_modes": {
"eojhl_live": true,
"eojhl_recent": true,
"eojhl_upcoming": true
},
"show_odds": false,
"show_home_away": true,
"status_titles": {
"GAME_DAY": "GAME DAY",
"HOME_GAME": "NEXT HOME GAME",
"AWAY_GAME": "NEXT AWAY GAME",
"RECENT_GAME": "LAST GAME RESULT"
},
"title_colors": {
"GAME_DAY": [255, 255, 0],
"HOME_GAME": [0, 200, 255],
"AWAY_GAME": [0, 255, 128],
"RECENT_GAME": [0, 51, 204]
}
},
"sponsors": {
"enabled": true,
"show_all": false,
"show_num_sponsors": 3,
"title_row1": "Thank You to",
"title_row2": "Our Sponsors",
"enabled_sponsors": [
"barleymow",
"bluediamond",
"bmr",
"btlock",
"eardley",
"legion",
"royalsresto",
"sbdodge"
],
"barleymow": {
"enabled": true,
"show_details": false,
"pngabbr": "barleymow",
"details_row1": "R",
"details_row2": ""
},
"bluediamond": {
"enabled": true,
"show_details": false,
"pngabbr": "bluediamond",
"details_row1": "",
"details_row2": ""
},
"bmr": {
"enabled": true,
"show_details": true,
"pngabbr": "bmr",
"details_row1": "BMR",
"details_row2": "Richmond"
},
"btlock": {
"enabled": true,
"show_details": true,
"pngabbr": "btlock",
"details_row1": "Bytown Lock",
"details_row2": "Commercial"
},
"eardley": {
"enabled": true,
"show_details": false,
"pngabbr": "eardley",
"details_row1": "",
"details_row2": ""
},
"legion": {
"enabled": true,
"show_details": false,
"pngabbr": "legion",
"details_row1": "",
"details_row2": ""
},
"royalsresto": {
"enabled": true,
"show_details": false,
"pngabbr": "royalsresto",
"details_row1": "",
"details_row2": ""
},
"sbdodge": {
"enabled": true,
"show_details": false,
"pngabbr": "sbdodge",
"details_row1": "",
"details_row2": ""
},
"show_details": true,
"title_row1_font_size": 8,
"title_row1_colour": "blue",
"title_row2_font_size": 10,
"title_row2_colour": "yellow",
"details_row1_font_size": 10,
"details_row1_colour": "white",
"details_row2_font_size": 8,
"details_row2_colour": "blue",
"loop": true,
"duration": 15,
"title_duration": 5,
"logo_duration": 5,
"details_duration": 5,
"logo_scale": 1.0
},
"team_info": {
"enabled": true,
"team_abbr": "RCH",
"logo_dir":"assets/team/eojhl",
"team_txt_row1": "Richmond",
"team_txt_row2": "Royals",
"team_txt_font_size": 8,
"team_txt_colour": "blue",
"gap": 5,
"duration": 10
}
}

285
config/config.json Normal file
View File

@@ -0,0 +1,285 @@
{
"clock": {
"enabled": false,
"format": "%I:%M %p",
"update_interval": 1
},
"color_map": {
"blue": [
0,
0,
255
],
"cyan": [
0,
255,
255
],
"green": [
0,
255,
0
],
"magenta": [
255,
0,
255
],
"orange": [
255,
165,
0
],
"purple": [
128,
0,
128
],
"red": [
255,
0,
0
],
"white": [
255,
255,
255
],
"yellow": [
255,
255,
0
]
},
"display": {
"display_durations": {
"clock": 15,
"eojhl_live": 15,
"eojhl_recent": 15,
"eojhl_upcoming": 15,
"leaderboard": 300
},
"hardware": {
"brightness": 80,
"chain_length": 2,
"cols": 64,
"disable_hardware_pulsing": false,
"hardware_mapping": "adafruit-hat-pwm",
"inverse_colors": false,
"limit_refresh_rate_hz": 100,
"parallel": 1,
"pwm_bits": 9,
"pwm_dither_bits": 1,
"pwm_lsb_nanoseconds": 130,
"rows": 32,
"scan_mode": 0,
"show_refresh_rate": false
},
"runtime": {
"gpio_slowdown": 4
},
"use_short_date_format": true
},
"eojhl_scoreboard": {
"display_modes": {
"eojhl_live": true,
"eojhl_recent": true,
"eojhl_upcoming": true
},
"enabled": true,
"favorite_teams": [
"RCH"
],
"live_game_duration": 20,
"live_priority": true,
"live_update_interval": 30,
"logo_dir": "assets/sports/eojhl_logos",
"recent_games_to_show": 1,
"recent_update_interval": 3600,
"show_all_live": true,
"show_favorite_teams_only": true,
"show_home_away": true,
"show_odds": false,
"show_records": true,
"show_shots_on_goal": true,
"status_titles": {
"AWAY_GAME": "NEXT AWAY GAME",
"GAME_DAY": "GAME DAY",
"HOME_GAME": "NEXT HOME GAME",
"RECENT_GAME": "LAST GAME RESULT"
},
"test_mode": false,
"title_colors": {
"AWAY_GAME": [
0,
255,
128
],
"GAME_DAY": [
255,
255,
0
],
"HOME_GAME": [
0,
200,
255
],
"RECENT_GAME": [
0,
51,
204
]
},
"upcoming_games_to_show": 3,
"upcoming_update_interval": 3600,
"update_interval_seconds": 3600
},
"leaderboard": {
"conference_spacing": 60,
"dynamic_duration": true,
"enabled": true,
"enabled_sports": {
"eojhl": {
"enabled": true,
"level": 1,
"season": 2025,
"sort": "winpercent:desc,gamesbehind:asc",
"top_teams": 10
}
},
"logo_hold": 3,
"logo_intro_hold": 0,
"logo_spacing": 20,
"loop": false,
"max_display_time": 600,
"min_duration": 30,
"request_timeout": 30,
"scroll_delay": 0.01,
"scroll_speed": 1,
"show_record": false,
"update_interval": 3600
},
"league_order": {
"cchl": 2,
"eojhl": 1
},
"location": {
"city": "Ottawa",
"country": "CA",
"state": "Ontario"
},
"schedule": {
"enabled": true,
"start_time": "08:00",
"end_time": "23:00"
},
"sponsors": {
"barleymow": {
"details_row1": "R",
"details_row2": "",
"enabled": true,
"pngabbr": "barleymow",
"show_details": false
},
"bluediamond": {
"details_row1": "",
"details_row2": "",
"enabled": true,
"pngabbr": "bluediamond",
"show_details": false
},
"bmr": {
"details_row1": "BMR",
"details_row2": "Richmond",
"enabled": true,
"pngabbr": "bmr",
"show_details": true
},
"btlock": {
"details_row1": "Bytown Lock",
"details_row2": "Commercial",
"enabled": true,
"pngabbr": "btlock",
"show_details": true
},
"details_duration": 5,
"details_row1_colour": "#ffffff",
"details_row1_font_size": 8,
"details_row2_colour": "#0000fa",
"details_row2_font_size": 8,
"duration": 14,
"eardley": {
"details_row1": "",
"details_row2": "",
"enabled": true,
"pngabbr": "eardley",
"show_details": false
},
"enabled": true,
"enabled_sponsors": [
"barleymow",
"bluediamond",
"bmr",
"btlock",
"eardley",
"legion",
"royalsresto",
"sbdodge"
],
"legion": {
"details_row1": "",
"details_row2": "",
"enabled": true,
"pngabbr": "legion",
"show_details": false
},
"logo_duration": 5,
"logo_scale": 1,
"loop": true,
"royalsresto": {
"details_row1": "",
"details_row2": "",
"enabled": true,
"pngabbr": "royalsresto",
"show_details": false
},
"sbdodge": {
"details_row1": "",
"details_row2": "",
"enabled": true,
"pngabbr": "sbdodge",
"show_details": false
},
"show_all": true,
"show_details": true,
"show_num_sponsors": 3,
"title_duration": 5,
"title_row1": "Thank you to",
"title_row1_colour": "#FFFFFF",
"title_row1_font_size": 8,
"title_row2": "Our Sponsors",
"title_row2_colour": "#0000FA",
"title_row2_font_size": 8
},
"team_info": {
"duration": 10,
"enabled": true,
"gap": 5,
"logo_dir": "assets/team/eojhl",
"team_abbr": "RCH",
"team_txt_colour": "blue",
"team_txt_font_size": 8,
"team_txt_row1": "Richmond",
"team_txt_row2": "Royals"
},
"timezone": "America/Toronto",
"transitions": {
"cut_duration": 0.2,
"easing": true,
"enabled": true,
"fade_duration": 0.4,
"fade_steps": 6
},
"web_display_autostart": true
}

219
config/config.json.backup Normal file
View File

@@ -0,0 +1,219 @@
{
"web_display_autostart": true,
"schedule": {
"enabled": true,
"start_time": "07:00",
"end_time": "23:00"
},
"timezone": "America/Toronto",
"location": {
"city": "Ottawa",
"state": "Ontario",
"country": "CA"
},
"display": {
"hardware": {
"rows": 32,
"cols": 64,
"chain_length": 2,
"parallel": 1,
"brightness": 90,
"hardware_mapping": "adafruit-hat-pwm",
"scan_mode": 0,
"pwm_bits": 9,
"pwm_dither_bits": 1,
"pwm_lsb_nanoseconds": 130,
"disable_hardware_pulsing": false,
"inverse_colors": false,
"show_refresh_rate": false,
"limit_refresh_rate_hz": 100
},
"runtime": {
"gpio_slowdown": 4
},
"display_durations": {
"clock": 15,
"leaderboard": 300,
"eojhl_live": 15,
"eojhl_recent": 15,
"eojhl_upcoming": 15
},
"use_short_date_format": true
},
"clock": {
"enabled": false,
"format": "%I:%M %p",
"update_interval": 1
},
"transitions": {
"enabled": true,
"fade_duration": 0.4,
"fade_steps": 6,
"cut_duration": 0.2,
"easing": true
},
"league_order": {
"eojhl": 1,
"cchl": 2
},
"leaderboard": {
"enabled": true,
"enabled_sports": {
"eojhl": {
"enabled": true,
"top_teams": 10,
"season": 2025,
"level": 1,
"sort": "winpercent:desc,gamesbehind:asc"
},
"cchl": {
"enabled": false,
"top_teams": 10,
"season": 2025,
"level": 1,
"sort": "winpercent:desc,gamesbehind:asc"
}
},
"logo_intro_hold": 0,
"logo_hold": 3,
"logo_spacing": 20,
"conference_spacing": 60,
"show_record": false,
"update_interval": 3600,
"scroll_speed": 1,
"scroll_delay": 0.01,
"loop": false,
"request_timeout": 30,
"dynamic_duration": true,
"min_duration": 30,
"max_display_time": 600
},
"eojhl_scoreboard": {
"enabled": true,
"live_priority": true,
"live_game_duration": 20,
"test_mode": false,
"update_interval_seconds": 3600,
"live_update_interval": 30,
"recent_update_interval": 3600,
"upcoming_update_interval": 3600,
"recent_games_to_show": 1,
"upcoming_games_to_show": 2,
"show_favorite_teams_only": false,
"show_all_live": true,
"show_shots_on_goal": true,
"favorite_teams": [
"RCH"
],
"logo_dir": "assets/sports/eojhl_logos",
"show_records": true,
"display_modes": {
"eojhl_live": true,
"eojhl_recent": true,
"eojhl_upcoming": true
}
},
"cchl_scoreboard": {
"enabled": false,
"live_priority": true,
"live_game_duration": 20,
"test_mode": false,
"update_interval_seconds": 3600,
"live_update_interval": 30,
"recent_update_interval": 3600,
"upcoming_update_interval": 3600,
"recent_games_to_show": 1,
"upcoming_games_to_show": 2,
"show_favorite_teams_only": false,
"show_all_live": true,
"show_shots_on_goal": true,
"favorite_teams": [
"PEM"
],
"logo_dir": "assets/sports/cchl_logos",
"show_records": true,
"display_modes": {
"cchl_live": true,
"cchl_recent": true,
"cchl_upcoming": true
}
},
"sponsors": {
"enabled": true,
"title_row1": "Thank You to",
"title_row2": "Our Sponsor",
"enabled_sponsors": [
"barleymow",
"bluediamond",
"bmr",
"btlock",
"eardley",
"legion",
"royalsresto",
"sbdodge"
],
"barleymow": {
"enabled": true,
"show_details": false,
"pngabbr": "barleymow"
},
"bluediamond": {
"enabled": true,
"show_details": false,
"pngabbr": "bluediamond"
},
"bmr": {
"enabled": true,
"show_details": true,
"pngabbr": "bmr",
"details_row1": "BMR",
"details_row2": "Richmond"
},
"btlock": {
"enabled": true,
"show_details": true,
"pngabbr": "btlock",
"details_row1": "Bytown Lock",
"details_row2": "Commercial"
},
"eardley": {
"enabled": true,
"show_details": false,
"pngabbr": "eardley",
"name": "Eardley",
"url": "Landscape",
"name_font_size": 10,
"url_colour": "green"
},
"legion": {
"enabled": true,
"show_details": false,
"pngabbr": "legion"
},
"royalsresto": {
"enabled": true,
"show_details": false,
"pngabbr": "royalsresto"
},
"sbdodge": {
"enabled": true,
"show_details": false,
"pngabbr": "sbdodge"
},
"show_details": true,
"title_row1_font_size": 8,
"title_row1_colour": "blue",
"title_row2_font_size": 10,
"title_row2_colour": "yellow",
"details_row1_font_size": 10,
"details_row1_colour": "white",
"details_row2_font_size": 8,
"details_row2_colour": "blue",
"loop": true,
"duration": 15,
"title_duration": 5,
"logo_duration": 10,
"details_duration": 5,
"logo_scale": 1.0
}
}

168
config/config.json.old Normal file
View File

@@ -0,0 +1,168 @@
{
"web_display_autostart": true,
"schedule": {
"enabled": false,
"start_time": "07:00",
"end_time": "23:00"
},
"timezone": "America/Toronto",
"location": {
"city": "Ottawa",
"state": "Ontario",
"country": "CA"
},
"display": {
"hardware": {
"rows": 32,
"cols": 64,
"chain_length": 2,
"parallel": 1,
"brightness": 90,
"hardware_mapping": "adafruit-hat-pwm",
"scan_mode": 0,
"pwm_bits": 9,
"pwm_dither_bits": 1,
"pwm_lsb_nanoseconds": 130,
"disable_hardware_pulsing": false,
"inverse_colors": false,
"show_refresh_rate": false,
"limit_refresh_rate_hz": 100
},
"runtime": {
"gpio_slowdown": 3
},
"display_durations": {
"clock": 15,
"leaderboard": 300,
"nhl_live": 30,
"nhl_recent": 30,
"nhl_upcoming": 30,
"eojhl_live": 30,
"eojhl_recent": 30,
"eojhl_upcoming": 30,
"text_display": 10,
"static_image": 10
},
"use_short_date_format": true
},
"clock": {
"enabled": false,
"format": "%I:%M %p",
"update_interval": 1
},
"leaderboard": {
"enabled": true,
"enabled_sports": {
"nhl": {
"enabled": true,
"top_teams": 10
},
"eojhl": ["mar","ric"]
},
"league_configs": {
"mar": {
"enabled": false,
"sport": "eojhl",
"league": "Martin Division",
"logo_dir": "assets/sports/eojhl_logos",
"league_logo": "assets/sports/eojhl_logos/mar.png",
"standings_url": "local_file_data"
},
"ric": {
"enabled": false,
"sport": "eojhl",
"league": "Richardson Division",
"logo_dir": "assets/sports/eojhl_logos",
"league_logo": "assets/sports/eojhl_logos/ric.png",
"standings_url": "local_file_data"
}
},
"update_interval": 3600,
"scroll_speed": 1,
"scroll_delay": 0.01,
"loop": false,
"request_timeout": 30,
"dynamic_duration": true,
"min_duration": 30,
"max_display_time": 600
},
"nhl_scoreboard": {
"enabled": true,
"live_priority": false,
"live_game_duration": 20,
"show_odds": true,
"test_mode": false,
"update_interval_seconds": 3600,
"live_update_interval": 30,
"recent_update_interval": 3600,
"upcoming_update_interval": 3600,
"recent_games_to_show": 1,
"upcoming_games_to_show": 1,
"show_favorite_teams_only": true,
"show_all_live": false,
"show_shots_on_goal": false,
"favorite_teams": [
"OTT",
"COL"
],
"logo_dir": "assets/sports/nhl_logos",
"show_records": true,
"display_modes": {
"nhl_live": true,
"nhl_recent": true,
"nhl_upcoming": true
}
},
"eojhl_scoreboard": {
"enabled": true,
"live_priority": false,
"live_game_duration": 20,
"test_mode": false,
"update_interval_seconds": 600,
"live_update_interval": 30,
"recent_games_to_show": 1,
"upcoming_games_to_show": 1,
"show_favorite_teams_only": true,
"show_all_live": false,
"favorite_teams": [
"RCH"
],
"logo_dir": "assets/sports/eojhl_logos",
"show_records": true,
"display_modes": {
"eojhl_live": false,
"eojhl_recent": true,
"eojhl_upcoming": true
}
},
"text_display": {
"enabled": false,
"text": "Subscribe to ChuckBuilds",
"font_path": "assets/fonts/press-start-2p.ttf",
"font_size": 8,
"scroll": true,
"scroll_speed": 40,
"text_color": [
255,
0,
0
],
"background_color": [
0,
0,
0
],
"scroll_gap_width": 32
},
"static_image": {
"enabled": false,
"image_path": "assets/static_images/default.png",
"fit_to_display": true,
"preserve_aspect_ratio": true,
"background_color": [
0,
0,
0
]
}
}

View File

@@ -0,0 +1,95 @@
{
"web_display_autostart": true,
"schedule": {
"enabled": true,
"start_time": "07:00",
"end_time": "23:00"
},
"timezone": "America/Toronto",
"location": {
"city": "Ottawa",
"state": "Texas",
"country": "CA"
},
"display": {
"hardware": {
"rows": 32,
"cols": 64,
"chain_length": 2,
"parallel": 1,
"brightness": 90,
"hardware_mapping": "adafruit-hat-pwm",
"scan_mode": 0,
"pwm_bits": 9,
"pwm_dither_bits": 1,
"pwm_lsb_nanoseconds": 130,
"disable_hardware_pulsing": false,
"inverse_colors": false,
"show_refresh_rate": false,
"limit_refresh_rate_hz": 100
},
"runtime": {
"gpio_slowdown": 3
},
"display_durations": {
"clock": 15,
"leaderboard": 300,
"eojhl_live": 30,
"eojhl_recent": 30,
"eojhl_upcoming": 30
},
"use_short_date_format": true
},
"clock": {
"enabled": true,
"format": "%I:%M %p",
"update_interval": 1
},
"leaderboard": {
"enabled": true,
"enabled_sports": {
"eojhl": {
"enabled": true,
"top_teams": 10,
"season": 2025,
"level": 1,
"sort": "winpercent:desc,gamesbehind:asc"
}
},
"update_interval": 3600,
"scroll_speed": 1,
"scroll_delay": 0.01,
"loop": false,
"request_timeout": 30,
"dynamic_duration": true,
"min_duration": 30,
"max_display_time": 600
},
"eojhl_scoreboard": {
"enabled": true,
"live_priority": true,
"live_game_duration": 20,
"show_odds": false,
"test_mode": false,
"update_interval_seconds": 3600,
"live_update_interval": 30,
"recent_update_interval": 3600,
"upcoming_update_interval": 3600,
"recent_games_to_show": 1,
"upcoming_games_to_show": 1,
"show_favorite_teams_only": false,
"show_all_live": true,
"show_shots_on_goal": true,
"favorite_teams": [
"DAL",
"TB"
],
"logo_dir": "assets/sports/eojhl_logos",
"show_records": true,
"display_modes": {
"eojhl_live": true,
"eojhl_recent": true,
"eojhl_upcoming": true
}
}
}

View File

@@ -0,0 +1,14 @@
{
"weather": {
"api_key": "YOUR_OPENWEATHERMAP_API_KEY"
},
"youtube": {
"api_key": "YOUR_YOUTUBE_API_KEY",
"channel_id": "YOUR_YOUTUBE_CHANNEL_ID"
},
"music": {
"SPOTIFY_CLIENT_ID": "YOUR_SPOTIFY_CLIENT_ID_HERE",
"SPOTIFY_CLIENT_SECRET": "YOUR_SPOTIFY_CLIENT_SECRET_HERE",
"SPOTIFY_REDIRECT_URI": "http://127.0.0.1:8888/callback"
}
}

View File

@@ -0,0 +1,14 @@
{
"weather": {
"api_key": "YOUR_OPENWEATHERMAP_API_KEY"
},
"youtube": {
"api_key": "YOUR_YOUTUBE_API_KEY",
"channel_id": "YOUR_YOUTUBE_CHANNEL_ID"
},
"music": {
"SPOTIFY_CLIENT_ID": "YOUR_SPOTIFY_CLIENT_ID_HERE",
"SPOTIFY_CLIENT_SECRET": "YOUR_SPOTIFY_CLIENT_SECRET_HERE",
"SPOTIFY_REDIRECT_URI": "http://127.0.0.1:8888/callback"
}
}