A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By btidey
#83667
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/
You do not have the required permissions to view the files attached to this post.