unhide tides text. Move sports label a little higher
This commit is contained in:
parent
0db1ba2c12
commit
a482503583
2 changed files with 7 additions and 5 deletions
|
|
@ -25,12 +25,12 @@ TIME_ZONE_NAME = "PST"
|
||||||
SPORTS = [
|
SPORTS = [
|
||||||
{
|
{
|
||||||
"name": "NCAA Men's Basketball",
|
"name": "NCAA Men's Basketball",
|
||||||
#pylint: disable=line-too-long
|
# pylint: disable=line-too-long
|
||||||
"url": "http://site.api.espn.com/apis/site/v2/sports/basketball/mens-college-basketball/scoreboard",
|
"url": "http://site.api.espn.com/apis/site/v2/sports/basketball/mens-college-basketball/scoreboard",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "NCAA Wmn's Basketball",
|
"name": "NCAA Wmn's Basketball",
|
||||||
#pylint: disable=line-too-long
|
# pylint: disable=line-too-long
|
||||||
"url": "http://site.api.espn.com/apis/site/v2/sports/basketball/womens-college-basketball/scoreboard",
|
"url": "http://site.api.espn.com/apis/site/v2/sports/basketball/womens-college-basketball/scoreboard",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -185,7 +185,7 @@ def update_labels():
|
||||||
|
|
||||||
def fetch_sports_data(reset_game_number=True):
|
def fetch_sports_data(reset_game_number=True):
|
||||||
# Fetches and parses data for all games for the current sport
|
# Fetches and parses data for all games for the current sport
|
||||||
#pylint: disable=global-statement
|
# pylint: disable=global-statement
|
||||||
global sports_data, current_game, current_sport
|
global sports_data, current_game, current_sport
|
||||||
magtag.url = SPORTS[current_sport]["url"]
|
magtag.url = SPORTS[current_sport]["url"]
|
||||||
sports_data.clear()
|
sports_data.clear()
|
||||||
|
|
@ -229,12 +229,12 @@ magtag.add_text(text_font="/fonts/Arial-12.bdf", text_position=(10, 40), is_data
|
||||||
|
|
||||||
# Broadcast Information
|
# Broadcast Information
|
||||||
magtag.add_text(
|
magtag.add_text(
|
||||||
text_font="/fonts/Arial-Italic-12.bdf", text_position=(10, 100), is_data=False
|
text_font="/fonts/Arial-Italic-12.bdf", text_position=(10, 98), is_data=False
|
||||||
)
|
)
|
||||||
|
|
||||||
# Game Status
|
# Game Status
|
||||||
magtag.add_text(
|
magtag.add_text(
|
||||||
text_font="/fonts/Arial-Italic-12.bdf", text_position=(10, 120), is_data=False
|
text_font="/fonts/Arial-Italic-12.bdf", text_position=(10, 116), is_data=False
|
||||||
)
|
)
|
||||||
|
|
||||||
# Game Number
|
# Game Number
|
||||||
|
|
|
||||||
|
|
@ -240,6 +240,7 @@ def show_hilo():
|
||||||
ampm = "A" if h < 12 else "P"
|
ampm = "A" if h < 12 else "P"
|
||||||
h = h if h < 13 else h - 12
|
h = h if h < 13 else h - 12
|
||||||
hilo_times[i].text = "{:>2}:{:02} {}".format(h, m, ampm)
|
hilo_times[i].text = "{:>2}:{:02} {}".format(h, m, ampm)
|
||||||
|
hilo_times[i].hidden = False
|
||||||
|
|
||||||
|
|
||||||
def time_to_sleep():
|
def time_to_sleep():
|
||||||
|
|
@ -256,6 +257,7 @@ def time_to_sleep():
|
||||||
# return it
|
# return it
|
||||||
return remaining
|
return remaining
|
||||||
|
|
||||||
|
|
||||||
# ===========
|
# ===========
|
||||||
# M A I N
|
# M A I N
|
||||||
# ===========
|
# ===========
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue