Skip to content

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.

master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 

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!

About

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.

Topics

Resources

Releases

No releases published

Packages

No packages published

Languages