Skip to content

nottinghamcollege/Realtime-Tram-Display

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Tram Time Display

Realtime Tram Times for Nottingham

tram.py

Shows tram data on the command line

Prerequisites: colorama and requests - Install with pip

Usage: python3 tram.py -h

Parameters

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:

Example Output

tramDisplay

Needs to be deployed to AWS Lambda (or equivalent serverless infrastructure)

Prerequisites: requests module needs to be packaged along with the script.

tramSearch

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/

About

A web-based real time Nottingham tram information display

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%