File tree Expand file tree Collapse file tree
PyPortal/PyPortal_LeagueLevel Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88You'll need a Riot API key in your secrets.py file
99If you can find something that spits out JSON data, we can display it!
1010"""
11+ import os
1112import time
1213import board
1314from adafruit_pyportal import PyPortal
1415
15- try :
16- from secrets import secrets
17- except ImportError :
18- print ("WiFi secrets are kept in secrets.py, please add them there!" )
19- raise
20-
2116#Choose a valid Summoner name
2217SUMMONER_NAME = "RiotSchmick"
2318
2419# Set up where we'll be fetching data from
2520DATA_SOURCE = "https://na1.api.riotgames.com/lol/summoner/v4/summoners/by-name/" + SUMMONER_NAME
26- DATA_SOURCE += "?api_key=" + secrets [ 'league_token' ]
21+ DATA_SOURCE += "?api_key=" + os . getenv ( "LEAGUE_TOKEN" )
2722DATA_LOCATION = ["summonerLevel" ]
2823CAPTION = "SUMMONER " + SUMMONER_NAME
2924
You can’t perform that action at this time.
0 commit comments