UK National Rail Display Settings Generator Tool (Python 3)

Required Details

API Token:

Station ID (CRS Code):

Display Rotation

Defines which way up the screen is rendered.

Time Format

Do you wish to use 24hr or 12hr time format; default is 24hr.

24 Hour Format:

12 Hour Format:

Header Design

What do you want in the top row/ header of the display?

"desc" Design - List the purpose of each column in the table:

"loc" Design - State the train station name being displayed in the top:

"date" Design - State the current date in the top:

"none" Design - have a clear header:

Display Design

How much detail do you want to display?

"full" Design Format:

"compact" Design Format - Similar to the design of the Bus Stop Display:

Show Platform Number

Do you want to show the platform number? For stations with only 1 platform you may want to hide it.

Show Platform Number:

Hide Platform Number:

Energy Saving Mode

To save screen from burn in and prolong it's life it is recommend to have energy saving mode enabled. 'off' is default, between the hours set the screen will turn off. 'dim' will turn the screen brightness down, but not completely off. 'none' will do nothing and leave the screen on; this is not recommend, you can change your active hours instead.

off

dim

none

Inactive Hours

The peroid of time for which the display will go into 'Energy Saving Mode' if turned on; default is '23:00-07:00'.

Start Time:

End Time:

Animation Speed

What speed do you want the text to scroll at on the display; default is 3, must be greater than 0.

Normal (3) Speed Example
10 Speed Example

Animation Delay

How long the display will pause before starting the next animation; default is 30, must be greater than 0.

Normal (30) Delay Example
1 Delay Example

Pin Next To Arrive

Keep the train next to arrive at the very top of the display pinned until it has left; by default false.

Unpin Next To Arrive

Pin Next To Arrive

Reduce Animations

If you wish to stop the Via animation and cycle faster through the services use this tag to turn the animation off.

Normal Animations

Reduced Animations

Show Index

Do you wish to see index position for each service due to arrive.

Hide Index

Show Index

Show Calling At For Direct Services

Do you want to show the "Calling at: Message" for services which are direct to their destinations and have no stops; by default no.

Hide Calling At For Direct Services:

Show Calling At For Direct Services:

Platforms To Exclude

List any platform you do not wish to view. Make sure to capitalise correctly and use a single space between each platform; default is nothing, ie show every platform.

Normal, do not exclude anything.
Exclude all but platform 11; so input '8B 9B 10 11 12 13 14 15 9 8 7'

Update Frequency

The number of days for which the Pi will wait before rebooting and checking for a new update again during your energy saving period; default 1 day (every day check).

Maximum Number of Cards

The maximum number of cards you will see before forcing a new data retrieval, a limit is recommend to prevent cycling through data which may become out of data or going too far into scheduled buses; default is 9, must be greater than 0.

This is an advanced setting, if you are unsure click Next accepting the default values.

Request Limit

Defines the minium amount of time the display must wait before making a new data request, if you make this too small you risk spamming the API Server and getting rejected for overuse; default is 55(seconds)

This is an advanced setting, if you are unsure click Next accepting the default values.

Static Update Limit

Defines the amount of time the display will wait before updating the expected arrival time (based upon it's last known predicted arrival time); default is 15(seconds), this should be lower than your 'RequestLimit'

This is an advanced setting, if you are unsure click Next accepting the default values.

Recovery Time

How long the display will wait before attempting to get new data again after previously failing; default is 100, must be greater than 0.

This is an advanced setting, if you are unsure click Next accepting the default values.

Results

Below is the line of code you will need to start the program based upon the parameters you've just provided. When the answers matched the default values they have been omitted. Simply run this command in the console window where the python file is located to run the program.