Shows tram data on the command line
Prerequisites: colorama and requests - Install with pip
Usage: python3 tram.py -h
| Parameter | Example value |
|---|---|
| ATCO code | 9400ZZNOHIG2 |
| Limit | 4 |
You can find the ATCO code for your stop in ntm.csv
Optionally you can also specify a limit to the amount of times returned, the default is 5 if not specified at run time.
Example:
Needs to be deployed to AWS Lambda (or equivalent serverless infrastructure)
Prerequisites: requests module needs to be packaged along with the script.
Needs to be deployed to AWS Lambda (or equivalent serverless infrastructure)
Prerequisites: requests and mysql modules need to be packaged along with the script.
Configuration for database containing ATCO stop information needs to be provided in db_config.py
You can find further information about the development and deployment of these scripts at https://blog.rothe.uk/serverless-tram-time-display/
