We aren't using the Dublin Bus API anymore

This commit is contained in:
Nahuel Lofeudo 2023-04-16 14:53:20 +01:00
parent dd4733b1cf
commit 9877da7bc4
1 changed files with 3 additions and 3 deletions

View File

@ -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