We aren't using the Dublin Bus API anymore
This commit is contained in:
parent
dd4733b1cf
commit
9877da7bc4
6
main.py
6
main.py
|
|
@ -43,8 +43,8 @@ INTER_LINE_SPACE = -20 # 1920x720 -> 0
|
||||||
window : pygame.Surface = None
|
window : pygame.Surface = None
|
||||||
font: pygame.font.Font = None
|
font: pygame.font.Font = None
|
||||||
update_queue = queue.Queue(maxsize=10)
|
update_queue = queue.Queue(maxsize=10)
|
||||||
#dublinbus_client = DublinBusSoapClient(stops=STOPS, update_queue=update_queue, update_interval_seconds=UPDATE_INTERVAL_SECONDS)
|
#scheduler = DublinBusSoapClient(stops=STOPS, update_queue=update_queue, update_interval_seconds=UPDATE_INTERVAL_SECONDS)
|
||||||
dublinbus_client = GTFSClient(feed_url='https://www.transportforireland.ie/transitData/google_transit_combined.zip',
|
scheduler = GTFSClient(feed_url='https://www.transportforireland.ie/transitData/google_transit_combined.zip',
|
||||||
stop_names=STOPS, update_queue=update_queue, update_interval_seconds=UPDATE_INTERVAL_SECONDS)
|
stop_names=STOPS, update_queue=update_queue, update_interval_seconds=UPDATE_INTERVAL_SECONDS)
|
||||||
|
|
||||||
def get_line_offset(line: int) -> int:
|
def get_line_offset(line: int) -> int:
|
||||||
|
|
@ -122,7 +122,7 @@ def main():
|
||||||
# Paint black
|
# Paint black
|
||||||
clear_screen()
|
clear_screen()
|
||||||
pygame.display.flip()
|
pygame.display.flip()
|
||||||
dublinbus_client.start()
|
scheduler.start()
|
||||||
|
|
||||||
# Main event loop
|
# Main event loop
|
||||||
running = True
|
running = True
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue