Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verifying all coordinates are valid against master schema #437

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
357 changes: 357 additions & 0 deletions coordinates/coordinates.json.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,357 @@
{
"defaults": {
"font_name": "4x6"
},
"bases": {
"1B": {
"x": 24,
"y": 24,
"size": 6
},
"2B": {
"x": 19,
"y": 19,
"size": 6
},
"3B": {
"x": 14,
"y": 24,
"size": 6
}
},
"final": {
"inning": {
"x": 16,
"y": 20
},
"scrolling_text": {
"x": 0,
"y": 31,
"width": 32
},
"nohit_text": {
"x": 10,
"y": 26
}
},
"inning": {
"break": {
"number": {
"x": 11,
"y": 29
},
"text": {
"x": 11,
"y": 22
},
"due_up": {
"due": {
"x": 33,
"y": 33
},
"up": {
"x": 33,
"y": 33
},
"divider": {
"draw": false,
"x": 33,
"y_start": 33,
"y_end": 33
},
"leadoff": {
"x": 33,
"y": 33
},
"on_deck": {
"x": 33,
"y": 33
},
"in_hole": {
"x": 33,
"y": 33
}
}
},
"number": {
"x": 32,
"y": 20
},
"arrow": {
"size": 2,
"up": {
"x_offset": -4,
"y_offset": -4
},
"down": {
"x_offset": -4,
"y_offset": -3
}
}
},
"outs": {
"1": {
"x": 1,
"y": 26,
"size": 2,
"nohit": {
"x": 1,
"y": 28,
"size": 2
},
"perfect_game": {
"x": 1,
"y": 28,
"size": 2
}
},
"2": {
"x": 5,
"y": 26,
"size": 2,
"nohit": {
"x": 5,
"y": 28,
"size": 2
},
"perfect_game": {
"x": 5,
"y": 28,
"size": 2
}
},
"3": {
"x": 9,
"y": 26,
"size": 2,
"nohit": {
"x": 9,
"y": 28,
"size": 2
},
"perfect_game": {
"x": 9,
"y": 28,
"size": 2
}
}
},
"atbat": {
"batter": {
"x": 33,
"y": 33,
"width": 10
},
"pitcher": {
"x": 33,
"y": 33,
"width": 12
},
"pitch": {
"font_name": "4x6",
"x": 1,
"y": 50,
"enabled": false,
"mph": false,
"desc_length": "Short"
},
"pitch_count": {
"font_name": "4x6",
"x": 1,
"y": 50,
"enabled": false,
"append_pitcher_name": false
},
"loop": 16,
"strikeout": {
"x": 33,
"y": 33
}
},
"batter_count": {
"x": 1,
"y": 23,
"nohit": {
"x": 1,
"y": 21
},
"perfect_game": {
"x": 1,
"y": 21
}
},
"nohitter": {
"x": 1,
"y": 27,
"innings_until_display": 5
},
"pregame": {
"scrolling_text": {
"x": 0,
"y": 31,
"width": 32,
"warmup": {
"x": 0,
"y": 31,
"width": 32
}
},
"start_time": {
"x": 16,
"y": 20
},
"warmup_text": {
"x": 16,
"y": 20
}
},
"standings": {
"font_name": "4x6",
"start": 1,
"offset": 6,
"height": 30,
"width": 32,
"divider": {
"x": 13
},
"stat_title": {
"x": 28
},
"team": {
"name": {
"x": 1
},
"record": {
"x": 15
},
"games_back": {
"x": 64
}
},
"postseason": {
"matchup_y_gap": 12,
"series_x_gap": 32,
"wc_x_start": 3,
"wc_y_start": 12,
"ds_a_y_start": 51,
"__comment": "all other coords are based off wild card position"
}
},
"status": {
"text": {
"x": 16,
"y": 20,
"short_text": true
},
"scrolling_text": {
"x": 0,
"y": 31,
"width": 32
}
},
"teams": {
"background": {
"away": {
"width": 32,
"height": 7,
"x": 0,
"y": 0
},
"home": {
"width": 32,
"height": 7,
"x": 0,
"y": 7
}
},
"accent": {
"away": {
"width": 1,
"height": 7,
"x": 0,
"y": 0
},
"home": {
"width": 1,
"height": 7,
"x": 0,
"y": 7
}
},
"name": {
"away": {
"x": 3,
"y": 6
},
"home": {
"x": 3,
"y": 13
}
},
"runs": {
"runs_hits_errors": {
"show": false,
"compress_digits": true,
"spacing": 2
},
"away": {
"x": 31,
"y": 6
},
"home": {
"x": 31,
"y": 13
}
}
},
"offday": {
"scrolling_text": {
"x": 0,
"y": 30,
"width": 32
},
"time": {
"x": 16,
"y": 23
},
"conditions": {
"x": 0,
"y": -2
},
"temperature": {
"x": 25,
"y": 12
},
"wind_speed": {
"x": 0,
"y": -2
},
"wind_dir": {
"x": 0,
"y": -2
},
"wind": {
"x": 0,
"y": -2
},
"weather_icon": {
"x": 1,
"y": 1,
"width": 15,
"height": 15
}
},
"network": {
"font_name": "4x6",
"background": {
"width": 7,
"height": 7,
"x": 25,
"y": 25
},
"text": {
"x": 29,
"y": 31
}
}
}
2 changes: 1 addition & 1 deletion coordinates/w128h32.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@
}
},
"standings": {
"__comment__": "Delete this next line and make offset 8 to make the font much larger but only display 4 teams",
"font_name": "4x6",
"start": 0,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This defaults to 0 in code

"offset": 6,
"height": 32,
"width": 128,
Expand Down
1 change: 1 addition & 0 deletions coordinates/w128h64.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
}
},
"standings": {
"font_name": "4x6",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just realized this will override the master font, so will need to update these where added.

"start": 1,
"offset": 12,
"height": 60,
Expand Down
10 changes: 10 additions & 0 deletions coordinates/w32h32.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@
}
},
"standings": {
"font_name": "4x6",
"start": 0,
"offset": 6,
"height": 30,
"width": 32,
Expand All @@ -225,6 +227,14 @@
"games_back": {
"x": 64
}
},
"postseason": {
"matchup_y_gap": 12,
"series_x_gap": 32,
"wc_x_start": 3,
"wc_y_start": 12,
"ds_a_y_start": 51,
"__comment": "all other coords are based off wild card position"
Comment on lines +230 to +237
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open to suggestions on this... Didn't look, but seems like if this is here then postseason brackets render, so may need to add an explicit enable/disable flag

}
},
"status": {
Expand Down
Loading