chrisys / train-departure-display

A replica, near real-time, miniature UK railway station train departure sign based upon a Raspberry Pi Zero and 256x64 SPI OLED display
245 stars 76 forks source link

Crash on "PAD" station when major train disruption occurred #90

Closed jruys closed 1 year ago

jruys commented 1 year ago

My display shows London Paddington (PAD) and started crashing today - live departure website shows "Major disruption between Reading and London Paddington. Trains may be cancelled or diverted.".

main Starting Train Departure Display v0.4.0 main Effective FPS: 0.0 main Traceback (most recent call last): main File "src/main.py", line 376, in main data = loadData(config["api"], config["journey"], config) main File "src/main.py", line 166, in loadData main journeyConfig, apiConfig["apiKey"], rows) main File "/src/trains.py", line 221, in loadDeparturesForStation main Departures, departureStationName = ProcessDepartures(journeyConfig, APIOut) main File "/src/trains.py", line 106, in ProcessDepartures main thisDeparture["aimed_departure_time"] = eachService["lt4:std"] main KeyError: 'lt4:std'

Changing to another station (STP) fixed it.

jruys commented 1 year ago

Working OK again now.

"All lines have now reopened between Reading and London Paddington following the earlier incident. Trains may still be delayed by up to 100 minutes, cancelled or revised whilst service recovers."

jruys commented 1 year ago

Closing this as it’s duplicated by #105