Skip to content

Commit 564c2c6

Browse files
authored
Merge pull request #565 from jedgarpark/pyportal-youtube-text
fixed text position tweak values
2 parents c7e668e + 062c2a5 commit 564c2c6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

PyPortal_Youtube/youtube.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818

1919
# Set up where we'll be fetching data from
2020
CHANNEL_ID = "UCpOlOeQjj7EsVnDh3zuCgsA" # this isn't a secret but you have to look it up
21+
#CHANNEL_ID = "UC6p-tjZN8s9GBSbiN4K-bwg"
2122
CAPTION = "www.youtube.com/adafruit"
23+
#CAPTION = "www.youtube.com/c/JohnParkMakes"
2224

2325
# pylint: disable=line-too-long
2426
DATA_SOURCE = "https://www.googleapis.com/youtube/v3/channels/?part=statistics&id="+CHANNEL_ID+"&key="+secrets['youtube_token']
@@ -33,11 +35,11 @@
3335
status_neopixel=board.NEOPIXEL,
3436
default_bg=cwd+"/youtube_background.bmp",
3537
text_font=cwd+"/fonts/Collegiate-50.bdf",
36-
text_position=((100, 85+44), (155, 140+40)),
38+
text_position=((100, 129), (155, 180)),
3739
text_color=(0xFFFFFF, 0xFFFFFF),
3840
caption_text=CAPTION,
3941
caption_font=cwd+"/fonts/Collegiate-24.bdf",
40-
caption_position=(40, 200+20),
42+
caption_position=(40, 220),
4143
caption_color=0xFFFFFF)
4244

4345
# track the last value so we can play a sound when it updates

0 commit comments

Comments
 (0)