Skip to content

Train departures real time display using the UK National Rail Darwin web service

Notifications You must be signed in to change notification settings

epuvlist/StationBoard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Station display board (Zeep / WSDL version)

Train departures real time display using the UK National Rail Darwin web service.

This Python program presents a live departure board for a selected UK railway station. It uses a SOAP interface into the National Rail Darwin web service. You need to register for a user key to access the Darwin service. The user key should be entered into the .ini file (see below).

It requires the Python modules Zeep and Tkinter.

wsdl_test.py is included as an example of a Zeep interface. It interrogates the openly available oorsprong.org webservice for a list of countries.

This version uses the Python Zeep module to inspect the WSDL. Zeep handles all the http request and response operations, and also abstracts away all XML parsing, making these aspects quite simple in the program itself. The advantage of using the WSDL over hard coding the XML request is that if Darwin release a new version of the WSDL then this can simply be updated in the config file. The program does not need to know about the underlying XML data schemas, XSD files etc.

The configuration file StationBoard.ini must be present in the same directory as the program. Important elements which must be present in the config file are:

  • SOAP section
  • station section

The config file also contains optional configs for display font and colours.

Releases

No releases published

Packages

No packages published

Languages