The Icon Bar: General: UK National Rail Live Info app
|
UK National Rail Live Info app |
|
Hampo (21:29 29/11/2009) tlsa (10:21 30/11/2009) nunfetishist (13:34 30/11/2009) Hampo (20:25 30/11/2009) diodesign (21:06 1/12/2009)
|
|
Robert Hampton |
Message #112115, posted by Hampo at 21:29, 29/11/2009 |
Member
Posts: 9
|
I've put together an app to extract information on UK train departures and display it in a desktop window. http://www.roberthampton.me.uk/software/downloads/traininfo006.zip
Still a bit of a work in progress, but I'm putting it up for the interested to have a look at. Really it was written for my own amusement (and give me some practice writing desktop apps in C, as well as using libcurl and libxml2). Main problem is it takes up a wimpslot of about 1.5 megabytes, thanks to being statically linked.
Not tested on anything other than my Iyonix (OS 5.14). Should work on anything running RO4 onwards though. |
|
[ Log in to reply ] |
|
Michael Drake |
Message #112116, posted by tlsa at 10:21, 30/11/2009, in reply to message #112115 |
Posts: 1097
|
That's nice! It's working here (also Iyonix, RO 5.14). Here's a screenshot. |
|
[ Log in to reply ] |
|
Rob Kendrick |
Message #112117, posted by nunfetishist at 13:34, 30/11/2009, in reply to message #112115 |
Today's phish is trout a la creme.
Posts: 522
|
Out of interest, where does the data come from? |
|
[ Log in to reply ] |
|
Robert Hampton |
Message #112121, posted by Hampo at 20:25, 30/11/2009, in reply to message #112117 |
Member
Posts: 9
|
The data comes direct from NationalRail.co.uk. My app is loosely based on a Windows Vista sidebar gadget released by NR itself - http://www.nationalrail.co.uk/times_fares/live_departure_boards/gadgets.html - and uses the same interface to obtain the data.
The Vista gadget is written in JScript so it was fairly straightforward to examine the code and work out the data format. It's all done via HTTP, with XML used for the request and reply.
When I get a few minutes I'll write up what I've learned so far. |
|
[ Log in to reply ] |
|
Chris Williams |
Message #112124, posted by diodesign at 21:06, 1/12/2009, in reply to message #112115 |
The Opposition
Posts: 269
|
http://www.roberthampton.me.uk/software/downloads/traininfo006.zip Nice. But no sauce? |
|
[ Log in to reply ] |
|
|
The Icon Bar: General: UK National Rail Live Info app |