A twitter station bot that uses Tweepy library to tweet up to date information about trains running through the target station. This data is pulled from DARWIN via Huxley2, then processed in python and pushed to Tweepy.
Please note that status-tlf-api.py
is an outdated version or version 1 of this bot, this was pulling information via the TFL API, processing via python and pushing to twitter via Tweepy.
This is the bot that I set up for my local station @AshteadRail. It utilises crontab to execute the python file 5am through to 1am, this then repeats on a day to day basis. This was only made for my travel convenience when communting to and from London.
The script is made to output:
- Train Alerts
- This being any train delays or cancellations.
- Service Alerts
- This being if there are any National Rail Communication Centre (NRCC) messages for the specified station.
- If there is industrial action (strikes ect), this is seemingly different from
areServicesAvailable
vsnrccMessage
field.
- If replacement buses are running.
- If there are any services running.
Here are some example outputs:
(can be either or both)