Skip to content

This script uses the TramTracker SOAP API to check the arrival times for a given tram number and stop ID and fires an IFTTT Maker event if the upcoming arrivals are within given thresholds

Notifications You must be signed in to change notification settings

somada141/yarratramwatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

yarratramwatcher

This script uses the TramTracker SOAP API to check the arrival times for a given tram number and stop ID and fires an IFTTT Maker event if the upcoming arrivals are within given thresholds.

Usage

This script is meant to be run in an minutely basis over given period of times, e.g., via Cron, as such:

python tramwatcher.py --stop-tracker-id 3551 --route-number 86 --threshold-min-lower 4  --threshold-min-upper 6 --ifttt-event <ifttt-event-name> --ifttt-key <ifttt-key>

The above call will check for the arrivals of tram 86 at stop 3551 and if there is an upcoming arrival within 4-6 minutes fires an ifttt-event-name IFTTT Maker event using their API key ifttt-key.

Note: The tram stop number is the one that appears in the TramTracker app, note the numbers used within the YarraTrams physical network.

References

About

This script uses the TramTracker SOAP API to check the arrival times for a given tram number and stop ID and fires an IFTTT Maker event if the upcoming arrivals are within given thresholds

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages