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 reveals N.Ex.T Boxes - the successor to the i.MX6 (News:)
- RISCOSbits at Wakefield Show 2024 (News:)
- R-Comp releases Genealogy v2 (News:)
- Will we see 5.30 released at Wakefield show? (News:1)
- Sine Nomine updates RiscOSM and Impact (News:)
- Netfetch version 5.55 released (News:)
- Prizes for Wakefield Show announced (News:)
- Heretic update from R-Comp (News:)
- Wakefield Show 2024 is next Saturday (News:)
- Git client updated to 0.07 (News:2)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
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: 1097
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: 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
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