Wokwi cleanup
This commit is contained in:
1 parent
2745a145ce
commit
613970b146
1 file changed
-1
@@ -217,7 +217,6 @@ while(True):
|
|||||||
|
|
||||||
# Have we queried API in the query_period seconds?
|
# Have we queried API in the query_period seconds?
|
||||||
if (time() - last_api_query) > query_period:
|
if (time() - last_api_query) > query_period:
|
||||||
reconnect_wifi()
|
|
||||||
# Query updated API
|
# Query updated API
|
||||||
trains = (requests.get("https://lapi.transitchicago.com/api/1.0/ttpositions.aspx?key="+APIKEY+"&rt=Blue&outputType=JSON")).json()['ctatt']
|
trains = (requests.get("https://lapi.transitchicago.com/api/1.0/ttpositions.aspx?key="+APIKEY+"&rt=Blue&outputType=JSON")).json()['ctatt']
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user