If only a single train is scheduled for a given journey configuration (departure + optional destination), then the script will crash. This is because the script attempts to render a second service, but doesn't have the required data.
Output error, for reference:
Traceback (most recent call last):
File "./src/main.py", line 254, in <module>
height=widgetHeight, data=data)
File "./src/main.py", line 197, in drawSignage
departures[1]), interval=10)
IndexError: list index out of range
If only a single train is scheduled for a given journey configuration (departure + optional destination), then the script will crash. This is because the script attempts to render a second service, but doesn't have the required data.
Output error, for reference: