/NuclearTrains

Twitter bot that live-tweets when UK Nuclear Waste trains are on the move

Primary LanguagePythonMIT LicenseMIT

NuclearTrains

a bot that auto-trainspots british nuclear waste trains 
may be the most ballardian thing I've seen on this hell site

-- twitter user @cszabla 12/12/18

This is powered by RealTimeTrains http://www.realtimetrains.co.uk/ API access for RTT is registered for at https://api.rtt.io/

Thank you to Tom Cairns and the rest of the RTT for providing this service and for being speedy with tech support. Shut up and let them take your money https://secure.realtimetrains.co.uk/fundraising/

Twitter: https://twitter.com/NuclearTrains Mastodon: https://botsin.space/@nucleartrains

Introduction

Using real-time open data from network rail via the Real Time Trains API, Nuclear Trains is a bot that tweets and toots when a freight train departs a nuclear power plant: including a link detailing its time and position.

Trains are not guaranteed to be pulling nuclear waste flasks, and even if they are, the flasks may or may not be full.

This project has no stance on nuclear energy, and its main objective is to provide a quantitative and real-time source of information about the movement of nuclear waste in the UK.

Any more features/whatnot you can tweet at us or raise an issue here.

Usage

By default this is set up to use the servicev2 and searchv2 endpoints on the RTT API because these are the endpoint that work for Freight Trains which is what we need for our application. If you are using realtimetrains.py and haivng problems getting resonpses from the server and your username and password are definitely correct, try changing

30 LOCATION_SEARCH = "searchv2"
31 TRAIN_SEARCH = "servicev2"

to

30 LOCATION_SEARCH = "search"
31 TRAIN_SEARCH = "service"