A simple PHP interface to parse status of Melbourne train lines and post updates to Slack. Also provides next 5 services to leave from any trains, tram or bus stop.
Switch branches/tags
Nothing to show
Clone or download
Tim Malone (Win)
Tim Malone (Win) Commit existing project
Latest commit 6e61386 Jul 4, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
icons
lib Commit existing project Jul 4, 2017
.gitignore Commit existing project Jul 4, 2017
README.md Commit existing project Jul 4, 2017
config.sample.php Commit existing project Jul 4, 2017
tests.md Commit existing project Jul 4, 2017

README.md

Hi there! I'm a PHP interface to the PTV live travel updates website. I scrape data, turn it into a common format, and then post it to Slack.

I'm currently in BETA.

To use me, clone me to a machine with PHP on it, copy config.sample.php to a new file, enter your configuration in there, and set me up in cron like this:

*/7 4-23 * * * (cd /path/to/cloned/repository; php whatever-i-called-my-config-file.php)

This would run the script with your config every 7 minutes (or so), between 4am and midnight, every day.

You can also try setting up a Slack Slash command and typing eg. /next5 in Slack to get the next 5 trains to leave from your stops. Additional arguments are supported - inbound, outbound, some variations on those, and some station names. This service is also in BETA!