benbristow / train-times

CLI (Ruby) script to read National Rail train arrivals/departures
MIT License
2 stars 0 forks source link

Fails for #1

Open timmo11 opened 5 years ago

timmo11 commented 5 years ago

Hi Ben

Thanks so much for this really nice clean & tight CLI TT lookup.

I came across it when trying to understand how to move a rPi based display from Transport API to the UK National Rail / Darwin / openldws.

I have ended up coding something myself in Python just to see how it works, but no way is the output it as elegant and quick as what you have done

You app seems to fail if I ask it to look up trains arriving or departing Gatwick Airport (GTW) with "Unknown error: no implicit conversion of Symbol into Integer"

Also Three Bridges (TBD) but not Haywoods Heath (HHE) a bit further down the line.

My guess is that it is crashing when it comes across a dividing train.

Regards from Sydney

TIm

timmo11 commented 5 years ago

Almost definitely dividing trains causing the problem.

No dividing trains right now in the middle of the night, and your script fetches departures & arrivals from GTW and TBD just fine.

T