Skip to content

Commit

Permalink
periodic radar events caller
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBicPen committed Feb 16, 2020
1 parent e75d135 commit 07fa265
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PlacesAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def find_route(place_ids, mode="transit", departure_time=0):



def radar_events(id):
def radar_events():
h = headers
h['Authorization']=RADAR_API_KEY

Expand Down Expand Up @@ -101,7 +101,7 @@ def radar_events(id):
# if input_text == "":
# break
# print(find_route([place['place_id'] for place in places.values()]))
radar_events(0)
radar_events()

#Exit on ctrl+c
except KeyboardInterrupt:
Expand Down
6 changes: 6 additions & 0 deletions callRadar.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import time
from . import callRadar

while True:
await time.sleep(50000)
callRadar()

0 comments on commit 07fa265

Please sign in to comment.