-->
Page 1 of 1

Train times display

PostPosted: Wed Sep 04, 2019 3:35 pm
by btidey
traintimes.jpg


This project uses an ESP8266 (ESP-12F) and a SPI 3.2" display to show real time train departure data for UK trains.

National Rail have open access to a database OpenLDBWS which is used supply information to stations in UK.

The interesting part from a coding viewpoint is that it is a fairly complex SOAP interface and the wordy responses to queries can be ~30KBytes which makes it a little challenging with the limited memory of the ESP8266.

Rather than try to implement a real SOAP stack, I use a prebuilt query and substitute the appropriate parameters. The parsing of the response is handled as a stream of blocks rather than trying to hold the whole response in memory.

Code is at https://github.com/roberttidey/trainAccess

There is an instructable at https://www.instructables.com/id/UK-Train-Display/