1 (edited by Solidstate 2008-04-05 14:24:25)

Topic: Live Train Departure Boards for the UK

I'd love a live train departure board for the UK

- using the data from this website
http://www.nationalrail.co.uk/times_far … rtures.asp
Heres an example station.
http://www.livedepartureboards.co.uk/ld … =1&A=0

It could look like one of the TVs that you see displaying the information in the station themselves.

I wish I knew how to make one myself.
I currently have to turn on the PC to check if the train is on its way before I leave the house.

Re: Live Train Departure Boards for the UK

I'm happy to look into this for you. Can't give a time or date on it, though, sorry!

Are there any other sources for this information other than the website above?

Re: Live Train Departure Boards for the UK

Thanks - you really are the (gingerbeard) man.

Well I think all the data comes from here - but there are a few ways to access it. I remember looking at it on my Windows Media Phone in a portable version
and there is a WAP site here..
wap.nationalrail.co.uk/

somebody has made a Java application that accesses this info
http://www.freej2me.co.uk/TrainPage.html

4 (edited by gingerbeardman 2008-04-06 14:55:33)

Re: Live Train Departure Boards for the UK

OK,

I have created a simple Yahoo Pipe to grab the data from a train timetable page. It needs cleaning up, and changed to work with any train station code, before it can be used for real.

But it's a start and makes me feel this is definitely doable.

matt

Re: Live Train Departure Boards for the UK

Excellent.  Many thanks for looking at this - this would help convince the missus that the Chumby actually has a use that will benefit her (we're 20 mins walk from the Station and both fed up waiting for trains that are cancelled. The Platform is out in the middle of nowhere and doesn't have a display. Even if it did, by the time we've walked there, we might as well just stand and wait 30 mins for the next train anyway.

So you can picture it, its a bit like the station in Trainspotting, a platform and that's it, no benches, no waiting room, nothing.

If we could glance at the Chumby and see the train was cancelled before we left the house we could stay in and have another cup of coffee instead.

6 (edited by gingerbeardman 2008-04-06 16:42:34)

Re: Live Train Departure Boards for the UK

I hear you and completely understand your situation!

In the meantime, here's the RSS feed. I'm still trying to fine tune the format of it.

http://pipes.yahoo.com/pipes/pipe.info? … 9V8ACB2yXQ

Add me as a chum and I'll let you in on my test version of the widget. Currently based on my BBC Football scores widget look and feel.

matt

Re: Live Train Departure Boards for the UK

Solidstate

Are you only interested in departures?

Re: Live Train Departure Boards for the UK

Yes, only Departures for me.

Incidentally my Station code is APB - but there are so few trains from here, it's probably best testing it with a busier station to see if the results all fit on the screen.

Thanks again for taking up this challenge.

9 (edited by gingerbeardman 2008-04-08 03:46:37)

Re: Live Train Departure Boards for the UK

Moderators: feel free to move this to the Widgets folder if you think it warrants it...

Here's a teaser for the widget. Just got the config box to do now. Tomorrow!

http://i32.tinypic.com/2ij4tc.png

10 (edited by gingerbeardman 2008-04-08 06:39:03)

Re: Live Train Departure Boards for the UK

OK folks, I've just asked for this to go public!

You can configure it to show Departures or Arrivals, and you specify a three-letter station code (see the National Rail site) as well as a user-defined string to better describe the station. Sadly there are 2000+ stations in the list, so I've shied away putting them into a drop down!

Typeface and type sizes are optimised for a real Chumby rather than a virtual one.

Delayed trains have their row displayed in a lovely Amber colour.
Cancelled trains have their row displayed in a dangerous Red colour.

Refreshes every five minutes, or when the screen is touched (however the Chumby caches data for five minutes)

Final screens:

http://i29.tinypic.com/29omi9s.png
http://i31.tinypic.com/dqn3mb.png
http://i26.tinypic.com/2412n9i.png

11 (edited by Solidstate 2008-04-08 09:51:15)

Re: Live Train Departure Boards for the UK

That looks excellent.

Many thanks - I'm sure that this will become one of the most popular apps when the Chumby gets a UK launch.
I think it will even help sell the device.

I'll be sure to feed back any opinions I have.


Thanks again.

Re: Live Train Departure Boards for the UK

No worries!

Let me know how you find it to use.

matt

Re: Live Train Departure Boards for the UK

Due to someone crashing through a Level Crossing on my line this evening- I've been "lucky" enough to be able to test out what's displayed when things go wrong.

I've noticed that when "Cancelled" is displayed on the website, the chumby shows "Undefined".

Oh, and can you explain the cache situation with the Chumby. Is the most recent information that it can display data gathered 5 mins earlier?

Re: Live Train Departure Boards for the UK

I'll look into the Cancelled issue. Was the row displayed in red?

Caching. I just let Flash take care of it, but I'll force it to reload in the next version.

Re: Live Train Departure Boards for the UK

No, it didn't display the row in red - it was in the same format as the normal 'on time' trains.

Re: Live Train Departure Boards for the UK

OK, a big bug I'll look into it.

Re: Live Train Departure Boards for the UK

I've just uploaded a new version of this widget, 1.01

Fixes:
Cancelled trains displayed correctly
* (delayed) items displayed correctly
Data should now not be cached so aggressively

I've been asked if I can do a similar widget for different countries and cities. The answer is yes: if you can get hold of a live data feed smile

18 (edited by gingerbeardman 2008-10-24 06:55:54)

Re: Live Train Departure Boards for the UK

I've just uploaded a new version of this widget, 1.10

Added:
Ability to filter results

Example: if you watch Departures from Clapham Junction but are only interested in trains with a destination of London Victoria, then you could enter "London Victoria" or even just "Victoria" in the configuration filter field. You could also do "Waterloo" for London Waterloo. If you filtered on "London", you'd get both "London Victoria" and "London Waterloo". This makes it more versatile than the livedepartureboards website. smile

matt

Re: Live Train Departure Boards for the UK

There was an issue with the configuration panel. Please reconfigure your widget, making sure the filter field does not say "undefined" and it should work.

Thanks to Sven for reporting this.

20 (edited by gingerbeardman 2009-07-04 06:38:14)

Re: Live Train Departure Boards for the UK

Sadly National Rail have introduced a robots.txt file on their site which disallows access from all external processes, including Yahoo! Pipes that I use to read their data. I can understand why National Rail are doing this but I do feel they are a bit heavy handed in protection of their own data.

Anyway, this widget will no longer function. sad

I am thinking about alternative means, if anybody has any ideas please get in touch.

Cheers,
matt

21 (edited by gingerbeardman 2009-07-05 04:31:04)

Re: Live Train Departure Boards for the UK

Hurrah! Found a way around it.

Anybody interested in how I've done it, get in touch.

The widget should just continue working, no changes needed at the user end.

Re: Live Train Departure Boards for the UK

Many thanks. This is my most used widget and I was already beginning to mourn it's passing. I can't start to count how many hours it's saved me so far. The other week I forgot to look at it before I set off for the station and I ended up getting in work at 10am rather than the usual 8:15. If I'd read the Chumby I could have driven in instead.
May this app live forever.

Re: Live Train Departure Boards for the UK

The Yahoo Pipe that powers the widget has been run 70,000 times since launch. Which is nice to see.

Most, but not all, of those will have come from the chumby widget.

Rock on.

Re: Live Train Departure Boards for the UK

This is a great app / widget / whatever - Thanks

Re: Live Train Departure Boards for the UK

Thanks, please feel free to leave a donation to fund development of this and further widgets on my website.

http://www.gingerbeardman.com/chumby/