fixed text position tweak values
This commit is contained in:
parent
c7e668e6f6
commit
062c2a5531
1 changed files with 4 additions and 2 deletions
|
|
@ -18,7 +18,9 @@ except ImportError:
|
|||
|
||||
# Set up where we'll be fetching data from
|
||||
CHANNEL_ID = "UCpOlOeQjj7EsVnDh3zuCgsA" # this isn't a secret but you have to look it up
|
||||
#CHANNEL_ID = "UC6p-tjZN8s9GBSbiN4K-bwg"
|
||||
CAPTION = "www.youtube.com/adafruit"
|
||||
#CAPTION = "www.youtube.com/c/JohnParkMakes"
|
||||
|
||||
# pylint: disable=line-too-long
|
||||
DATA_SOURCE = "https://www.googleapis.com/youtube/v3/channels/?part=statistics&id="+CHANNEL_ID+"&key="+secrets['youtube_token']
|
||||
|
|
@ -33,11 +35,11 @@ pyportal = PyPortal(url=DATA_SOURCE,
|
|||
status_neopixel=board.NEOPIXEL,
|
||||
default_bg=cwd+"/youtube_background.bmp",
|
||||
text_font=cwd+"/fonts/Collegiate-50.bdf",
|
||||
text_position=((100, 85+44), (155, 140+40)),
|
||||
text_position=((100, 129), (155, 180)),
|
||||
text_color=(0xFFFFFF, 0xFFFFFF),
|
||||
caption_text=CAPTION,
|
||||
caption_font=cwd+"/fonts/Collegiate-24.bdf",
|
||||
caption_position=(40, 200+20),
|
||||
caption_position=(40, 220),
|
||||
caption_color=0xFFFFFF)
|
||||
|
||||
# track the last value so we can play a sound when it updates
|
||||
|
|
|
|||
Loading…
Reference in a new issue