log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- R-Comp releases Messenger Pro 9 for Wakefield Show (News:)
- RISC OS Bits at Wakefield (News:)
- General discussion at Rougol May meeting (News:)
- Wakefield Super Prize Draw (News:)
- Certificate error (Gen:2)
- Wakefield-in-Bradford Show 2022 takes place this month (News:1)
- AMCS free versions are live! (Gen:29)
- Archive gets a new edition and a new website (News:)
- RISC OS Developments releases their new TCP/IP stack (News:5)
- April 2022 News Summary (News:)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
Site Search
 
Article archives
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: 1096
That's nice! It's working here (also Iyonix, RO 5.14). Here's a screenshot.
traininfo.png 744x337 14KB
traininfo.png
744x337
14KB

  ^[ Log in to reply ]
 
Rob Kendrick Message #112117, posted by nunfetishist at 13:34, 30/11/2009, in reply to message #112115
nunfetishist
Today's phish is trout a la creme.

Posts: 517
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
diodesign
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