This widget has various advantages over attempting to use the official National Rail API, such as: you can install it without any fucking around with registering and licences and all that fucking shite; it is completely self-contained, does not connect to any server other than that of the hosting website and does not support or facilitate the harvesting of personal data; and it is often more informative. It uses the official Network Rail list of excuses for train delays and permutes them using advanced stochastic techniques* to generate an output tuned precisely to the user's state of mind; if, despite this, the user still feels inadequately informed, they can simply request further excuses until they get one they can believe, so satisfaction is guaranteed.
Installing the widget is simplicity itself; it goes like this:
And that's it. Share and enjoy!
There is also a TCP daemon version available, using the same algorithm translated into C. It responds to an incoming connection on its port (default: 46009) by sending an excuse and then closing the connection. This version can, for example, be used to provide a public train delay excuses service by setting it to listen on a public IP, or it can be set to listen on localhost and used to feed excuses to a CGI backend for a web server. Check it out...
telnet pigeonsnest.co.uk 46009
Download the source: tdx.tar.gz
*ie. I wrote it, but I can't understand what it does any more.
Back to Pigeon's Nest
Be kind to pigeons