Train GraphicClick on the map to explore geographics
 
I need help
FAQ
Emergency
About .
Travel & transport from BBC stories as at 08:55 19 Apr 2024
* Blasts heard near airport and army base, Iran media says
* Children among eight dead in Russia strike on Ukraine
- Arrest over alleged Russia plot to kill Zelensky
- Dubai airport delays persist after UAE storm
Read about the forum [here].
Register [here] - it's free.
What do I gain from registering? [here]
 02/06/24 - Summer Timetable starts
17/08/24 - Bus to Imber
27/09/25 - 200 years of passenger trains

On this day
19th Apr (1938)
Foundation, Beatties of London (link)

Train RunningCancelled
08:48 London Paddington to Swansea
Short Run
19/04/24 07:13 Great Malvern to London Paddington
07:52 Reading to Gatwick Airport
07:57 London Paddington to Bristol Temple Meads
08:23 Southampton Central to Bristol Temple Meads
09:27 Carmarthen to London Paddington
16:31 Barnstaple to Axminster
Delayed
05:55 Plymouth to London Paddington
06:01 Portsmouth Harbour to Cardiff Central
09:30 Gatwick Airport to Reading
PollsThere are no open or recent polls
Abbreviation pageAcronymns and abbreviations
Stn ComparatorStation Comparator
Rail newsNews Now - live rail news feed
Site Style 1 2 3 4
Next departures • Bristol Temple MeadsBath SpaChippenhamSwindonDidcot ParkwayReadingLondon PaddingtonMelksham
Exeter St DavidsTauntonWestburyTrowbridgeBristol ParkwayCardiff CentralOxfordCheltenham SpaBirmingham New Street
April 19, 2024, 09:10:45 *
Welcome, Guest. Please login or register.

Login with username, password and session length
Forgotten your username or password? - get a reminder
Most recently liked subjects
[165] Rail delay compensation payments hit £100 million
[67] Signage - not making it easy ...
[56] Rail to refuge / Travel to refuge
[14] IETs at Melksham
[12] Ferry just cancelled - train tickets will be useless - advice?
[11] From Melksham to Tallinn (and back round The Baltic) by train
 
News: the Great Western Coffee Shop ... keeping you up to date with travel around the South West
 
   Home   Help Search Calendar Login Register  
Poll
Question: Would you use a replacement  (Voting closed: March 07, 2022, 10:40:51)
Yes - often - 0 (0%)
Yes - occasionally - 5 (29.4%)
Don't know - 1 (5.9%)
No - 9 (52.9%)
I don't know about these feeds - 2 (11.8%)
Total Voters: 17

Pages: [1]
  Print  
Author Topic: Next Departure data feeds - broken  (Read 1912 times)
grahame
Administrator
Hero Member
*****
Posts: 40784



View Profile WWW Email
« on: March 03, 2022, 10:40:51 »

Our "Next Departure" data feeds on the top of these pages are not working / intermittent issues with the old "Tiger" which has been expected at some time.   We "piggy back" on systems ... and when the piggy fails or is replaced, we need to find a new mount.

I am watch watching what's happening ... unsure whether this is work worth doing as other more modern stuff is now available.  Poll to ask members.
Logged

Coffee Shop Admin, Acting Chair of Melksham Rail User Group, Option 24/7 Melksham Rep
grahame
Administrator
Hero Member
*****
Posts: 40784



View Profile WWW Email
« Reply #1 on: March 08, 2022, 09:49:07 »

Poll closed yesterday. In answer to "would you use these feeds if I brought them back" you voted (on a low turnout for our polls)

Yes - often   - 0 (0%)
Yes - occasionally   - 5 (29.4%)
Don't know   - 1 (5.9%)
No   - 9 (52.9%)
I don't know about these feeds   - 2 (11.8%)

The feeds at present are working intermittently - sometimes correct, other times giving results many hours old, at other times giving no trains or a program error message on a condition I have not allowed for in the feed.

Since I wrote the code that "scrapes" Tiger, alternative systems have come along and to some extent my work has been supplanted by more modern stuff.   In view of the low turnout of voters, the only users being some occasional ones, and the significant programming effort to get an alternative in place - potentially one with a limited life - I am proposing to replace the links with links to "next train to" boards which are the next generation of data from the rail industry.

Swindon IS working at present - here is what is shows


proposal is to switch to something like this:


Different in what it says and in many ways more useful (as well as less useful in other ways)

Comment / additional feedback welcome ...
Logged

Coffee Shop Admin, Acting Chair of Melksham Rail User Group, Option 24/7 Melksham Rep
Richard Fairhurst
Global Moderator
Hero Member
*****
Posts: 1209


View Profile Email
« Reply #2 on: March 08, 2022, 22:44:31 »

I've had the same problem with the departure board at the top of charlbury.info which is now stuck on 06.11! It used to consume the TIGER XML feed which has now died.

If it's helpful, I spent most of Saturday morning figuring out the NRE(resolve)/Darwin interface to Live Departure Boards. You have to sign up for a token but that's pretty easy. The hard work is that it uses SOAP, which was outdated last time I used it in 2005. There are various Python examples on the web but I wanted to do it in Ruby. Eventually I came up with this:

https://github.com/systemed/live_departures_ruby

I haven't wired it up to the charlbury.info site yet but that's the easy bit... figuring out SOAP authentication was the hard bit!
Logged
grahame
Administrator
Hero Member
*****
Posts: 40784



View Profile WWW Email
« Reply #3 on: March 08, 2022, 23:15:53 »

I've had the same problem with the departure board at the top of charlbury.info which is now stuck on 06.11! It used to consume the TIGER XML feed which has now died.

If it's helpful, I spent most of Saturday morning figuring out the NRE(resolve)/Darwin interface to Live Departure Boards. You have to sign up for a token but that's pretty easy. The hard work is that it uses SOAP, which was outdated last time I used it in 2005. There are various Python examples on the web but I wanted to do it in Ruby. Eventually I came up with this:

https://github.com/systemed/live_departures_ruby

I haven't wired it up to the charlbury.info site yet but that's the easy bit... figuring out SOAP authentication was the hard bit!

Thanks for that ... I'll take a look based on that guidance.  Not straight away - still on my way home and that's a story to write in the morning.  Love Bath Bus Station !!!
Logged

Coffee Shop Admin, Acting Chair of Melksham Rail User Group, Option 24/7 Melksham Rep
grahame
Administrator
Hero Member
*****
Posts: 40784



View Profile WWW Email
« Reply #4 on: January 02, 2023, 16:18:56 »

The feeds at present are working intermittently - sometimes correct, other times giving results many hours old, at other times giving no trains or a program error message on a condition I have not allowed for in the feed.

Since I wrote the code that "scrapes" Tiger, alternative systems have come along and to some extent my work has been supplanted by more modern stuff.  ...

Belately, largely done - try clicking on the "Next Departure" links and you should see the appropriate (full detail) customer information screen.
Logged

Coffee Shop Admin, Acting Chair of Melksham Rail User Group, Option 24/7 Melksham Rep
Do you have something you would like to add to this thread, or would you like to raise a new question at the Coffee Shop? Please [register] (it is free) if you have not done so before, or login (at the top of this page) if you already have an account - we would love to read what you have to say!

You can find out more about how this forum works [here] - that will link you to a copy of the forum agreement that you can read before you join, and tell you very much more about how we operate. We are an independent forum, provided and run by customers of Great Western Railway, for customers of Great Western Railway and we welcome railway professionals as members too, in either a personal or official capacity. Views expressed in posts are not necessarily the views of the operators of the forum.

As well as posting messages onto existing threads, and starting new subjects, members can communicate with each other through personal messages if they wish. And once members have made a certain number of posts, they will automatically be admitted to the "frequent posters club", where subjects not-for-public-domain are discussed; anything from the occasional rant to meetups we may be having ...

 
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
This forum is provided by customers of Great Western Railway (formerly First Great Western), and the views expressed are those of the individual posters concerned. Visit www.gwr.com for the official Great Western Railway website. Please contact the administrators of this site if you feel that the content provided by one of our posters contravenes our posting rules (email link to report). Forum hosted by Well House Consultants

Jump to top of pageJump to Forum Home Page